#include <opentrep/basic/float_utils_google.hpp>
Public Types | |
typedef TypeWithSize< sizeof(RawType)>::UInt | Bits |
Public Member Functions | |
FloatingPoint (const RawType &x) | |
const Bits & | bits () const |
Bits | exponent_bits () const |
Bits | fraction_bits () const |
Bits | sign_bit () const |
bool | is_nan () const |
bool | AlmostEquals (const FloatingPoint &rhs) const |
Static Public Member Functions | |
static RawType | ReinterpretBits (const Bits bits) |
static RawType | Infinity () |
Static Public Attributes | |
static const size_t | kBitCount = 8*sizeof(RawType) |
static const size_t | kFractionBitCount |
static const size_t | kExponentBitCount = kBitCount - 1 - kFractionBitCount |
static const Bits | kSignBitMask = static_cast<Bits>(1) << (kBitCount - 1) |
static const Bits | kFractionBitMask |
static const Bits | kExponentBitMask = ~(kSignBitMask | kFractionBitMask) |
static const size_t | kMaxUlps = 4 |
Definition at line 124 of file float_utils_google.hpp.
typedef TypeWithSize<sizeof(RawType)>::UInt FloatingPoint< RawType >::Bits |
Definition at line 128 of file float_utils_google.hpp.
|
inlineexplicit |
Definition at line 172 of file float_utils_google.hpp.
Referenced by AlmostEquals(), and ReinterpretBits().
|
inlinestatic |
Definition at line 179 of file float_utils_google.hpp.
References bits(), and FloatingPoint().
Referenced by Infinity().
|
inlinestatic |
Definition at line 186 of file float_utils_google.hpp.
References kExponentBitMask, and ReinterpretBits().
|
inline |
Definition at line 193 of file float_utils_google.hpp.
Referenced by ReinterpretBits().
|
inline |
Definition at line 196 of file float_utils_google.hpp.
References kExponentBitMask.
Referenced by is_nan().
|
inline |
Definition at line 199 of file float_utils_google.hpp.
References kFractionBitMask.
Referenced by is_nan().
|
inline |
Definition at line 202 of file float_utils_google.hpp.
References kSignBitMask.
|
inline |
Definition at line 205 of file float_utils_google.hpp.
References exponent_bits(), fraction_bits(), and kExponentBitMask.
Referenced by AlmostEquals().
|
inline |
Definition at line 217 of file float_utils_google.hpp.
References FloatingPoint(), is_nan(), and kMaxUlps.
Referenced by OPENTREP::ScoreBoard::setScore().
|
static |
Definition at line 133 of file float_utils_google.hpp.
|
static |
Definition at line 136 of file float_utils_google.hpp.
|
static |
Definition at line 140 of file float_utils_google.hpp.
|
static |
Definition at line 143 of file float_utils_google.hpp.
Referenced by sign_bit().
|
static |
Definition at line 146 of file float_utils_google.hpp.
Referenced by fraction_bits().
|
static |
Definition at line 150 of file float_utils_google.hpp.
Referenced by exponent_bits(), Infinity(), and is_nan().
|
static |
Definition at line 164 of file float_utils_google.hpp.
Referenced by AlmostEquals().