diff options
Diffstat (limited to 'src/util/floatingpoint.h')
-rw-r--r-- | src/util/floatingpoint.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/floatingpoint.h b/src/util/floatingpoint.h index 132d67b1c..d8a3a65d9 100644 --- a/src/util/floatingpoint.h +++ b/src/util/floatingpoint.h @@ -62,11 +62,11 @@ namespace CVC4 { }; /* class FloatingPointSize */ - - -#define ROLL(X,N) (((X) << (N)) | ((X) >> (8*sizeof((X)) - (N)) )) - struct CVC4_PUBLIC FloatingPointSizeHashFunction { + static inline size_t ROLL(size_t X, size_t N) { + return (((X) << (N)) | ((X) >> (8*sizeof((X)) - (N)) )); + } + inline size_t operator() (const FloatingPointSize& fpt) const { return size_t(ROLL(fpt.exponent(), 4*sizeof(unsigned)) | fpt.significand()); |