X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Freal.cpp;h=ca284466b285461deb5200933d9417a6be976b84;hp=74c774baa578d8cb1c09bce74a460bcf558ad281;hb=HEAD;hpb=aaa65d90ac812f924cbbc39bef7a5f8b6cad2da3 diff --git a/src/real.cpp b/src/real.cpp index 74c774b..ca28446 100644 --- a/src/real.cpp +++ b/src/real.cpp @@ -1,11 +1,30 @@ #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", + "ParanoidNumber", + "GMPrat" }; + +#if REALTYPE == REAL_RATIONAL_ARBINT + template <> Gmpint Tabs(const Gmpint & a) + { + return a.Abs(); + } +#endif + + + }