Home
last modified time | relevance | path

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

12345678910>>...13

/freebsd-13.1/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>;
88 template<> class numeric_limits<cv short>;
89 template<> class numeric_limits<cv int>;
90 template<> class numeric_limits<cv long>;
97 template<> class numeric_limits<cv float>;
537 : private numeric_limits<_Tp>
539 typedef numeric_limits<_Tp> __base;
630 : private numeric_limits<_Tp>
[all …]
H A Dbit85 const unsigned int __dig = numeric_limits<_Tp>::digits;
108 return numeric_limits<_Tp>::digits;
135 return numeric_limits<_Tp>::digits;
139 - (numeric_limits<unsigned int>::digits - numeric_limits<_Tp>::digits);
142 - (numeric_limits<unsigned long>::digits - numeric_limits<_Tp>::digits);
145 - (numeric_limits<unsigned long long>::digits - numeric_limits<_Tp>::digits);
166 return __t != numeric_limits<_Tp>::max()
168 : numeric_limits<_Tp>::digits;
176 return __t != numeric_limits<_Tp>::max()
178 : numeric_limits<_Tp>::digits;
[all …]
/freebsd-13.1/contrib/llvm-project/lld/MachO/
H A DOutputSegment.cpp75 .Case(segment_names::llvm, std::numeric_limits<int>::max() - 1) in segmentOrder()
78 .Case(segment_names::linkEdit, std::numeric_limits<int>::max()) in segmentOrder()
91 .Case(section_names::unwindInfo, std::numeric_limits<int>::max() - 1) in sectionOrder()
92 .Case(section_names::ehFrame, std::numeric_limits<int>::max()) in sectionOrder()
105 return std::numeric_limits<int>::max() - 3; in sectionOrder()
107 return std::numeric_limits<int>::max() - 2; in sectionOrder()
109 return std::numeric_limits<int>::max() - 1; in sectionOrder()
111 return std::numeric_limits<int>::max(); in sectionOrder()
131 .Case(section_names::codeSignature, std::numeric_limits<int>::max()) in sectionOrder()
139 return std::numeric_limits<int>::max(); in sectionOrder()
/freebsd-13.1/contrib/llvm-project/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();
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-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DMathExtras.h93 return std::numeric_limits<T>::digits; in count()
99 T Shift = std::numeric_limits<T>::digits >> 1; in count()
100 T Mask = std::numeric_limits<T>::max() >> Shift; in count()
157 static_assert(std::numeric_limits<T>::is_integer &&
167 return std::numeric_limits<T>::digits;
226 static_assert(std::numeric_limits<T>::is_integer &&
241 return std::numeric_limits<T>::max();
282 return std::numeric_limits<T>::max();
287 (std::numeric_limits<T>::digits - 1);
810 return std::numeric_limits<T>::max();
[all …]
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()
392 return std::make_pair(std::numeric_limits<DigitsT>::max(), RLgFloor); in getDifference()
494 static_assert(!std::numeric_limits<DigitsT>::is_signed,
500 typedef std::numeric_limits<DigitsType> DigitsLimits;
[all …]
/freebsd-13.1/contrib/llvm-project/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 …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DCodeViewRecordIO.cpp282 if (Value >= std::numeric_limits<int8_t>::min()) { in emitEncodedSignedInteger()
287 } else if (Value >= std::numeric_limits<int16_t>::min()) { in emitEncodedSignedInteger()
292 } else if (Value >= std::numeric_limits<int32_t>::min()) { in emitEncodedSignedInteger()
311 } else if (Value <= std::numeric_limits<uint16_t>::max()) { in emitEncodedUnsignedInteger()
316 } else if (Value <= std::numeric_limits<uint32_t>::max()) { in emitEncodedUnsignedInteger()
331 if (Value >= std::numeric_limits<int8_t>::min()) { in writeEncodedSignedInteger()
336 } else if (Value >= std::numeric_limits<int16_t>::min()) { in writeEncodedSignedInteger()
341 } else if (Value >= std::numeric_limits<int32_t>::min()) { in writeEncodedSignedInteger()
359 } else if (Value <= std::numeric_limits<uint16_t>::max()) { in writeEncodedUnsignedInteger()
364 } else if (Value <= std::numeric_limits<uint32_t>::max()) { in writeEncodedUnsignedInteger()
/freebsd-13.1/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-13.1/contrib/llvm-project/libcxx/include/__random/
H A Duniform_int_distribution.h91 static _LIBCPP_CONSTEXPR const size_t _WDt = numeric_limits<_Working_result_type>::digits;
92 static _LIBCPP_CONSTEXPR const size_t _EDt = numeric_limits<_Engine_result_type>::digits;
153 const size_t _WRt = numeric_limits<result_type>::digits;
199 result_type __b = numeric_limits<result_type>::max())
219 result_type __a, result_type __b = numeric_limits<result_type>::max())
224 result_type __b = numeric_limits<result_type>::max())
264 const size_t _Dt = numeric_limits<_UIntType>::digits;
269 if ((_Rp & (numeric_limits<_UIntType>::max() >> (_Dt - __w))) != 0)
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DSourceMgr.cpp80 assert(Sz <= std::numeric_limits<T>::max()); in GetOrCreateOffsetCache()
100 static_cast<size_t>(PtrDiff) <= std::numeric_limits<T>::max()); in getLineNumberSpecialized()
112 if (Sz <= std::numeric_limits<uint8_t>::max()) in getLineNumber()
114 else if (Sz <= std::numeric_limits<uint16_t>::max()) in getLineNumber()
116 else if (Sz <= std::numeric_limits<uint32_t>::max()) in getLineNumber()
148 if (Sz <= std::numeric_limits<uint8_t>::max()) in getPointerForLineNumber()
150 else if (Sz <= std::numeric_limits<uint16_t>::max()) in getPointerForLineNumber()
152 else if (Sz <= std::numeric_limits<uint32_t>::max()) in getPointerForLineNumber()
167 if (Sz <= std::numeric_limits<uint8_t>::max()) in ~SrcBuffer()
169 else if (Sz <= std::numeric_limits<uint16_t>::max()) in ~SrcBuffer()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/
H A DInstrumentation.h181 return MaxCount < std::numeric_limits<uint32_t>::max() in calculateCountScale()
183 : MaxCount / std::numeric_limits<uint32_t>::max() + 1; in calculateCountScale()
192 assert(Scaled <= std::numeric_limits<uint32_t>::max() && "overflow 32-bits"); in scaleBranchCount()
/freebsd-13.1/contrib/llvm-project/libcxx/src/
H A Drandom.cpp188 if (ent > std::numeric_limits<result_type>::digits) in entropy()
189 return std::numeric_limits<result_type>::digits; in entropy()
193 return std::numeric_limits<result_type>::digits; in entropy()
H A Dstring.cpp97 if (r < numeric_limits<int>::min() || numeric_limits<int>::max() < r) in as_integer()
142 if (r < numeric_limits<int>::min() || numeric_limits<int>::max() < r) in as_integer()
431 constexpr size_t bufsize = numeric_limits<V>::digits10 + 2; // +1 for minus, +1 for digits10 in i_to_string()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerDictionary.h29 static_assert(kMaxSizeT <= std::numeric_limits<uint8_t>::max(), in Set()
58 bool HasPositionHint() const { return PositionHint != std::numeric_limits<size_t>::max(); } in HasPositionHint()
77 size_t PositionHint = std::numeric_limits<size_t>::max();
/freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/IR/
H A DOptBisect.cpp25 cl::init(std::numeric_limits<int>::max()),
30 BisectEnabled = OptBisectLimit != std::numeric_limits<int>::max(); in OptBisect()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
H A Dx86_64.h251 return Value <= std::numeric_limits<uint32_t>::max(); in isInRangeForImmU32()
256 return (Value >= std::numeric_limits<int32_t>::min() && in isInRangeForImmS32()
257 Value <= std::numeric_limits<int32_t>::max()); in isInRangeForImmS32()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSequence.h31 const intmax_t BotT = intmax_t(std::numeric_limits<T>::min()); in canTypeFitValue()
32 const intmax_t BotU = intmax_t(std::numeric_limits<U>::min()); in canTypeFitValue()
33 const uintmax_t TopT = uintmax_t(std::numeric_limits<T>::max()); in canTypeFitValue()
34 const uintmax_t TopU = uintmax_t(std::numeric_limits<U>::max()); in canTypeFitValue()
H A DSparseSet.h124 static_assert(std::numeric_limits<SparseT>::is_integer &&
125 !std::numeric_limits<SparseT>::is_signed,
206 const unsigned Stride = std::numeric_limits<SparseT>::max() + 1u;
/freebsd-13.1/contrib/llvm-project/lldb/source/Utility/
H A DReproducerInstrumentation.cpp65 if (size == std::numeric_limits<size_t>::max()) in Deserialize()
198 m_sequence(std::numeric_limits<unsigned>::max()) { in Recorder()
210 m_sequence(std::numeric_limits<unsigned>::max()) { in Recorder()
226 assert(m_sequence != std::numeric_limits<unsigned>::max()); in GetSequenceNumber()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64MachineFunctionInfo.h174 int SwiftAsyncContextFrameIdx = std::numeric_limits<int>::max();
249 int64_t MinOffset = std::numeric_limits<int64_t>::max(); in getCalleeSavedStackSize()
250 int64_t MaxOffset = std::numeric_limits<int64_t>::min(); in getCalleeSavedStackSize()
261 if (SwiftAsyncContextFrameIdx != std::numeric_limits<int>::max()) { in getCalleeSavedStackSize()
H A DAArch64PBQPRegAlloc.cpp197 costs[i + 1][j + 1] = std::numeric_limits<PBQP::PBQPNum>::infinity(); in addIntraChainConstraint()
218 PBQP::PBQPNum sameParityMax = std::numeric_limits<PBQP::PBQPNum>::min(); in addIntraChainConstraint()
223 std::numeric_limits<PBQP::PBQPNum>::infinity() && in addIntraChainConstraint()
295 PBQP::PBQPNum sameParityMax = std::numeric_limits<PBQP::PBQPNum>::min(); in addInterChainConstraint()
300 std::numeric_limits<PBQP::PBQPNum>::infinity() && in addInterChainConstraint()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DSymbolStringPool.h140 std::numeric_limits<uintptr_t>::max()
144 (std::numeric_limits<uintptr_t>::max() - 1)
148 (std::numeric_limits<uintptr_t>::max() - 3)

12345678910>>...13