git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve adding things to quadtree (still broken, though)
[ipdf/code.git]
/
src
/
real.cpp
diff --git
a/src/real.cpp
b/src/real.cpp
index
83b3fb8
..
ca28446
100644
(file)
--- a/
src/real.cpp
+++ b/
src/real.cpp
@@
-1,15
+1,30
@@
#include "real.h"
#include "real.h"
+#include <fenv.h>
namespace IPDF
{
namespace IPDF
{
- // Maps the REAL to a string
+ // Maps the REAL
TYPE
to a string
const char * g_real_name[] = {
"single",
"double",
"long double",
const char * g_real_name[] = {
"single",
"double",
"long double",
- "
single [fast2sum]", //TODO REMOVE DOESN'T DO ANYTHING USEFUL
+ "
VFPU",
"Rational<int64_t>",
"Rational<int64_t>",
- "Rational<Arbint>"
+ "Rational<Arbint>",
+ "mpfrc++ real",
+ "iRRAM REAL",
+ "ParanoidNumber",
+ "GMPrat"
};
};
+
+#if REALTYPE == REAL_RATIONAL_ARBINT
+ template <> Gmpint Tabs(const Gmpint & a)
+ {
+ return a.Abs();
+ }
+#endif
+
+
+
}
}
UCC
git Repository :: git.ucc.asn.au