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