Home
last modified time | relevance | path

Searched refs:numeric_limits (Results 1 – 25 of 406) sorted by relevance

12345678910>>...17

/freebsd/contrib/llvm-project/libcxx/include/__numeric/
H A Dsaturation_arithmetic.h36 return std::numeric_limits<_Tp>::max(); in __add_sat()
41 return std::numeric_limits<_Tp>::max(); in __add_sat()
44 return std::numeric_limits<_Tp>::min(); in __add_sat()
55 return std::numeric_limits<_Tp>::min(); in __sub_sat()
60 return std::numeric_limits<_Tp>::max(); in __sub_sat()
63 return std::numeric_limits<_Tp>::min(); in __sub_sat()
73 return std::numeric_limits<_Tp>::max(); in __mul_sat()
77 return std::numeric_limits<_Tp>::max(); in __mul_sat()
79 return std::numeric_limits<_Tp>::min(); in __mul_sat()
90 if (__x == std::numeric_limits<_Tp>::min() && __y == _Tp{-1}) in __div_sat()
[all …]
H A Dmidpoint.h41 constexpr _Up __bitshift = numeric_limits<_Up>::digits - 1; in midpoint()
68 constexpr _Fp __lo = numeric_limits<_Fp>::min() * 2; in midpoint()
69 constexpr _Fp __hi = numeric_limits<_Fp>::max() / 2; in midpoint()
/freebsd/contrib/llvm-project/libcxx/include/__bit/
H A Dcountl.h66 return __builtin_clzg(__t, numeric_limits<_Tp>::digits); in __countl_zero()
69 return numeric_limits<_Tp>::digits; in __countl_zero()
73 (numeric_limits<unsigned int>::digits - numeric_limits<_Tp>::digits); in __countl_zero()
76 (numeric_limits<unsigned long>::digits - numeric_limits<_Tp>::digits); in __countl_zero()
79 (numeric_limits<unsigned long long>::digits - numeric_limits<_Tp>::digits); in __countl_zero()
83 const unsigned int __ulldigits = numeric_limits<unsigned long long>::digits; in __countl_zero()
104 …return __t != numeric_limits<_Tp>::max() ? std::countl_zero(static_cast<_Tp>(~__t)) : numeric_limi… in countl_one()
H A Dcountr.h44 return __builtin_ctzg(__t, numeric_limits<_Tp>::digits); in __countr_zero()
47 return numeric_limits<_Tp>::digits; in __countr_zero()
56 const unsigned int __ulldigits = numeric_limits<unsigned long long>::digits; in __countr_zero()
75 …return __t != numeric_limits<_Tp>::max() ? std::countr_zero(static_cast<_Tp>(~__t)) : numeric_limi… in countr_one()
H A Dbit_ceil.h30 const unsigned __n = numeric_limits<_Tp>::digits - std::__countl_zero((_Tp)(__t - 1u)); in __bit_ceil()
31 …_LIBCPP_ASSERT_ARGUMENT_WITHIN_DOMAIN(__n != numeric_limits<_Tp>::digits, "Bad input to bit_ceil"); in __bit_ceil()
36 const unsigned __extra = numeric_limits<unsigned>::digits - numeric_limits<_Tp>::digits; in __bit_ceil()
/freebsd/contrib/llvm-project/libcxx/include/__random/
H A Dclamp_to_integral.h27 bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits),
28 int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)>
32 static_assert(numeric_limits<_FloatT>::radix == 2, "FloatT has incorrect radix"); in __max_representable_int_for_float()
36 return _FloatBigger ? numeric_limits<_IntT>::max() : (numeric_limits<_IntT>::max() >> _Bits << _Bits); in __max_representable_int_for_float()
45 using _Lim = numeric_limits<_IntT>; in __clamp_to_integral()
H A Duniform_int_distribution.h59 static _LIBCPP_CONSTEXPR const size_t _WDt = numeric_limits<_Working_result_type>::digits;
60 static _LIBCPP_CONSTEXPR const size_t _EDt = numeric_limits<_Engine_result_type>::digits;
109 const size_t __w_rt = numeric_limits<result_type>::digits; in __independent_bits_engine()
151 _LIBCPP_HIDE_FROM_ABI explicit param_type(result_type __a = 0, result_type __b = numeric_limits<result_type>::max()) in __eval()
171 result_type __a, result_type __b = numeric_limits<result_type>::max())
174 explicit uniform_int_distribution(result_type __a = 0, result_type __b = numeric_limits<result_type>::max()) in a()
217 const size_t __dt = numeric_limits<_UIntType>::digits;
222 if ((__rp & (numeric_limits<_UIntType>::max() >> (__dt - __w))) != 0)
/freebsd/contrib/llvm-project/libcxx/include/
H A Dlimits20 class numeric_limits
78 template<> class numeric_limits<cv bool>;
80 template<> class numeric_limits<cv char>;
81 template<> class numeric_limits<cv signed char>;
82 template<> class numeric_limits<cv unsigned char>;
83 template<> class numeric_limits<cv wchar_t>;
84 template<> class numeric_limits<cv char8_t>; // C++20
85 template<> class numeric_limits<cv char16_t>;
86 template<> class numeric_limits<cv char32_t>;
88 template<> class numeric_limits<cv short>;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DCodeViewRecordIO.cpp289 } else if (Value >= std::numeric_limits<int8_t>::min() && in emitEncodedSignedInteger()
290 Value <= std::numeric_limits<int8_t>::max()) { in emitEncodedSignedInteger()
295 } else if (Value >= std::numeric_limits<int16_t>::min() && in emitEncodedSignedInteger()
296 Value <= std::numeric_limits<int16_t>::max()) { in emitEncodedSignedInteger()
301 } else if (Value >= std::numeric_limits<int32_t>::min() && in emitEncodedSignedInteger()
302 Value <= std::numeric_limits<int32_t>::max()) { in emitEncodedSignedInteger()
321 } else if (Value <= std::numeric_limits<uint16_t>::max()) { in emitEncodedUnsignedInteger()
326 } else if (Value <= std::numeric_limits<uint32_t>::max()) { in emitEncodedUnsignedInteger()
344 } else if (Value >= std::numeric_limits<int8_t>::min() && in writeEncodedSignedInteger()
345 Value <= std::numeric_limits<int8_t>::max()) { in writeEncodedSignedInteger()
[all …]
/freebsd/contrib/llvm-project/lld/MachO/
H A DOutputSegment.cpp81 .Case(segment_names::llvm, std::numeric_limits<int>::max() - 1) in segmentOrder()
84 .Case(segment_names::linkEdit, std::numeric_limits<int>::max()) in segmentOrder()
99 .Case(section_names::unwindInfo, std::numeric_limits<int>::max() - 1) in sectionOrder()
100 .Case(section_names::ehFrame, std::numeric_limits<int>::max()) in sectionOrder()
113 return std::numeric_limits<int>::max() - 3; in sectionOrder()
115 return std::numeric_limits<int>::max() - 2; in sectionOrder()
117 return std::numeric_limits<int>::max() - 1; in sectionOrder()
119 return std::numeric_limits<int>::max(); in sectionOrder()
140 .Case(section_names::codeSignature, std::numeric_limits<int>::max()) in sectionOrder()
148 return std::numeric_limits<int>::max(); in sectionOrder()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64MachineFunctionInfo.h40 int FrameIndex = std::numeric_limits<int>::max();
115 int StackHazardSlotIndex = std::numeric_limits<int>::max();
116 int StackHazardCSRSlotIndex = std::numeric_limits<int>::max();
201 int SwiftAsyncContextFrameIdx = std::numeric_limits<int>::max();
232 int64_t VGIdx = std::numeric_limits<int>::max();
233 int64_t StreamingVGIdx = std::numeric_limits<int>::max();
336 int64_t MinOffset = std::numeric_limits<int64_t>::max(); in getCalleeSavedStackSize()
337 int64_t MaxOffset = std::numeric_limits<int64_t>::min(); in getCalleeSavedStackSize()
348 if (SwiftAsyncContextFrameIdx != std::numeric_limits<int>::max()) { in getCalleeSavedStackSize()
355 if (StackHazardCSRSlotIndex != std::numeric_limits<int>::max()) { in getCalleeSavedStackSize()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DWinEHFuncInfo.h100 int UnwindHelpFrameIdx = std::numeric_limits<int>::max();
101 int PSPSymFrameIdx = std::numeric_limits<int>::max();
110 int EHRegNodeFrameIndex = std::numeric_limits<int>::max();
111 int EHRegNodeEndOffset = std::numeric_limits<int>::max();
112 int EHGuardFrameIndex = std::numeric_limits<int>::max();
113 int SEHSetFrameOffset = std::numeric_limits<int>::max();
H A DExecutionDomainFix.h77 static_cast<unsigned>(std::numeric_limits<unsigned>::digits) && in hasDomain()
85 static_cast<unsigned>(std::numeric_limits<unsigned>::digits) && in addDomain()
93 static_cast<unsigned>(std::numeric_limits<unsigned>::digits) && in setSingleDomain()
/freebsd/contrib/llvm-project/libcxx/include/__compare/
H A Dstrong_order.h56 if constexpr (numeric_limits<_Dp>::is_iec559 && sizeof(_Dp) == sizeof(int32_t)) { in __go()
59 __rx = (__rx < 0) ? (numeric_limits<int32_t>::min() - __rx - 1) : __rx; in __go()
60 __ry = (__ry < 0) ? (numeric_limits<int32_t>::min() - __ry - 1) : __ry; in __go()
62 } else if constexpr (numeric_limits<_Dp>::is_iec559 && sizeof(_Dp) == sizeof(int64_t)) { in __go()
65 __rx = (__rx < 0) ? (numeric_limits<int64_t>::min() - __rx - 1) : __rx; in __go()
66 __ry = (__ry < 0) ? (numeric_limits<int64_t>::min() - __ry - 1) : __ry; in __go()
73 if constexpr (numeric_limits<_Dp>::radix == 2) { in __go()
/freebsd/contrib/llvm-project/clang/lib/Headers/
H A D__clang_cuda_cmath.h220 typename __clang_cuda_enable_if<std::numeric_limits<__T>::is_integer, \
234 std::numeric_limits<__T1>::is_specialized && \
235 std::numeric_limits<__T2>::is_specialized, \
309 std::numeric_limits<__T1>::is_specialized &&
310 std::numeric_limits<__T2>::is_specialized &&
311 std::numeric_limits<__T3>::is_specialized,
318 __DEVICE__ typename __clang_cuda_enable_if<std::numeric_limits<__T>::is_integer,
325 __DEVICE__ typename __clang_cuda_enable_if<std::numeric_limits<__T>::is_integer,
333 std::numeric_limits<__T1>::is_specialized &&
334 std::numeric_limits<__T2>::is_specialized,
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A Dbit.h154 return std::numeric_limits<T>::digits;
160 T Shift = std::numeric_limits<T>::digits >> 1;
161 T Mask = std::numeric_limits<T>::max() >> Shift;
214 /// Returns std::numeric_limits<T>::digits on an input of 0.
225 return std::numeric_limits<T>::digits;
229 for (T Shift = std::numeric_limits<T>::digits >> 1; Shift; Shift >>= 1) {
280 /// Returns std::numeric_limits<T>::digits on an input of 0.
293 /// Returns std::numeric_limits<T>::digits on an input of all ones.
306 /// Returns std::numeric_limits<T>::digits on an input of all ones.
320 return std::numeric_limits<
[all...]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DScaledNumber.h54 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in getRounded()
81 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned");
84 if (Width == 64 || Digits <= std::numeric_limits<DigitsT>::max())
115 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in getProduct()
154 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in getQuotient()
162 return std::make_pair(std::numeric_limits<DigitsT>::max(), MaxScale); in getQuotient()
189 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in getLgImpl()
253 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in compare()
289 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in matchScales()
335 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in getSum()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSourceMgr.cpp92 assert(Sz <= std::numeric_limits<T>::max()); in GetOrCreateOffsetCache()
112 static_cast<size_t>(PtrDiff) <= std::numeric_limits<T>::max()); in getLineNumberSpecialized()
124 if (Sz <= std::numeric_limits<uint8_t>::max()) in getLineNumber()
126 else if (Sz <= std::numeric_limits<uint16_t>::max()) in getLineNumber()
128 else if (Sz <= std::numeric_limits<uint32_t>::max()) in getLineNumber()
160 if (Sz <= std::numeric_limits<uint8_t>::max()) in getPointerForLineNumber()
162 else if (Sz <= std::numeric_limits<uint16_t>::max()) in getPointerForLineNumber()
164 else if (Sz <= std::numeric_limits<uint32_t>::max()) in getPointerForLineNumber()
179 if (Sz <= std::numeric_limits<uint8_t>::max()) in ~SrcBuffer()
181 else if (Sz <= std::numeric_limits<uint16_t>::max()) in ~SrcBuffer()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__format/
H A Dformatter_integral.h134 if (__value < numeric_limits<_CharT>::min() || __value > numeric_limits<_CharT>::max())
138 if (__value > static_cast<make_unsigned_t<_CharT>>(numeric_limits<_CharT>::max()))
142 if (__value < 0 || static_cast<make_unsigned_t<_Tp>>(__value) > numeric_limits<_CharT>::max())
177 return numeric_limits<_Tp>::digits // The number of binary digits. in __buffer_size()
186 return numeric_limits<_Tp>::digits // The number of binary digits. in __buffer_size()
197 return numeric_limits<_Tp>::digits10 // The floored value. in __buffer_size()
206 return numeric_limits<_Tp>::digits // The number of binary digits. in __buffer_size()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/
H A DInstrumentation.h169 return MaxCount < std::numeric_limits<uint32_t>::max() in calculateCountScale()
171 : MaxCount / std::numeric_limits<uint32_t>::max() + 1; in calculateCountScale()
180 assert(Scaled <= std::numeric_limits<uint32_t>::max() && "overflow 32-bits"); in scaleBranchCount()
/freebsd/contrib/llvm-project/libcxx/include/__condition_variable/
H A Dcondition_variable.h103 _Rep __result_max = numeric_limits<__ns_rep>::max(); in __safe_nanosecond_cast()
108 _Rep __result_min = numeric_limits<__ns_rep>::min(); in __safe_nanosecond_cast()
125 __ns_rep __result_max = numeric_limits<__ns_rep>::max(); in __safe_nanosecond_cast()
130 __ns_rep __result_min = numeric_limits<__ns_rep>::min(); in __safe_nanosecond_cast()
193 if (__now_count_ns > numeric_limits<__ns_rep>::max() - __d_ns_count) { in wait_for()
218 const __ts_sec __ts_sec_max = numeric_limits<__ts_sec>::max(); in __do_timed_wait()
/freebsd/contrib/googletest/googlemock/test/
H A Dgmock-matchers-arithmetic_test.cc151 float quiet_nan = std::numeric_limits<float>::quiet_NaN(); in TEST()
173 double quiet_nan = std::numeric_limits<double>::quiet_NaN(); in TEST()
195 long double quiet_nan = std::numeric_limits<long double>::quiet_NaN(); in TEST()
218 EXPECT_FALSE(mf.Matches(std::numeric_limits<float>::quiet_NaN())); in TEST()
223 EXPECT_FALSE(md.Matches(std::numeric_limits<double>::quiet_NaN())); in TEST()
228 EXPECT_FALSE(mld.Matches(std::numeric_limits<long double>::quiet_NaN())); in TEST()
279 EXPECT_TRUE(m.Matches(Tpl(std::numeric_limits<float>::quiet_NaN(), in TEST()
280 std::numeric_limits<float>::quiet_NaN()))); in TEST()
282 EXPECT_FALSE(m.Matches(Tpl(1.0f, std::numeric_limits<float>::quiet_NaN()))); in TEST()
283 EXPECT_FALSE(m.Matches(Tpl(std::numeric_limits<float>::quiet_NaN(), 1.0f))); in TEST()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__charconv/
H A Dtraits.h106 …__v > numeric_limits<uint64_t>::max(), "The optimizations for this algorithm fail when this isn't …
131 return __c > numeric_limits<unsigned char>::max();
139 return __c > numeric_limits<unsigned short>::max();
155 static constexpr int digits = numeric_limits<_Tp>::digits10 + 1;
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DGCNMinRegStrategy.cpp40 return NumPreds[SU->NodeNum] == std::numeric_limits<unsigned>::max(); in isScheduled()
45 NumPreds[SU->NodeNum] = std::numeric_limits<unsigned>::max(); in setIsScheduled()
50 assert(NumPreds[SU->NodeNum] != std::numeric_limits<unsigned>::max()); in getNumPreds()
56 assert(NumPreds[SU->NodeNum] != std::numeric_limits<unsigned>::max()); in decNumPreds()
113 T Max = std::numeric_limits<T>::min(); in findMax()
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerDictionary.h29 static_assert(kMaxSizeT <= std::numeric_limits<uint8_t>::max(), in Set()
60 return PositionHint != std::numeric_limits<size_t>::max(); in HasPositionHint()
80 size_t PositionHint = std::numeric_limits<size_t>::max();

12345678910>>...17