X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Freal.h;h=406cb8e730cb018abbd686c6bd77c3b79b3d7f3e;hp=ecd3852c2189bba85de43295ae1d7aab3bdddced;hb=2a1715c907ba3ccfb952e9630c3fe305655637e0;hpb=612d71e94fa4a4ca394fb1f566926392e95a2fa8 diff --git a/src/real.h b/src/real.h index ecd3852..406cb8e 100644 --- a/src/real.h +++ b/src/real.h @@ -2,6 +2,7 @@ #define _REAL_H #include "common.h" +#include #define REAL_SINGLE 0 @@ -40,7 +41,7 @@ namespace IPDF #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 @@ -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 Sqrt(double f) {return sqrt(f);} inline Real Power(const Real & a, int n) { @@ -80,6 +82,8 @@ namespace IPDF return r; } + + } #endif //_REAL_H