Home
last modified time | relevance | path

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

12345678910>>...17

/openbsd-src/gnu/lib/libstdc++/libstdc++/src/
H A Dlimits.cc65 const bool numeric_limits<bool>::is_specialized;
66 const int numeric_limits<bool>::digits;
67 const int numeric_limits<bool>::digits10;
68 const bool numeric_limits<bool>::is_signed;
69 const bool numeric_limits<bool>::is_integer;
70 const bool numeric_limits<bool>::is_exact;
71 const int numeric_limits<bool>::radix;
72 const int numeric_limits<bool>::min_exponent;
73 const int numeric_limits<bool>::min_exponent10;
74 const int numeric_limits<bool>::max_exponent;
[all …]
/openbsd-src/gnu/gcc/libstdc++-v3/src/
H A Dlimits.cc65 const bool numeric_limits<bool>::is_specialized;
66 const int numeric_limits<bool>::digits;
67 const int numeric_limits<bool>::digits10;
68 const bool numeric_limits<bool>::is_signed;
69 const bool numeric_limits<bool>::is_integer;
70 const bool numeric_limits<bool>::is_exact;
71 const int numeric_limits<bool>::radix;
72 const int numeric_limits<bool>::min_exponent;
73 const int numeric_limits<bool>::min_exponent10;
74 const int numeric_limits<bool>::max_exponent;
[all …]
H A Dcompatibility.cc99 if (__n == numeric_limits<streamsize>::max() in _GLIBCXX_BEGIN_NAMESPACE()
102 _M_gcount = numeric_limits<streamsize>::min(); in _GLIBCXX_BEGIN_NAMESPACE()
110 _M_gcount = numeric_limits<streamsize>::max(); in _GLIBCXX_BEGIN_NAMESPACE()
164 if (__n == numeric_limits<streamsize>::max() in ignore()
167 _M_gcount = numeric_limits<streamsize>::min(); in ignore()
175 _M_gcount = numeric_limits<streamsize>::max(); in ignore()
/openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/18_support/
H A Dnumeric_limits.cc66 T limits_min = std::numeric_limits<T>::min(); in test_extrema()
67 T limits_max = std::numeric_limits<T>::max(); in test_extrema()
78 T epsilon = std::numeric_limits<T>::epsilon(); in test_epsilon()
93 VERIFY( std::numeric_limits<char>::is_signed == char_is_signed ); in test_sign()
94 VERIFY( std::numeric_limits<signed char>::is_signed == true ); in test_sign()
95 VERIFY( std::numeric_limits<unsigned char>::is_signed == false ); in test_sign()
96 VERIFY( std::numeric_limits<short>::is_signed == true ); in test_sign()
97 VERIFY( std::numeric_limits<unsigned short>::is_signed == false ); in test_sign()
98 VERIFY( std::numeric_limits<int>::is_signed == true ); in test_sign()
99 VERIFY( std::numeric_limits<unsigned>::is_signed == false ); in test_sign()
[all …]
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/libcxx/include/__bit/
H A Dcountl.h60 return numeric_limits<_Tp>::digits; in __countl_zero()
64 - (numeric_limits<unsigned int>::digits - numeric_limits<_Tp>::digits); in __countl_zero()
67 - (numeric_limits<unsigned long>::digits - numeric_limits<_Tp>::digits); in __countl_zero()
70 - (numeric_limits<unsigned long long>::digits - numeric_limits<_Tp>::digits); in __countl_zero()
75 const unsigned int __ulldigits = numeric_limits<unsigned long long>::digits; in __countl_zero()
95 …return __t != numeric_limits<_Tp>::max() ? std::countl_zero(static_cast<_Tp>(~__t)) : numeric_limi… in countl_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(__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()
H A Dcountr.h40 return numeric_limits<_Tp>::digits; in countr_zero()
50 const unsigned int __ulldigits = numeric_limits<unsigned long long>::digits; in countr_zero()
61 …return __t != numeric_limits<_Tp>::max() ? std::countr_zero(static_cast<_Tp>(~__t)) : numeric_limi… in countr_one()
/openbsd-src/gnu/llvm/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)>
33 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 << _B… in __max_representable_int_for_float()
46 using _Lim = numeric_limits<_IntT>; in __clamp_to_integral()
H A Duniform_int_distribution.h61 static _LIBCPP_CONSTEXPR const size_t _WDt = numeric_limits<_Working_result_type>::digits;
62 static _LIBCPP_CONSTEXPR const size_t _EDt = numeric_limits<_Engine_result_type>::digits;
123 const size_t _WRt = numeric_limits<result_type>::digits; in __eval()
170 result_type __b = numeric_limits<result_type>::max())
192 result_type __a, result_type __b = numeric_limits<result_type>::max())
197 result_type __b = numeric_limits<result_type>::max())
240 const size_t _Dt = numeric_limits<_UIntType>::digits; in operator()
245 if ((_Rp & (numeric_limits<_UIntType>::max() >> (_Dt - __w))) != 0) in operator()
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/CodeView/
H A DCodeViewRecordIO.cpp288 } else if (Value >= std::numeric_limits<int8_t>::min() && in emitEncodedSignedInteger()
289 Value <= std::numeric_limits<int8_t>::max()) { in emitEncodedSignedInteger()
294 } else if (Value >= std::numeric_limits<int16_t>::min() && in emitEncodedSignedInteger()
295 Value <= std::numeric_limits<int16_t>::max()) { in emitEncodedSignedInteger()
300 } else if (Value >= std::numeric_limits<int32_t>::min() && in emitEncodedSignedInteger()
301 Value <= std::numeric_limits<int32_t>::max()) { in emitEncodedSignedInteger()
320 } else if (Value <= std::numeric_limits<uint16_t>::max()) { in emitEncodedUnsignedInteger()
325 } else if (Value <= std::numeric_limits<uint32_t>::max()) { in emitEncodedUnsignedInteger()
343 } else if (Value >= std::numeric_limits<int8_t>::min() && in writeEncodedSignedInteger()
344 Value <= std::numeric_limits<int8_t>::max()) { in writeEncodedSignedInteger()
[all …]
/openbsd-src/gnu/gcc/libstdc++-v3/include/std/
H A Dstd_limits.h288 struct numeric_limits : public __numeric_limits_base struct
318 struct numeric_limits<bool>
372 struct numeric_limits<signed char>
423 struct numeric_limits<unsigned char>
474 struct numeric_limits<char>
480 numeric_limits<signed char>::min() :
481 numeric_limits<unsigned char>::min(); }
484 numeric_limits<signed char>::max() :
485 numeric_limits<unsigned char>::max(); }
529 struct numeric_limits<wchar_t>
[all …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DWinEHFuncInfo.h99 int UnwindHelpFrameIdx = std::numeric_limits<int>::max();
100 int PSPSymFrameIdx = std::numeric_limits<int>::max();
107 int EHRegNodeFrameIndex = std::numeric_limits<int>::max();
108 int EHRegNodeEndOffset = std::numeric_limits<int>::max();
109 int EHGuardFrameIndex = std::numeric_limits<int>::max();
110 int SEHSetFrameOffset = std::numeric_limits<int>::max();
/openbsd-src/gnu/lib/libstdc++/libstdc++/include/std/
H A Dstd_limits.h203 struct numeric_limits : public __numeric_limits_base struct
218 struct numeric_limits<bool> argument
271 struct numeric_limits<char>
321 struct numeric_limits<signed char>
371 struct numeric_limits<unsigned char>
421 struct numeric_limits<wchar_t>
471 struct numeric_limits<short>
521 struct numeric_limits<unsigned short>
571 struct numeric_limits<int>
621 struct numeric_limits<unsigned int>
[all …]
/openbsd-src/gnu/llvm/compiler-rt/include/fuzzer/
H A DFuzzedDataProvider.h195 return ConsumeIntegralInRange(std::numeric_limits<T>::min(), in ConsumeIntegral()
196 std::numeric_limits<T>::max()); in ConsumeIntegral()
230 if (range != std::numeric_limits<decltype(range)>::max()) in ConsumeIntegralInRange()
240 return ConsumeFloatingPointInRange<T>(std::numeric_limits<T>::lowest(), in ConsumeFloatingPoint()
241 std::numeric_limits<T>::max()); in ConsumeFloatingPoint()
255 if (max > zero && min < zero && max > min + std::numeric_limits<T>::max()) { in ConsumeFloatingPointInRange()
283 result /= static_cast<T>(std::numeric_limits<IntegralType>::max()); in ConsumeProbability()
380 static_assert(!std::numeric_limits<TU>::is_signed, in ConvertUnsignedToSigned()
384 if (std::numeric_limits<TS>::is_modulo) in ConvertUnsignedToSigned()
389 if (value <= std::numeric_limits<TS>::max()) { in ConvertUnsignedToSigned()
[all …]
/openbsd-src/gnu/llvm/libcxx/include/__compare/
H A Dstrong_order.h53 if constexpr (numeric_limits<_Dp>::is_iec559 && sizeof(_Dp) == sizeof(int32_t)) { in __go()
56 __rx = (__rx < 0) ? (numeric_limits<int32_t>::min() - __rx - 1) : __rx; in __go()
57 __ry = (__ry < 0) ? (numeric_limits<int32_t>::min() - __ry - 1) : __ry; in __go()
59 } else if constexpr (numeric_limits<_Dp>::is_iec559 && sizeof(_Dp) == sizeof(int64_t)) { in __go()
62 __rx = (__rx < 0) ? (numeric_limits<int64_t>::min() - __rx - 1) : __rx; in __go()
63 __ry = (__ry < 0) ? (numeric_limits<int64_t>::min() - __ry - 1) : __ry; in __go()
70 if constexpr (numeric_limits<_Dp>::radix == 2) { in __go()
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/libcxx/include/__format/
H A Dformatter_integral.h125 if (__value < numeric_limits<_CharT>::min() || __value > numeric_limits<_CharT>::max())
129 if (__value > static_cast<make_unsigned_t<_CharT>>(numeric_limits<_CharT>::max()))
133 if (__value < 0 || static_cast<make_unsigned_t<_Tp>>(__value) > numeric_limits<_CharT>::max())
166 return numeric_limits<_Tp>::digits // The number of binary digits. in __buffer_size()
175 return numeric_limits<_Tp>::digits // The number of binary digits. in __buffer_size()
186 return numeric_limits<_Tp>::digits10 // The floored value. in __buffer_size()
195 return numeric_limits<_Tp>::digits // The number of binary digits. in __buffer_size()
/openbsd-src/gnu/llvm/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()
252 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in compare()
288 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in matchScales()
334 static_assert(!std::numeric_limits<DigitsT>::is_signed, "expected unsigned"); in getSum()
[all …]
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/27_io/
H A Dios_base_storage.cc54 int max = std::numeric_limits<int>::max() - 1; in test02()
88 v = ios.pword(std::numeric_limits<int>::max()); in test02()
126 l = ios.iword(std::numeric_limits<int>::max()); in test02()
/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A Dbit.h118 return std::numeric_limits<T>::digits; in count()
124 T Shift = std::numeric_limits<T>::digits >> 1; in count()
125 T Mask = std::numeric_limits<T>::max() >> Shift; in count()
189 return std::numeric_limits<T>::digits;
193 for (T Shift = std::numeric_limits<T>::digits >> 1; Shift; Shift >>= 1) {
284 return std::numeric_limits<T>::digits - llvm::countl_zero(Value);
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/
H A DInstrumentation.h158 return MaxCount < std::numeric_limits<uint32_t>::max() in calculateCountScale()
160 : MaxCount / std::numeric_limits<uint32_t>::max() + 1; in calculateCountScale()
169 assert(Scaled <= std::numeric_limits<uint32_t>::max() && "overflow 32-bits"); in scaleBranchCount()
/openbsd-src/gnu/llvm/libcxx/include/__numeric/
H A Dmidpoint.h44 constexpr _Up __bitshift = numeric_limits<_Up>::digits - 1; in midpoint()
80 constexpr _Fp __lo = numeric_limits<_Fp>::min()*2; in midpoint()
81 constexpr _Fp __hi = numeric_limits<_Fp>::max()/2; in midpoint()

12345678910>>...17