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
David's final changes: more profiler features, fixes.
[ipdf/code.git]
/
src
/
paranoidnumber.h
diff --git
a/src/paranoidnumber.h
b/src/paranoidnumber.h
index
a175ed5
..
29e15d5
100644
(file)
--- a/
src/paranoidnumber.h
+++ b/
src/paranoidnumber.h
@@
-12,14
+12,14
@@
#include <cassert> // it's going to be ok
#include <set>
#include <cassert> // it's going to be ok
#include <set>
-#define PARANOID_DIGIT_T
float
// we could theoretically replace this with a template
+#define PARANOID_DIGIT_T
double
// we could theoretically replace this with a template
// but let's not do that...
//#define PARANOID_CACHE_RESULTS
//#define PARANOID_USE_ARENA
// but let's not do that...
//#define PARANOID_CACHE_RESULTS
//#define PARANOID_USE_ARENA
-//#define PARANOID_SIZE_LIMIT 3
+#define PARANOID_SIZE_LIMIT 4
// Define to compare all ops against double ops and check within epsilon
// Define to compare all ops against double ops and check within epsilon
@@
-145,6
+145,8
@@
namespace IPDF
// Like this one. It isn't const.
double ToDouble() const {return (double)Digit();}
// Like this one. It isn't const.
double ToDouble() const {return (double)Digit();}
+ operator double() const {return ToDouble();}
+
// This one is probably const.
bool Floating() const
{
// This one is probably const.
bool Floating() const
{
@@
-332,6
+334,8
@@
T ParanoidNumber::Convert() const
+
+
}
#endif //_PARANOIDNUMBER_H
}
#endif //_PARANOIDNUMBER_H
UCC
git Repository :: git.ucc.asn.au