Home
last modified time | relevance | path

Searched refs:UIntType (Results 1 – 25 of 81) sorted by relevance

1234

/external/webrtc/third_party/abseil-cpp/absl/random/internal/
Dfast_uniform_bits.h30 template <typename UIntType>
31 constexpr bool IsPowerOfTwoOrZero(UIntType n) { in IsPowerOfTwoOrZero()
47 template <typename UIntType>
48 constexpr UIntType LargestPowerOfTwoLessThanOrEqualTo(UIntType n) { in LargestPowerOfTwoLessThanOrEqualTo()
60 template <typename UIntType>
61 constexpr UIntType IntegerLog2(UIntType n) { in IntegerLog2()
76 template <typename UIntType>
77 constexpr UIntType MaskFromShift(UIntType n) { in MaskFromShift()
78 return ((n % std::numeric_limits<UIntType>::digits) == 0) in MaskFromShift()
79 ? ~UIntType{0} in MaskFromShift()
[all …]
/external/abseil-cpp/absl/random/internal/
Dfast_uniform_bits.h30 template <typename UIntType>
31 constexpr bool IsPowerOfTwoOrZero(UIntType n) { in IsPowerOfTwoOrZero()
47 template <typename UIntType>
48 constexpr UIntType LargestPowerOfTwoLessThanOrEqualTo(UIntType n) { in LargestPowerOfTwoLessThanOrEqualTo()
60 template <typename UIntType>
61 constexpr UIntType IntegerLog2(UIntType n) { in IntegerLog2()
76 template <typename UIntType>
77 constexpr UIntType MaskFromShift(UIntType n) { in MaskFromShift()
78 return ((n % std::numeric_limits<UIntType>::digits) == 0) in MaskFromShift()
79 ? ~UIntType{0} in MaskFromShift()
[all …]
/external/llvm-project/libc/utils/FPUtil/
DLongDoubleBitsX86.h32 using UIntType = __uint128_t;
36 static constexpr UIntType minSubnormal = UIntType(1);
38 static constexpr UIntType maxSubnormal =
39 (UIntType(1) << (MantissaWidth<long double>::value + 1)) - 1;
40 static constexpr UIntType minNormal =
41 (UIntType(3) << MantissaWidth<long double>::value);
42 static constexpr UIntType maxNormal =
43 ((UIntType(maxExponent) - 1) << (MantissaWidth<long double>::value + 1)) |
44 (UIntType(1) << MantissaWidth<long double>::value) | maxSubnormal;
46 UIntType mantissa : MantissaWidth<long double>::value;
[all …]
DNormalFloat.h33 using UIntType = typename FPBits<T>::UIntType; member
34 static constexpr UIntType one = (UIntType(1) << MantissaWidth<T>::value);
39 UIntType mantissa;
42 static_assert(sizeof(UIntType) * 8 >= MantissaWidth<T>::value + 1,
47 NormalFloat(int32_t e, UIntType m, bool s) in NormalFloat()
110 const UIntType shiftOutMask = (UIntType(1) << shift) - 1; in T()
111 const UIntType shiftOutValue = mantissa & shiftOutMask; in T()
112 const UIntType halfwayValue = UIntType(1) << (shift - 1); in T()
115 UIntType newMantissa = result.mantissa; in T()
155 mantissa = UIntType(bits.mantissa) << shift; in initFromBits()
[all …]
DFPBits.h67 using UIntType = typename FPUIntType<T>::Type;
69 UIntType mantissa : MantissaWidth<T>::value;
76 static constexpr UIntType minSubnormal = UIntType(1);
77 static constexpr UIntType maxSubnormal =
78 (UIntType(1) << MantissaWidth<T>::value) - 1;
79 static constexpr UIntType minNormal =
80 (UIntType(1) << MantissaWidth<T>::value);
81 static constexpr UIntType maxNormal =
82 ((UIntType(maxExponent) - 1) << MantissaWidth<T>::value) | maxSubnormal;
110 cpp::EnableIfType<cpp::IsSame<UIntType, XType>::Value, int> = 0>
[all …]
DHypot.h122 using UIntType = typename FPBits<T>::UIntType;
123 using DUIntType = typename DoubleLength<UIntType>::Type;
138 UIntType a_mant, b_mant;
167 constexpr UIntType one = UIntType(1) << (MantissaWidth<T>::value + 1);
172 UIntType leading_one;
220 UIntType Y = leading_one;
221 UIntType R = static_cast<UIntType>(sum >> y_mant_width) - leading_one;
222 UIntType tailBits = static_cast<UIntType>(sum) & (leading_one - 1);
224 for (UIntType current_bit = leading_one >> 1; current_bit;
227 UIntType tmp = (Y << 1) + current_bit; // 2*y(n - 1) + 2^(-n)
[all …]
DSqrtLongDoubleX86.h47 using UIntType = typename FPBits<long double>::UIntType; variable
48 constexpr UIntType One = UIntType(1)
71 UIntType xMant = bits.mantissa;
98 UIntType y = One;
99 UIntType r = xMant - One;
101 for (UIntType current_bit = One >> 1; current_bit; current_bit >>= 1) {
103 UIntType tmp = (y << 1) + current_bit; // 2*y(n - 1) + 2^(-n-1)
114 UIntType tmp = (y << 2) + 1;
122 y |= (static_cast<UIntType>(xExp)
DSqrt.h23 typename FPBits<T>::UIntType &mantissa);
93 using UIntType = typename FPBits<T>::UIntType; in sqrt() local
94 constexpr UIntType One = UIntType(1) << MantissaWidth<T>::value; in sqrt()
116 UIntType xMant = bits.mantissa; in sqrt()
144 UIntType y = One; in sqrt()
145 UIntType r = xMant - One; in sqrt()
147 for (UIntType current_bit = One >> 1; current_bit; current_bit >>= 1) { in sqrt()
149 UIntType tmp = (y << 1) + current_bit; // 2*y(n - 1) + 2^(-n-1) in sqrt()
160 UIntType tmp = (y << 2) + 1; in sqrt()
169 y = (y - One) | (static_cast<UIntType>(xExp) << MantissaWidth<T>::value); in sqrt()
/external/angle/third_party/abseil-cpp/absl/random/internal/
Dfast_uniform_bits.h31 template <typename UIntType>
32 constexpr bool IsPowerOfTwoOrZero(UIntType n) { in IsPowerOfTwoOrZero()
50 template <typename UIntType>
51 constexpr UIntType IntegerLog2(UIntType n) { in IntegerLog2()
66 template <typename UIntType>
67 constexpr UIntType MaskFromShift(size_t n) { in MaskFromShift()
68 return ((n % std::numeric_limits<UIntType>::digits) == 0) in MaskFromShift()
69 ? ~UIntType{0} in MaskFromShift()
70 : (UIntType{1} << n) - UIntType{1}; in MaskFromShift()
87 template <typename UIntType = uint64_t>
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/random/internal/
Dfast_uniform_bits.h31 template <typename UIntType>
32 constexpr bool IsPowerOfTwoOrZero(UIntType n) { in IsPowerOfTwoOrZero()
50 template <typename UIntType>
51 constexpr UIntType IntegerLog2(UIntType n) { in IntegerLog2()
66 template <typename UIntType>
67 constexpr UIntType MaskFromShift(size_t n) { in MaskFromShift()
68 return ((n % std::numeric_limits<UIntType>::digits) == 0) in MaskFromShift()
69 ? ~UIntType{0} in MaskFromShift()
70 : (UIntType{1} << n) - UIntType{1}; in MaskFromShift()
87 template <typename UIntType = uint64_t>
[all …]
/external/libtextclassifier/abseil-cpp/absl/random/internal/
Dfast_uniform_bits.h31 template <typename UIntType>
32 constexpr bool IsPowerOfTwoOrZero(UIntType n) { in IsPowerOfTwoOrZero()
50 template <typename UIntType>
51 constexpr UIntType IntegerLog2(UIntType n) { in IntegerLog2()
66 template <typename UIntType>
67 constexpr UIntType MaskFromShift(size_t n) { in MaskFromShift()
68 return ((n % std::numeric_limits<UIntType>::digits) == 0) in MaskFromShift()
69 ? ~UIntType{0} in MaskFromShift()
70 : (UIntType{1} << n) - UIntType{1}; in MaskFromShift()
87 template <typename UIntType = uint64_t>
[all …]
/external/openscreen/third_party/abseil/src/absl/random/internal/
Dfast_uniform_bits.h31 template <typename UIntType>
32 constexpr bool IsPowerOfTwoOrZero(UIntType n) { in IsPowerOfTwoOrZero()
50 template <typename UIntType>
51 constexpr UIntType IntegerLog2(UIntType n) { in IntegerLog2()
66 template <typename UIntType>
67 constexpr UIntType MaskFromShift(size_t n) { in MaskFromShift()
68 return ((n % std::numeric_limits<UIntType>::digits) == 0) in MaskFromShift()
69 ? ~UIntType{0} in MaskFromShift()
70 : (UIntType{1} << n) - UIntType{1}; in MaskFromShift()
87 template <typename UIntType = uint64_t>
[all …]
/external/llvm-project/libc/test/src/math/
Dsqrtl_test.cpp16 using UIntType = typename FPBits::UIntType; typedef
20 constexpr UIntType HiddenBit =
21 UIntType(1) << __llvm_libc::fputil::MantissaWidth<long double>::value;
38 for (UIntType mant = 1; mant < HiddenBit; mant <<= 1) { in TEST()
46 constexpr UIntType count = 1'000'001; in TEST()
47 constexpr UIntType step = HiddenBit / count; in TEST()
48 for (UIntType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
55 constexpr UIntType count = 10'000'001; in TEST()
56 constexpr UIntType step = UIntType(-1) / count; in TEST()
57 for (UIntType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
Dsqrtf_test.cpp16 using UIntType = typename FPBits::UIntType; typedef
20 constexpr UIntType HiddenBit =
21 UIntType(1) << __llvm_libc::fputil::MantissaWidth<float>::value;
38 for (UIntType mant = 1; mant < HiddenBit; mant <<= 1) { in TEST()
46 constexpr UIntType count = 1'000'001; in TEST()
47 constexpr UIntType step = HiddenBit / count; in TEST()
48 for (UIntType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
55 constexpr UIntType count = 10'000'001; in TEST()
56 constexpr UIntType step = UIntType(-1) / count; in TEST()
57 for (UIntType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
Dsqrt_test.cpp16 using UIntType = typename FPBits::UIntType; typedef
20 constexpr UIntType HiddenBit =
21 UIntType(1) << __llvm_libc::fputil::MantissaWidth<double>::value;
38 for (UIntType mant = 1; mant < HiddenBit; mant <<= 1) { in TEST()
46 constexpr UIntType count = 1'000'001; in TEST()
47 constexpr UIntType step = HiddenBit / count; in TEST()
48 for (UIntType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
55 constexpr UIntType count = 10'000'001; in TEST()
56 constexpr UIntType step = UIntType(-1) / count; in TEST()
57 for (UIntType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
DILogbTest.h75 using UIntType = typename FPBits::UIntType; in testSubnormalRange() local
76 constexpr UIntType count = 1000001; in testSubnormalRange()
77 constexpr UIntType step = in testSubnormalRange()
79 for (UIntType v = FPBits::minSubnormal; v <= FPBits::maxSubnormal; in testSubnormalRange()
93 using UIntType = typename FPBits::UIntType; in testNormalRange() local
94 constexpr UIntType count = 1000001; in testNormalRange()
95 constexpr UIntType step = (FPBits::maxNormal - FPBits::minNormal) / count; in testNormalRange()
96 for (UIntType v = FPBits::minNormal; v <= FPBits::maxNormal; v += step) { in testNormalRange()
Dfabs_test.cpp33 using UIntType = FPBits::UIntType; in TEST() typedef
34 constexpr UIntType count = 10000000; in TEST()
35 constexpr UIntType step = UIntType(-1) / count; in TEST()
36 for (UIntType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
Dfabsf_test.cpp33 using UIntType = FPBits::UIntType; in TEST() typedef
34 constexpr UIntType count = 1000000; in TEST()
35 constexpr UIntType step = UIntType(-1) / count; in TEST()
36 for (UIntType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
Dfabsl_test.cpp33 using UIntType = FPBits::UIntType; in TEST() typedef
34 constexpr UIntType count = 10000000; in TEST()
35 constexpr UIntType step = UIntType(-1) / count; in TEST()
36 for (UIntType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
Dcopysignl_test.cpp31 using UIntType = FPBits::UIntType; in TEST() typedef
32 constexpr UIntType count = 10000000; in TEST()
33 constexpr UIntType step = UIntType(-1) / count; in TEST()
34 for (UIntType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
Dcopysign_test.cpp31 using UIntType = FPBits::UIntType; in TEST() typedef
32 constexpr UIntType count = 10000000; in TEST()
33 constexpr UIntType step = UIntType(-1) / count; in TEST()
34 for (UIntType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
Dcopysignf_test.cpp31 using UIntType = FPBits::UIntType; in TEST() typedef
32 constexpr UIntType count = 1000000; in TEST()
33 constexpr UIntType step = UIntType(-1) / count; in TEST()
34 for (UIntType i = 0, v = 0; i <= count; ++i, v += step) { in TEST()
Dfminl_test.cpp53 using UIntType = FPBits::UIntType; in TEST() typedef
54 constexpr UIntType count = 10000000; in TEST()
55 constexpr UIntType step = UIntType(-1) / count; in TEST()
56 for (UIntType i = 0, v = 0, w = UIntType(-1); i <= count; in TEST()
Dfmaxf_test.cpp53 using UIntType = FPBits::UIntType; in TEST() typedef
54 constexpr UIntType count = 10000001; in TEST()
55 constexpr UIntType step = UIntType(-1) / count; in TEST()
56 for (UIntType i = 0, v = 0, w = UIntType(-1); i <= count; in TEST()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dcert-msc51-cpp.cpp8 template <class UIntType, UIntType a, UIntType c, UIntType m>
16 template <class UIntType, size_t w, size_t n, size_t m, size_t r,
17 UIntType a, size_t u, UIntType d, size_t s,
18 UIntType b, size_t t,
19 UIntType c, size_t l, UIntType f>
26 template <class UIntType, size_t w, size_t s, size_t r>
42 template <class Engine, size_t w, class UIntType>

1234