Searched refs:NormalFloat (Results 1 – 5 of 5) sorted by relevance
/external/llvm-project/libc/test/src/math/ |
D | LdExpTest.h | 24 using NormalFloat = __llvm_libc::fputil::NormalFloat<T>; variable 29 static constexpr UIntType mantissa = NormalFloat::one + 0x1234; 63 NormalFloat x(FPBits::maxExponent - 10, NormalFloat::one + 0xF00BA, 0); in testOverflow() 76 T x = NormalFloat(0, mantissa, 0); in testUnderflowToZeroOnNormal() 88 T x = NormalFloat(-FPBits::exponentBias, mantissa, 0); in testUnderflowToZeroOnSubnormal() 97 NormalFloat(100, mantissa, 0), NormalFloat(-100, mantissa, 0), in testNormalOperation() 98 NormalFloat(100, mantissa, 1), NormalFloat(-100, mantissa, 1), in testNormalOperation() 100 NormalFloat(-FPBits::exponentBias, mantissa, 0), in testNormalOperation() 101 NormalFloat(-FPBits::exponentBias, mantissa, 1)}; in testNormalOperation() 112 T x = NormalFloat(-FPBits::exponentBias + 1, 2 * NormalFloat::one - 1, 0); in testNormalOperation() [all …]
|
/external/llvm-project/libc/utils/FPUtil/ |
D | NormalFloat.h | 28 template <typename T> struct NormalFloat { struct 47 NormalFloat(int32_t e, UIntType m, bool s) in NormalFloat() argument 57 explicit NormalFloat(T x) { initFromBits(FPBits<T>(x)); } in NormalFloat() function 59 explicit NormalFloat(FPBits<T> bits) { initFromBits(bits); } in NormalFloat() argument 64 int cmp(const NormalFloat<T> &other) const { in cmp() argument 85 NormalFloat<T> mul2(int e) const { in mul2() argument 86 NormalFloat<T> result = *this; in mul2() 174 inline void NormalFloat<long double>::initFromBits(FPBits<long double> bits) { in initFromBits() argument 207 template <> inline NormalFloat<long double>::operator long double() const {
|
D | DivisionAndRemainderOperations.h | 53 NormalFloat<T> normalx(xbits), normaly(ybits); in remquo() 55 typename NormalFloat<T>::UIntType mx = normalx.mantissa, in remquo() 61 typename NormalFloat<T>::UIntType n = mx; in remquo() 79 NormalFloat<T> remainder(exp + normaly.exponent, mx, 0); in remquo()
|
D | ManipulationFunctions.h | 35 NormalFloat<T> normal(bits); in frexp() 85 NormalFloat<T> normal(bits); in ilogb() 115 NormalFloat<T> normal(bits); in logb() 141 NormalFloat<T> normal(bits); in ldexp()
|
D | CMakeLists.txt | 29 NormalFloat.h
|