#include <gtest.h>
Classes | |
union | FloatingPointUnion |
Public Types | |
typedef TypeWithSize< sizeof(RawType)> ::UInt | Bits |
typedef TypeWithSize< sizeof(RawType)> ::UInt | Bits |
typedef TypeWithSize< sizeof(RawType)> ::UInt | Bits |
typedef TypeWithSize< sizeof(RawType)> ::UInt | Bits |
Public Member Functions | |
bool | AlmostEquals (const FloatingPoint &rhs) const |
bool | AlmostEquals (const FloatingPoint &rhs) const |
bool | AlmostEquals (const FloatingPoint &rhs) const |
bool | AlmostEquals (const FloatingPoint &rhs) const |
const Bits & | bits () const |
const Bits & | bits () const |
const Bits & | bits () const |
const Bits & | bits () const |
Bits | exponent_bits () const |
Bits | exponent_bits () const |
Bits | exponent_bits () const |
Bits | exponent_bits () const |
FloatingPoint (const RawType &x) | |
FloatingPoint (const RawType &x) | |
FloatingPoint (const RawType &x) | |
FloatingPoint (const RawType &x) | |
Bits | fraction_bits () const |
Bits | fraction_bits () const |
Bits | fraction_bits () const |
Bits | fraction_bits () const |
bool | is_nan () const |
bool | is_nan () const |
bool | is_nan () const |
bool | is_nan () const |
template<> | |
float | Max () |
template<> | |
float | Max () |
template<> | |
double | Max () |
template<> | |
double | Max () |
template<> | |
float | Max () |
template<> | |
float | Max () |
template<> | |
double | Max () |
template<> | |
double | Max () |
Bits | sign_bit () const |
Bits | sign_bit () const |
Bits | sign_bit () const |
Bits | sign_bit () const |
Static Public Member Functions | |
static RawType | Infinity () |
static RawType | Infinity () |
static RawType | Infinity () |
static RawType | Infinity () |
static RawType | Max () |
static RawType | Max () |
static RawType | Max () |
static RawType | Max () |
static RawType | ReinterpretBits (const Bits bits) |
static RawType | ReinterpretBits (const Bits bits) |
static RawType | ReinterpretBits (const Bits bits) |
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 | DistanceBetweenSignAndMagnitudeNumbers (const Bits &sam1, const Bits &sam2) |
static Bits | DistanceBetweenSignAndMagnitudeNumbers (const Bits &sam1, const Bits &sam2) |
static Bits | DistanceBetweenSignAndMagnitudeNumbers (const Bits &sam1, const Bits &sam2) |
static Bits | SignAndMagnitudeToBiased (const Bits &sam) |
static Bits | SignAndMagnitudeToBiased (const Bits &sam) |
static Bits | SignAndMagnitudeToBiased (const Bits &sam) |
static Bits | SignAndMagnitudeToBiased (const Bits &sam) |
Private Attributes | |
FloatingPointUnion | u_ |
Definition at line 7192 of file gmock/gtest/fused-src/gtest/gtest.h.
typedef TypeWithSize<sizeof(RawType)>::UInt testing::internal::FloatingPoint< RawType >::Bits |
Definition at line 236 of file gmock/gtest/include/gtest/internal/gtest-internal.h.
typedef TypeWithSize<sizeof(RawType)>::UInt testing::internal::FloatingPoint< RawType >::Bits |
Definition at line 236 of file gtest/include/gtest/internal/gtest-internal.h.
typedef TypeWithSize<sizeof(RawType)>::UInt testing::internal::FloatingPoint< RawType >::Bits |
Definition at line 7196 of file gtest/fused-src/gtest/gtest.h.
typedef TypeWithSize<sizeof(RawType)>::UInt testing::internal::FloatingPoint< RawType >::Bits |
Definition at line 7196 of file gmock/gtest/fused-src/gtest/gtest.h.
testing::internal::FloatingPoint< RawType >::FloatingPoint | ( | const RawType & | x | ) | [inline, explicit] |
Definition at line 7240 of file gmock/gtest/fused-src/gtest/gtest.h.
testing::internal::FloatingPoint< RawType >::FloatingPoint | ( | const RawType & | x | ) | [inline, explicit] |
Definition at line 280 of file gmock/gtest/include/gtest/internal/gtest-internal.h.
testing::internal::FloatingPoint< RawType >::FloatingPoint | ( | const RawType & | x | ) | [inline, explicit] |
Definition at line 7240 of file gtest/fused-src/gtest/gtest.h.
testing::internal::FloatingPoint< RawType >::FloatingPoint | ( | const RawType & | x | ) | [inline, explicit] |
Definition at line 280 of file gtest/include/gtest/internal/gtest-internal.h.
bool testing::internal::FloatingPoint< RawType >::AlmostEquals | ( | const FloatingPoint< RawType > & | rhs | ) | const [inline] |
Definition at line 328 of file gmock/gtest/include/gtest/internal/gtest-internal.h.
bool testing::internal::FloatingPoint< RawType >::AlmostEquals | ( | const FloatingPoint< RawType > & | rhs | ) | const [inline] |
Definition at line 328 of file gtest/include/gtest/internal/gtest-internal.h.
bool testing::internal::FloatingPoint< RawType >::AlmostEquals | ( | const FloatingPoint< RawType > & | rhs | ) | const [inline] |
Definition at line 7288 of file gmock/gtest/fused-src/gtest/gtest.h.
bool testing::internal::FloatingPoint< RawType >::AlmostEquals | ( | const FloatingPoint< RawType > & | rhs | ) | const [inline] |
Definition at line 7288 of file gtest/fused-src/gtest/gtest.h.
const Bits& testing::internal::FloatingPoint< RawType >::bits | ( | ) | const [inline] |
Definition at line 304 of file gtest/include/gtest/internal/gtest-internal.h.
const Bits& testing::internal::FloatingPoint< RawType >::bits | ( | ) | const [inline] |
Definition at line 304 of file gmock/gtest/include/gtest/internal/gtest-internal.h.
const Bits& testing::internal::FloatingPoint< RawType >::bits | ( | ) | const [inline] |
Definition at line 7264 of file gmock/gtest/fused-src/gtest/gtest.h.
const Bits& testing::internal::FloatingPoint< RawType >::bits | ( | ) | const [inline] |
Definition at line 7264 of file gtest/fused-src/gtest/gtest.h.
static Bits testing::internal::FloatingPoint< RawType >::DistanceBetweenSignAndMagnitudeNumbers | ( | const Bits & | sam1, |
const Bits & | sam2 | ||
) | [inline, static, private] |
Definition at line 371 of file gmock/gtest/include/gtest/internal/gtest-internal.h.
static Bits testing::internal::FloatingPoint< RawType >::DistanceBetweenSignAndMagnitudeNumbers | ( | const Bits & | sam1, |
const Bits & | sam2 | ||
) | [inline, static, private] |
Definition at line 371 of file gtest/include/gtest/internal/gtest-internal.h.
static Bits testing::internal::FloatingPoint< RawType >::DistanceBetweenSignAndMagnitudeNumbers | ( | const Bits & | sam1, |
const Bits & | sam2 | ||
) | [inline, static, private] |
Definition at line 7331 of file gtest/fused-src/gtest/gtest.h.
static Bits testing::internal::FloatingPoint< RawType >::DistanceBetweenSignAndMagnitudeNumbers | ( | const Bits & | sam1, |
const Bits & | sam2 | ||
) | [inline, static, private] |
Definition at line 7331 of file gmock/gtest/fused-src/gtest/gtest.h.
Bits testing::internal::FloatingPoint< RawType >::exponent_bits | ( | ) | const [inline] |
Definition at line 307 of file gmock/gtest/include/gtest/internal/gtest-internal.h.
Bits testing::internal::FloatingPoint< RawType >::exponent_bits | ( | ) | const [inline] |
Definition at line 307 of file gtest/include/gtest/internal/gtest-internal.h.
Bits testing::internal::FloatingPoint< RawType >::exponent_bits | ( | ) | const [inline] |
Definition at line 7267 of file gmock/gtest/fused-src/gtest/gtest.h.
Bits testing::internal::FloatingPoint< RawType >::exponent_bits | ( | ) | const [inline] |
Definition at line 7267 of file gtest/fused-src/gtest/gtest.h.
Bits testing::internal::FloatingPoint< RawType >::fraction_bits | ( | ) | const [inline] |
Definition at line 310 of file gmock/gtest/include/gtest/internal/gtest-internal.h.
Bits testing::internal::FloatingPoint< RawType >::fraction_bits | ( | ) | const [inline] |
Definition at line 310 of file gtest/include/gtest/internal/gtest-internal.h.
Bits testing::internal::FloatingPoint< RawType >::fraction_bits | ( | ) | const [inline] |
Definition at line 7270 of file gtest/fused-src/gtest/gtest.h.
Bits testing::internal::FloatingPoint< RawType >::fraction_bits | ( | ) | const [inline] |
Definition at line 7270 of file gmock/gtest/fused-src/gtest/gtest.h.
static RawType testing::internal::FloatingPoint< RawType >::Infinity | ( | ) | [inline, static] |
Definition at line 294 of file gtest/include/gtest/internal/gtest-internal.h.
static RawType testing::internal::FloatingPoint< RawType >::Infinity | ( | ) | [inline, static] |
Definition at line 294 of file gmock/gtest/include/gtest/internal/gtest-internal.h.
static RawType testing::internal::FloatingPoint< RawType >::Infinity | ( | ) | [inline, static] |
Definition at line 7254 of file gmock/gtest/fused-src/gtest/gtest.h.
static RawType testing::internal::FloatingPoint< RawType >::Infinity | ( | ) | [inline, static] |
Definition at line 7254 of file gtest/fused-src/gtest/gtest.h.
bool testing::internal::FloatingPoint< RawType >::is_nan | ( | ) | const [inline] |
Definition at line 316 of file gmock/gtest/include/gtest/internal/gtest-internal.h.
bool testing::internal::FloatingPoint< RawType >::is_nan | ( | ) | const [inline] |
Definition at line 316 of file gtest/include/gtest/internal/gtest-internal.h.
bool testing::internal::FloatingPoint< RawType >::is_nan | ( | ) | const [inline] |
Definition at line 7276 of file gmock/gtest/fused-src/gtest/gtest.h.
bool testing::internal::FloatingPoint< RawType >::is_nan | ( | ) | const [inline] |
Definition at line 7276 of file gtest/fused-src/gtest/gtest.h.
static RawType testing::internal::FloatingPoint< RawType >::Max | ( | ) | [static] |
static RawType testing::internal::FloatingPoint< RawType >::Max | ( | ) | [static] |
float testing::internal::FloatingPoint< float >::Max | ( | ) | [inline] |
Definition at line 384 of file gmock/gtest/include/gtest/internal/gtest-internal.h.
float testing::internal::FloatingPoint< float >::Max | ( | ) | [inline] |
Definition at line 384 of file gtest/include/gtest/internal/gtest-internal.h.
double testing::internal::FloatingPoint< double >::Max | ( | ) | [inline] |
Definition at line 386 of file gmock/gtest/include/gtest/internal/gtest-internal.h.
double testing::internal::FloatingPoint< double >::Max | ( | ) | [inline] |
Definition at line 386 of file gtest/include/gtest/internal/gtest-internal.h.
static RawType testing::internal::FloatingPoint< RawType >::Max | ( | ) | [static] |
static RawType testing::internal::FloatingPoint< RawType >::Max | ( | ) | [static] |
float testing::internal::FloatingPoint< float >::Max | ( | ) | [inline] |
Definition at line 7344 of file gmock/gtest/fused-src/gtest/gtest.h.
float testing::internal::FloatingPoint< float >::Max | ( | ) | [inline] |
Definition at line 7344 of file gtest/fused-src/gtest/gtest.h.
double testing::internal::FloatingPoint< double >::Max | ( | ) | [inline] |
Definition at line 7346 of file gmock/gtest/fused-src/gtest/gtest.h.
double testing::internal::FloatingPoint< double >::Max | ( | ) | [inline] |
Definition at line 7346 of file gtest/fused-src/gtest/gtest.h.
static RawType testing::internal::FloatingPoint< RawType >::ReinterpretBits | ( | const Bits | bits | ) | [inline, static] |
Definition at line 287 of file gmock/gtest/include/gtest/internal/gtest-internal.h.
static RawType testing::internal::FloatingPoint< RawType >::ReinterpretBits | ( | const Bits | bits | ) | [inline, static] |
Definition at line 287 of file gtest/include/gtest/internal/gtest-internal.h.
static RawType testing::internal::FloatingPoint< RawType >::ReinterpretBits | ( | const Bits | bits | ) | [inline, static] |
Definition at line 7247 of file gmock/gtest/fused-src/gtest/gtest.h.
static RawType testing::internal::FloatingPoint< RawType >::ReinterpretBits | ( | const Bits | bits | ) | [inline, static] |
Definition at line 7247 of file gtest/fused-src/gtest/gtest.h.
Bits testing::internal::FloatingPoint< RawType >::sign_bit | ( | ) | const [inline] |
Definition at line 313 of file gtest/include/gtest/internal/gtest-internal.h.
Bits testing::internal::FloatingPoint< RawType >::sign_bit | ( | ) | const [inline] |
Definition at line 313 of file gmock/gtest/include/gtest/internal/gtest-internal.h.
Bits testing::internal::FloatingPoint< RawType >::sign_bit | ( | ) | const [inline] |
Definition at line 7273 of file gmock/gtest/fused-src/gtest/gtest.h.
Bits testing::internal::FloatingPoint< RawType >::sign_bit | ( | ) | const [inline] |
Definition at line 7273 of file gtest/fused-src/gtest/gtest.h.
static Bits testing::internal::FloatingPoint< RawType >::SignAndMagnitudeToBiased | ( | const Bits & | sam | ) | [inline, static, private] |
Definition at line 359 of file gmock/gtest/include/gtest/internal/gtest-internal.h.
static Bits testing::internal::FloatingPoint< RawType >::SignAndMagnitudeToBiased | ( | const Bits & | sam | ) | [inline, static, private] |
Definition at line 359 of file gtest/include/gtest/internal/gtest-internal.h.
static Bits testing::internal::FloatingPoint< RawType >::SignAndMagnitudeToBiased | ( | const Bits & | sam | ) | [inline, static, private] |
Definition at line 7319 of file gmock/gtest/fused-src/gtest/gtest.h.
static Bits testing::internal::FloatingPoint< RawType >::SignAndMagnitudeToBiased | ( | const Bits & | sam | ) | [inline, static, private] |
Definition at line 7319 of file gtest/fused-src/gtest/gtest.h.
static const size_t testing::internal::FloatingPoint< RawType >::kBitCount = 8*sizeof(RawType) [static] |
Definition at line 7201 of file gmock/gtest/fused-src/gtest/gtest.h.
static const size_t testing::internal::FloatingPoint< RawType >::kExponentBitCount = kBitCount - 1 - kFractionBitCount [static] |
Definition at line 7208 of file gmock/gtest/fused-src/gtest/gtest.h.
static const Bits testing::internal::FloatingPoint< RawType >::kExponentBitMask = ~(kSignBitMask | kFractionBitMask) [static] |
Definition at line 7218 of file gmock/gtest/fused-src/gtest/gtest.h.
static const size_t testing::internal::FloatingPoint< RawType >::kFractionBitCount [static] |
std::numeric_limits<RawType>::digits - 1
Definition at line 7204 of file gmock/gtest/fused-src/gtest/gtest.h.
static const Bits testing::internal::FloatingPoint< RawType >::kFractionBitMask [static] |
~static_cast<Bits>(0) >> (kExponentBitCount + 1)
Definition at line 7214 of file gmock/gtest/fused-src/gtest/gtest.h.
static const size_t testing::internal::FloatingPoint< RawType >::kMaxUlps = 4 [static] |
Definition at line 7232 of file gmock/gtest/fused-src/gtest/gtest.h.
static const Bits testing::internal::FloatingPoint< RawType >::kSignBitMask = static_cast<Bits>(1) << (kBitCount - 1) [static] |
Definition at line 7211 of file gmock/gtest/fused-src/gtest/gtest.h.
FloatingPointUnion testing::internal::FloatingPoint< RawType >::u_ [private] |
Definition at line 7338 of file gmock/gtest/fused-src/gtest/gtest.h.