Elements 6.3.3
A C++ base framework for the Euclid Software.
|
#include <Real.h>
Classes | |
union | FloatingPointUnion |
Public Types | |
using | Bits = typename TypeWithSize<sizeof(RawType)>::UInt |
Public Member Functions | |
FloatingPoint (const RawType &x) | |
const Bits & | bits () const |
Bits | exponentBits () const |
Bits | fractionBits () const |
Bits | signBit () const |
bool | isNan () const |
bool | AlmostEquals (const FloatingPoint &rhs) const |
Static Public Member Functions | |
static RawType | ReinterpretBits (const Bits &bits) |
static RawType | Infinity () |
static Bits | signAndMagnitudeToBiased (const Bits &sam) |
static Bits | distanceBetweenSignAndMagnitudeNumbers (const Bits &sam1, const Bits &sam2) |
Static Public Attributes | |
static const std::size_t | s_bitcount = 8 * sizeof(RawType) |
static const std::size_t | s_fraction_bitcount = std::numeric_limits<RawType>::digits - 1 |
static const std::size_t | s_exponent_bitcount = s_bitcount - 1 - s_fraction_bitcount |
static const Bits | s_sign_bitmask = static_cast<Bits>(1) << (s_bitcount - 1) |
static const Bits | s_fraction_bitmask = ~static_cast<Bits>(0) >> (s_exponent_bitcount + 1) |
static const Bits | s_exponent_bitmask = ~(s_sign_bitmask | s_fraction_bitmask) |
static const std::size_t | m_max_ulps = defaultMaxUlps<RawType>() |
Private Attributes | |
FloatingPointUnion | m_u |
using Elements::FloatingPoint< RawType >::Bits = typename TypeWithSize<sizeof(RawType)>::UInt |
|
explicit |
Referenced by AlmostEquals().
bool Elements::FloatingPoint< RawType >::AlmostEquals | ( | const FloatingPoint< RawType > & | rhs | ) | const |
const Bits & Elements::FloatingPoint< RawType >::bits | ( | ) | const |
Referenced by ReinterpretBits().
|
static |
Bits Elements::FloatingPoint< RawType >::exponentBits | ( | ) | const |
Bits Elements::FloatingPoint< RawType >::fractionBits | ( | ) | const |
|
static |
bool Elements::FloatingPoint< RawType >::isNan | ( | ) | const |
|
static |
|
static |
Bits Elements::FloatingPoint< RawType >::signBit | ( | ) | const |
|
static |
|
private |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |