X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Freal.cpp;h=bed613f046e69e8ff4a9c5831e6230980faa5241;hp=74c774baa578d8cb1c09bce74a460bcf558ad281;hb=888817a67a9d840be66b52811b01eb77f10ff3e6;hpb=aaa65d90ac812f924cbbc39bef7a5f8b6cad2da3;ds=sidebyside diff --git a/src/real.cpp b/src/real.cpp index 74c774b..bed613f 100644 --- a/src/real.cpp +++ b/src/real.cpp @@ -1,11 +1,28 @@ #include "real.h" +#include namespace IPDF { - // Maps the REAL to a string + // Maps the REALTYPE to a string const char * g_real_name[] = { "single", - "double" + "double", + "long double", + "VFPU", + "Rational", + "Rational", + "mpfrc++ real", + "iRRAM REAL" }; + +#if REALTYPE == REAL_RATIONAL_ARBINT + template <> Gmpint Tabs(const Gmpint & a) + { + return a.Abs(); + } +#endif + + + }