#include <gtest-internal.h>
Classes | |
union | FloatingPointUnion |
Public Types | |
typedef TypeWithSize< sizeof(RawType)> ::UInt | Bits |
Public Member Functions | |
bool | AlmostEquals (const FloatingPoint &rhs) const |
const Bits & | bits () const |
Bits | exponent_bits () const |
FloatingPoint (const RawType &x) | |
Bits | fraction_bits () const |
bool | is_nan () const |
Bits | sign_bit () const |
Static Public Member Functions | |
static RawType | Infinity () |
static RawType | ReinterpretBits (const Bits bits) |
Static Public Attributes | |
static const size_t | kBitCount = 8*sizeof(RawType) |
static const size_t | kExponentBitCount = kBitCount - 1 - kFractionBitCount |
static const Bits | kExponentBitMask = ~(kSignBitMask | kFractionBitMask) |
static const size_t | kFractionBitCount |
static const Bits | kFractionBitMask |
static const size_t | kMaxUlps = 4 |
static const Bits | kSignBitMask = static_cast<Bits>(1) << (kBitCount - 1) |
Static Private Member Functions | |
static Bits | DistanceBetweenSignAndMagnitudeNumbers (const Bits &sam1, const Bits &sam2) |
static Bits | SignAndMagnitudeToBiased (const Bits &sam) |
Private Attributes | |
FloatingPointUnion | u_ |
Definition at line 317 of file gtest-internal.h.
typedef TypeWithSize<sizeof(RawType)>::UInt testing::internal::FloatingPoint< RawType >::Bits |
Definition at line 321 of file gtest-internal.h.
testing::internal::FloatingPoint< RawType >::FloatingPoint | ( | const RawType & | x | ) | [inline, explicit] |
Definition at line 365 of file gtest-internal.h.
bool testing::internal::FloatingPoint< RawType >::AlmostEquals | ( | const FloatingPoint< RawType > & | rhs | ) | const [inline] |
Definition at line 410 of file gtest-internal.h.
const Bits& testing::internal::FloatingPoint< RawType >::bits | ( | ) | const [inline] |
Definition at line 386 of file gtest-internal.h.
static Bits testing::internal::FloatingPoint< RawType >::DistanceBetweenSignAndMagnitudeNumbers | ( | const Bits & | sam1, |
const Bits & | sam2 | ||
) | [inline, static, private] |
Definition at line 453 of file gtest-internal.h.
Bits testing::internal::FloatingPoint< RawType >::exponent_bits | ( | ) | const [inline] |
Definition at line 389 of file gtest-internal.h.
Bits testing::internal::FloatingPoint< RawType >::fraction_bits | ( | ) | const [inline] |
Definition at line 392 of file gtest-internal.h.
static RawType testing::internal::FloatingPoint< RawType >::Infinity | ( | ) | [inline, static] |
Definition at line 379 of file gtest-internal.h.
bool testing::internal::FloatingPoint< RawType >::is_nan | ( | ) | const [inline] |
Definition at line 398 of file gtest-internal.h.
static RawType testing::internal::FloatingPoint< RawType >::ReinterpretBits | ( | const Bits | bits | ) | [inline, static] |
Definition at line 372 of file gtest-internal.h.
Bits testing::internal::FloatingPoint< RawType >::sign_bit | ( | ) | const [inline] |
Definition at line 395 of file gtest-internal.h.
static Bits testing::internal::FloatingPoint< RawType >::SignAndMagnitudeToBiased | ( | const Bits & | sam | ) | [inline, static, private] |
Definition at line 441 of file gtest-internal.h.
const size_t testing::internal::FloatingPoint< RawType >::kBitCount = 8*sizeof(RawType) [static] |
Definition at line 326 of file gtest-internal.h.
const size_t testing::internal::FloatingPoint< RawType >::kExponentBitCount = kBitCount - 1 - kFractionBitCount [static] |
Definition at line 333 of file gtest-internal.h.
const Bits testing::internal::FloatingPoint< RawType >::kExponentBitMask = ~(kSignBitMask | kFractionBitMask) [static] |
Definition at line 343 of file gtest-internal.h.
const size_t testing::internal::FloatingPoint< RawType >::kFractionBitCount [static] |
std::numeric_limits<RawType>::digits - 1
Definition at line 329 of file gtest-internal.h.
const Bits testing::internal::FloatingPoint< RawType >::kFractionBitMask [static] |
~static_cast<Bits>(0) >> (kExponentBitCount + 1)
Definition at line 339 of file gtest-internal.h.
const size_t testing::internal::FloatingPoint< RawType >::kMaxUlps = 4 [static] |
Definition at line 357 of file gtest-internal.h.
const Bits testing::internal::FloatingPoint< RawType >::kSignBitMask = static_cast<Bits>(1) << (kBitCount - 1) [static] |
Definition at line 336 of file gtest-internal.h.
FloatingPointUnion testing::internal::FloatingPoint< RawType >::u_ [private] |
Definition at line 460 of file gtest-internal.h.