15#ifndef GEOS_PRECISION_COMMONBITS_H
16#define GEOS_PRECISION_COMMONBITS_H
18#include <geos/export.h>
19#include <geos/platform.h>
33class GEOS_DLL CommonBits {
39 int commonMantissaBitsCount;
85 static int getBit(int64 bits,
int i);
static int numCommonMostSigMantissaBits(int64 num1, int64 num2)
This computes the number of common most-significant bits in the mantissas of two double-precision num...
static int getBit(int64 bits, int i)
Extracts the i'th bit of a bitstring.
static int64 zeroLowerBits(int64 bits, int nBits)
Zeroes the lower n bits of a bitstring.
static int64 signExpBits(int64 num)
Computes the bit pattern for the sign and exponent of a double-precision number.
Provides classes for manipulating the precision model of Geometries.
Definition precision.h:22
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25