#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 123 of file float_utils_google.hpp.
typedef TypeWithSize<sizeof(RawType)>::UInt FloatingPoint< RawType >::Bits |
Definition at line 127 of file float_utils_google.hpp.
|
inlineexplicit |
Definition at line 171 of file float_utils_google.hpp.
|
inlinestatic |
Definition at line 178 of file float_utils_google.hpp.
References FloatingPoint< RawType >::bits().
Referenced by FloatingPoint< RawType >::Infinity().
|
inlinestatic |
Definition at line 185 of file float_utils_google.hpp.
References FloatingPoint< RawType >::kExponentBitMask, and FloatingPoint< RawType >::ReinterpretBits().
|
inline |
Definition at line 192 of file float_utils_google.hpp.
Referenced by FloatingPoint< RawType >::ReinterpretBits().
|
inline |
Definition at line 195 of file float_utils_google.hpp.
References FloatingPoint< RawType >::kExponentBitMask.
Referenced by FloatingPoint< RawType >::is_nan().
|
inline |
Definition at line 198 of file float_utils_google.hpp.
References FloatingPoint< RawType >::kFractionBitMask.
Referenced by FloatingPoint< RawType >::is_nan().
|
inline |
Definition at line 201 of file float_utils_google.hpp.
References FloatingPoint< RawType >::kSignBitMask.
|
inline |
Definition at line 204 of file float_utils_google.hpp.
References FloatingPoint< RawType >::exponent_bits(), FloatingPoint< RawType >::fraction_bits(), and FloatingPoint< RawType >::kExponentBitMask.
Referenced by FloatingPoint< RawType >::AlmostEquals().
|
inline |
Definition at line 216 of file float_utils_google.hpp.
References FloatingPoint< RawType >::is_nan(), and FloatingPoint< RawType >::kMaxUlps.
Referenced by OPENTREP::ScoreBoard::setScore().
|
static |
Definition at line 132 of file float_utils_google.hpp.
|
static |
Definition at line 135 of file float_utils_google.hpp.
|
static |
Definition at line 139 of file float_utils_google.hpp.
|
static |
Definition at line 142 of file float_utils_google.hpp.
Referenced by FloatingPoint< RawType >::sign_bit().
|
static |
Definition at line 145 of file float_utils_google.hpp.
Referenced by FloatingPoint< RawType >::fraction_bits().
|
static |
Definition at line 149 of file float_utils_google.hpp.
Referenced by FloatingPoint< RawType >::exponent_bits(), FloatingPoint< RawType >::Infinity(), and FloatingPoint< RawType >::is_nan().
|
static |
Definition at line 163 of file float_utils_google.hpp.
Referenced by FloatingPoint< RawType >::AlmostEquals().