19 #ifndef GEOS_IDX_QUADTREE_DOUBLEBITS_H 20 #define GEOS_IDX_QUADTREE_DOUBLEBITS_H 22 #include <geos/export.h> 23 #include <geos/constants.h> 48 static const int EXPONENT_BIAS = 1023;
50 static double powerOf2(
int exp);
52 static int exponent(
double d);
54 static double truncateToPowerOfTwo(
double d);
56 static std::string toBinaryString(
double d);
58 static double maximumCommonMantissa(
double d1,
double d2);
62 double getDouble()
const;
65 int64 biasedExponent()
const;
68 int getExponent()
const;
70 void zeroLowerBits(
int nBits);
72 int getBit(
int i)
const;
86 int numCommonMantissaBits(
const DoubleBits& db)
const;
89 std::string toString()
const;
102 #endif // GEOS_IDX_QUADTREE_DOUBLEBITS_H Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
DoubleBits manipulates Double numbers by using bit manipulation and bit-field extraction.
Definition: DoubleBits.h:44