Analysis Software
Documentation for sPHENIX simulation software
|
#include <JETSCAPE/blob/main/external_packages/googletest/googletest/include/gtest/internal/gtest-internal.h>
Classes | |
union | FloatingPointUnion |
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 |
template<> | |
float | Max () |
template<> | |
double | Max () |
Static Public Member Functions | |
static RawType | ReinterpretBits (const Bits bits) |
static RawType | Infinity () |
static RawType | Max () |
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 |
Static Private Member Functions | |
static Bits | SignAndMagnitudeToBiased (const Bits &sam) |
static Bits | DistanceBetweenSignAndMagnitudeNumbers (const Bits &sam1, const Bits &sam2) |
Private Attributes | |
FloatingPointUnion | u_ |
Definition at line 262 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 262 of file gtest-internal.h
typedef TypeWithSize<sizeof(RawType)>::UInt testing::internal::FloatingPoint< RawType >::Bits |
Definition at line 266 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 266 of file gtest-internal.h
|
inlineexplicit |
Definition at line 310 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 310 of file gtest-internal.h
References testing::internal::FloatingPoint< RawType >::u_, testing::internal::FloatingPoint< RawType >::FloatingPointUnion::value_, and ambiguity_solver_full_chain::x.
|
inline |
Definition at line 358 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 358 of file gtest-internal.h
References testing::internal::FloatingPoint< RawType >::FloatingPointUnion::bits_, testing::internal::FloatingPoint< RawType >::DistanceBetweenSignAndMagnitudeNumbers(), testing::internal::FloatingPoint< RawType >::is_nan(), testing::internal::FloatingPoint< RawType >::kMaxUlps, and testing::internal::FloatingPoint< RawType >::u_.
|
inline |
Definition at line 334 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 334 of file gtest-internal.h
References testing::internal::FloatingPoint< RawType >::FloatingPointUnion::bits_, and testing::internal::FloatingPoint< RawType >::u_.
Referenced by testing::internal::FloatingPoint< RawType >::ReinterpretBits().
|
inlinestaticprivate |
Definition at line 401 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 401 of file gtest-internal.h
References testing::internal::FloatingPoint< RawType >::SignAndMagnitudeToBiased().
Referenced by testing::internal::FloatingPoint< RawType >::AlmostEquals().
|
inline |
Definition at line 337 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 337 of file gtest-internal.h
References testing::internal::FloatingPoint< RawType >::FloatingPointUnion::bits_, testing::internal::FloatingPoint< RawType >::kExponentBitMask, and testing::internal::FloatingPoint< RawType >::u_.
Referenced by testing::internal::FloatingPoint< RawType >::is_nan().
|
inline |
Definition at line 340 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 340 of file gtest-internal.h
References testing::internal::FloatingPoint< RawType >::FloatingPointUnion::bits_, testing::internal::FloatingPoint< RawType >::kFractionBitMask, and testing::internal::FloatingPoint< RawType >::u_.
Referenced by testing::internal::FloatingPoint< RawType >::is_nan().
|
inlinestatic |
Definition at line 324 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 324 of file gtest-internal.h
References testing::internal::FloatingPoint< RawType >::kExponentBitMask, and testing::internal::FloatingPoint< RawType >::ReinterpretBits().
|
inline |
Definition at line 346 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 346 of file gtest-internal.h
References testing::internal::FloatingPoint< RawType >::exponent_bits(), testing::internal::FloatingPoint< RawType >::fraction_bits(), and testing::internal::FloatingPoint< RawType >::kExponentBitMask.
Referenced by testing::internal::FloatingPoint< RawType >::AlmostEquals(), and testing::internal::FloatingEqMatcher< FloatType >::Impl< T >::MatchAndExplain().
|
static |
|
inline |
Definition at line 414 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 414 of file gtest-internal.h
|
inline |
Definition at line 416 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 416 of file gtest-internal.h
|
inlinestatic |
Definition at line 317 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 317 of file gtest-internal.h
References testing::internal::FloatingPoint< RawType >::bits(), testing::internal::FloatingPoint< RawType >::FloatingPointUnion::bits_, testing::internal::FloatingPoint< RawType >::u_, and testing::internal::FloatingPoint< RawType >::FloatingPointUnion::value_.
Referenced by testing::gmock_matchers_test::FloatingPointTest< RawType >::AsBits(), and testing::internal::FloatingPoint< RawType >::Infinity().
|
inline |
Definition at line 343 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 343 of file gtest-internal.h
References testing::internal::FloatingPoint< RawType >::FloatingPointUnion::bits_, testing::internal::FloatingPoint< RawType >::kSignBitMask, and testing::internal::FloatingPoint< RawType >::u_.
|
inlinestaticprivate |
Definition at line 389 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 389 of file gtest-internal.h
References testing::internal::FloatingPoint< RawType >::kSignBitMask.
Referenced by testing::internal::FloatingPoint< RawType >::DistanceBetweenSignAndMagnitudeNumbers().
|
static |
Definition at line 271 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 271 of file gtest-internal.h
|
static |
Definition at line 278 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 278 of file gtest-internal.h
|
static |
Definition at line 288 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 288 of file gtest-internal.h
Referenced by testing::internal::FloatingPoint< RawType >::exponent_bits(), testing::internal::FloatingPoint< RawType >::Infinity(), and testing::internal::FloatingPoint< RawType >::is_nan().
|
static |
Definition at line 274 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 274 of file gtest-internal.h
|
static |
Definition at line 284 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 284 of file gtest-internal.h
Referenced by testing::internal::FloatingPoint< RawType >::fraction_bits().
|
static |
Definition at line 302 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 302 of file gtest-internal.h
Referenced by testing::internal::FloatingPoint< RawType >::AlmostEquals().
|
static |
Definition at line 281 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 281 of file gtest-internal.h
Referenced by testing::internal::FloatingPoint< RawType >::sign_bit(), and testing::internal::FloatingPoint< RawType >::SignAndMagnitudeToBiased().
|
private |
Definition at line 408 of file gtest-internal.h.
View newest version in sPHENIX GitHub at line 408 of file gtest-internal.h
Referenced by testing::internal::FloatingPoint< RawType >::AlmostEquals(), testing::internal::FloatingPoint< RawType >::bits(), testing::internal::FloatingPoint< RawType >::exponent_bits(), testing::internal::FloatingPoint< RawType >::FloatingPoint(), testing::internal::FloatingPoint< RawType >::fraction_bits(), testing::internal::FloatingPoint< RawType >::ReinterpretBits(), and testing::internal::FloatingPoint< RawType >::sign_bit().