![]() |
ATLAS Offline Software
|
Namespaces | |
| namespace | BitCastHelper |
| namespace | LeadingZerosPortability |
| namespace | OperatorsHelper |
Classes | |
| struct | ConversionHelper |
| struct | ConversionHelper< Format, Format > |
| struct | ConversionHelper< StandardDouble, StandardFloat > |
| class | IEEE754_like |
| Specifies a floating point format like those described in IEEE-754, with an adjustable number of bits in the exponent and mantissa. More... | |
Typedefs | |
| using | StandardFloat = IEEE754_like<23, 8> |
| using | StandardDouble = IEEE754_like<52, 11> |
| using | CUDAHalfFloat = IEEE754_like<10, 5> |
| using | CUDABFloat16 = IEEE754_like<7, 8> |
Enumerations | |
| enum class | RoundingModes { ToPlusInfinity , ToMinusInfinity , ToZero , ToNearestEven , ToNearestAwayFromZero , Default = ToNearestEven } |
| Specifies the rounding mode to use for the operations. More... | |
Functions | |
| template<class T, class FDest, class FSource> | |
| static constexpr T | down_convert (const T pattern, const RoundingModes rt=RoundingModes::Default) |
Converts pattern from the larger floating point format FSource to FDest. | |
| template<class T, class FDest, class FSource> | |
| static constexpr T | up_convert (const T pattern, const RoundingModes rt=RoundingModes::Default) |
Converts pattern from the smaller floating point format FSource to FDest. | |
| using FloatingPointHelpers::CUDABFloat16 = IEEE754_like<7, 8> |
Definition at line 916 of file FPHelpers.h.
| using FloatingPointHelpers::CUDAHalfFloat = IEEE754_like<10, 5> |
Definition at line 915 of file FPHelpers.h.
| using FloatingPointHelpers::StandardDouble = IEEE754_like<52, 11> |
Definition at line 834 of file FPHelpers.h.
| using FloatingPointHelpers::StandardFloat = IEEE754_like<23, 8> |
Definition at line 832 of file FPHelpers.h.
|
strong |
Specifies the rounding mode to use for the operations.
| Enumerator | |
|---|---|
| ToPlusInfinity | |
| ToMinusInfinity | |
| ToZero | |
| ToNearestEven | |
| ToNearestAwayFromZero | |
| Default | |
Definition at line 57 of file FPHelpers.h.
|
inlinestaticconstexpr |
Converts pattern from the larger floating point format FSource to FDest.
Note: A few tests show that, under some circumstances, compilers may make this branchless. Clang seemed to do it, but not GCC. NVCC (for the GPU) surely did. There's probably still room for improvement, but...
Definition at line 807 of file FPHelpers.h.
|
inlinestaticconstexpr |
Converts pattern from the smaller floating point format FSource to FDest.
Definition at line 823 of file FPHelpers.h.