Home
last modified time | relevance | path

Searched refs:BitsType (Results 1 – 12 of 12) sorted by relevance

/external/llvm-project/libc/utils/FPUtil/
DBitPatterns.h26 using BitsType = FloatProperties<float>::BitsType;
28 static constexpr BitsType inf = 0x7f800000U;
29 static constexpr BitsType negInf = 0xff800000U;
31 static constexpr BitsType zero = 0x0;
32 static constexpr BitsType negZero = 0x80000000U;
34 static constexpr BitsType one = 0x3f800000U;
37 static constexpr BitsType aQuietNaN = 0x7fc00000U;
38 static constexpr BitsType aNegativeQuietNaN = 0xffc00000U;
41 static constexpr BitsType aSignallingNaN = 0x7f800001U;
42 static constexpr BitsType aNegativeSignallingNaN = 0xff800001U;
[all …]
DFloatProperties.h20 typedef uint32_t BitsType;
21 static_assert(sizeof(BitsType) == sizeof(float),
24 static constexpr uint32_t bitWidth = sizeof(BitsType) << 3;
27 static constexpr BitsType mantissaMask = 0x007fffffU;
28 static constexpr BitsType signMask = 0x80000000U;
29 static constexpr BitsType exponentMask = ~(signMask | mantissaMask);
35 static constexpr BitsType quietNaNMask = 0x00400000U;
39 typedef uint64_t BitsType;
40 static_assert(sizeof(BitsType) == sizeof(double),
43 static constexpr uint32_t bitWidth = sizeof(BitsType) << 3;
[all …]
DClassificationFunctions.h21 template <typename BitsType> static inline bool bitsAreInf(BitsType bits) { in bitsAreInf()
22 using FPType = typename FloatType<BitsType>::Type; in bitsAreInf()
34 template <typename BitsType> static inline bool bitsAreNaN(BitsType bits) { in bitsAreNaN()
35 using FPType = typename FloatType<BitsType>::Type; in bitsAreNaN()
47 template <typename BitsType> static inline bool bitsAreInfOrNaN(BitsType bits) { in bitsAreInfOrNaN()
48 using FPType = typename FloatType<BitsType>::Type; in bitsAreInfOrNaN()
52 template <typename BitsType> static inline bool bitsAreZero(BitsType bits) { in bitsAreZero()
53 using FPType = typename FloatType<BitsType>::Type; in bitsAreZero()
70 using BitsType = typename FloatProperties<T>::BitsType; in isQuietNaN() local
71 BitsType bits = valueAsBits(x); in isQuietNaN()
[all …]
DFloatOperations.h23 static inline typename FloatProperties<T>::BitsType valueAsBits(T x) { in valueAsBits()
24 using BitsType = typename FloatProperties<T>::BitsType; in valueAsBits() local
25 return *reinterpret_cast<BitsType *>(&x); in valueAsBits()
29 template <typename BitsType,
31 cpp::IsFloatingPointType<FloatTypeT<BitsType>>::Value, int> = 0>
32 static inline FloatTypeT<BitsType> valueFromBits(BitsType bits) { in valueFromBits()
33 return *reinterpret_cast<FloatTypeT<BitsType> *>(&bits); in valueFromBits()
39 static inline typename FloatProperties<T>::BitsType absBits(T x) { in absBits()
43 template <typename BitsType>
44 static inline int getExponentFromBits(BitsType bits) { in getExponentFromBits()
[all …]
/external/llvm-project/libc/test/src/math/
Dlogb_test.cpp87 using BitsType = Properties::BitsType; in TEST() typedef
88 constexpr BitsType count = 10000000; in TEST()
89 constexpr BitsType step = UINT64_MAX / count; in TEST()
90 for (BitsType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
Dlogbf_test.cpp87 using BitsType = Properties::BitsType; in TEST() typedef
88 constexpr BitsType count = 10000000; in TEST()
89 constexpr BitsType step = UINT32_MAX / count; in TEST()
90 for (BitsType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
Dmodff_test.cpp120 using BitsType = Properties::BitsType; in TEST() typedef
121 constexpr BitsType count = 10000000; in TEST()
122 constexpr BitsType step = UINT32_MAX / count; in TEST()
123 for (BitsType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
Dmodf_test.cpp116 using BitsType = Properties::BitsType; in TEST() typedef
117 constexpr BitsType count = 10000000; in TEST()
118 constexpr BitsType step = UINT64_MAX / count; in TEST()
119 for (BitsType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
Dsdcomp26094.h18 static constexpr __llvm_libc::cpp::Array<fputil::BitPatterns<float>::BitsType,
/external/llvm/lib/Transforms/IPO/
DLowerTypeTests.cpp297 auto BitsType = cast<IntegerType>(Bits->getType()); in createMaskedBitTest() local
298 unsigned BitWidth = BitsType->getBitWidth(); in createMaskedBitTest()
300 BitOffset = B.CreateZExtOrTrunc(BitOffset, BitsType); in createMaskedBitTest()
302 B.CreateAnd(BitOffset, ConstantInt::get(BitsType, BitWidth - 1)); in createMaskedBitTest()
303 Value *BitMask = B.CreateShl(ConstantInt::get(BitsType, 1), BitIndex); in createMaskedBitTest()
305 return B.CreateICmpNE(MaskedBits, ConstantInt::get(BitsType, 0)); in createMaskedBitTest()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DLowerTypeTests.cpp579 auto BitsType = cast<IntegerType>(Bits->getType()); in createMaskedBitTest() local
580 unsigned BitWidth = BitsType->getBitWidth(); in createMaskedBitTest()
582 BitOffset = B.CreateZExtOrTrunc(BitOffset, BitsType); in createMaskedBitTest()
584 B.CreateAnd(BitOffset, ConstantInt::get(BitsType, BitWidth - 1)); in createMaskedBitTest()
585 Value *BitMask = B.CreateShl(ConstantInt::get(BitsType, 1), BitIndex); in createMaskedBitTest()
587 return B.CreateICmpNE(MaskedBits, ConstantInt::get(BitsType, 0)); in createMaskedBitTest()
/external/llvm-project/llvm/lib/Transforms/IPO/
DLowerTypeTests.cpp586 auto BitsType = cast<IntegerType>(Bits->getType()); in createMaskedBitTest() local
587 unsigned BitWidth = BitsType->getBitWidth(); in createMaskedBitTest()
589 BitOffset = B.CreateZExtOrTrunc(BitOffset, BitsType); in createMaskedBitTest()
591 B.CreateAnd(BitOffset, ConstantInt::get(BitsType, BitWidth - 1)); in createMaskedBitTest()
592 Value *BitMask = B.CreateShl(ConstantInt::get(BitsType, 1), BitIndex); in createMaskedBitTest()
594 return B.CreateICmpNE(MaskedBits, ConstantInt::get(BitsType, 0)); in createMaskedBitTest()