git.ucc.asn.au
/
ipdf
/
code.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
bed613f046e69e8ff4a9c5831e6230980faa5241
[ipdf/code.git]
/
src
/
real.cpp
1
#include "real.h"
2
#include <fenv.h>
3
4
namespace IPDF
5
{
6
// Maps the REALTYPE to a string
7
const char * g_real_name[] = {
8
"single",
9
"double",
10
"long double",
11
"VFPU",
12
"Rational<int64_t>",
13
"Rational<Arbint>",
14
"mpfrc++ real",
15
"iRRAM REAL"
16
};
17
18
#if REALTYPE == REAL_RATIONAL_ARBINT
19
template <> Gmpint Tabs(const Gmpint & a)
20
{
21
return a.Abs();
22
}
23
#endif
24
25
26
27
28
}
UCC
git Repository :: git.ucc.asn.au