Add quadtree back to the Makefile
[ipdf/code.git] / src / real.cpp
index 70c6530..bed613f 100644 (file)
@@ -1,14 +1,28 @@
 #include "real.h"
+#include <fenv.h>
 
 namespace IPDF
 {
-       // Maps the REAL to a string
+       // Maps the REALTYPE to a string
        const char * g_real_name[] = {
                "single",
                "double",
                "long double",
-               "single [fast2sum]", //TODO REMOVE DOESN'T DO ANYTHING USEFUL
-               "Rational<int64_t>"
+               "VFPU",
+               "Rational<int64_t>", 
+               "Rational<Arbint>",
+               "mpfrc++ real",
+               "iRRAM REAL"
        };
+       
+#if REALTYPE == REAL_RATIONAL_ARBINT
+       template <> Gmpint Tabs(const Gmpint & a)
+       {
+               return a.Abs();
+       }
+#endif
+
+
+
 
 }

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