|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #ifndef CXXUTILS_FLOATCOMPRESSOR_H
9 #define CXXUTILS_FLOATCOMPRESSOR_H
65 #endif // CXXUTILS_FLOATCOMPRESSOR_H
unsigned int m_mantissaBits
Number of mantissa bits to keep.
Class implementing a lossy float compression.
float reduceFloatPrecision(float value) const
Function returning a reduced precision float value.
Type used in the compression.
uint32_t m_vmax
Largest possible positive 32bit float minus the rounding.
FloatCompressor(unsigned int mantissaBits=7)
Constructor with the number of mantissa bits to retain.
uint32_t m_mantissaBitmask
Bitmask for zeroing out the non-interesting bits.