Fix kerning for the first pair of characters
[ipdf/code.git] / src / real.h
index ecd3852..406cb8e 100644 (file)
@@ -2,6 +2,7 @@
 #define _REAL_H
 
 #include "common.h"
 #define _REAL_H
 
 #include "common.h"
+#include <cmath>
 
 
 #define REAL_SINGLE 0
 
 
 #define REAL_SINGLE 0
@@ -40,7 +41,7 @@ namespace IPDF
 #elif REAL == REAL_LONG_DOUBLE
        typedef long double Real;
 #elif REAL == REAL_VFPU
 #elif REAL == REAL_LONG_DOUBLE
        typedef long double Real;
 #elif REAL == REAL_VFPU
-       typedef VFPU::Float Real;
+       typedef VFPU::VFloat Real;
        inline float Float(const Real & r) {return r.m_value;}
        inline double Double(const Real & r) {return r.m_value;}
 #elif REAL == REAL_RATIONAL
        inline float Float(const Real & r) {return r.m_value;}
        inline double Double(const Real & r) {return r.m_value;}
 #elif REAL == REAL_RATIONAL
@@ -67,6 +68,7 @@ namespace IPDF
        inline double Double(float f) {return (double)f;}
        inline double Double(double f) {return (double)f;}
        inline double Double(long double f) {return (double)(f);}
        inline double Double(float f) {return (double)f;}
        inline double Double(double f) {return (double)f;}
        inline double Double(long double f) {return (double)(f);}
+       inline double Sqrt(double f) {return sqrt(f);}
        
        inline Real Power(const Real & a, int n)
        {
        
        inline Real Power(const Real & a, int n)
        {
@@ -80,6 +82,8 @@ namespace IPDF
                return r;
        }
        
                return r;
        }
        
+       
+
 }
 
 #endif //_REAL_H
 }
 
 #endif //_REAL_H

UCC git Repository :: git.ucc.asn.au