| /llvm-project-15.0.7/libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.ibits/ |
| H A D | result_type.pass.cpp | 23 template <class UIntType, UIntType Min, UIntType Max> 33 static_assert(Min < Max, "rand1 invalid parameters"); 38 static const result_type _Min = Min; 42 static TEST_CONSTEXPR result_type min() {return Min;} in min() 45 explicit rand1(result_type sd = Min) : x_(sd) in rand1() 47 if (x_ < Min) in rand1() 48 x_ = Min; in rand1() 59 x_ = Min; in operator ()()
|
| H A D | eval.pass.cpp | 21 template <class UIntType, UIntType Min, UIntType Max> 31 static_assert(Min < Max, "rand1 invalid parameters"); 36 static const result_type _Min = Min; 40 static TEST_CONSTEXPR result_type min() {return Min;} in min() 43 explicit rand1(result_type sd = Min) : x_(sd) in rand1() 55 x_ = Min; in operator ()()
|
| /llvm-project-15.0.7/libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.shuf/ |
| H A D | result_type.pass.cpp | 23 template <class UIntType, UIntType Min, UIntType Max> 33 static_assert(Min < Max, "rand1 invalid parameters"); 38 static const result_type _Min = Min; 42 static TEST_CONSTEXPR result_type min() {return Min;} in min() 45 explicit rand1(result_type sd = Min) : x_(sd) in rand1() 47 if (x_ < Min) in rand1() 48 x_ = Min; in rand1() 59 x_ = Min; in operator ()()
|
| H A D | eval.pass.cpp | 21 template <class UIntType, UIntType Min, UIntType Max> 31 static_assert(Min < Max, "rand1 invalid parameters"); 36 static const result_type _Min = Min; 40 static TEST_CONSTEXPR result_type min() {return Min;} in min() 43 explicit rand1(result_type sd = Min) : x_(sd) in rand1() 55 x_ = Min; in operator ()()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | CheckedArithmeticTest.cpp | 10 const int64_t Min = std::numeric_limits<int64_t>::min(); in TEST() local 12 EXPECT_EQ(checkedAdd<int64_t>(Min, -1), None); in TEST() 19 const int16_t Min = std::numeric_limits<int16_t>::min(); in TEST() local 21 EXPECT_EQ(checkedAdd<int16_t>(Min, -1), None); in TEST() 28 const int64_t Min = std::numeric_limits<int64_t>::min(); in TEST() local 31 EXPECT_EQ(checkedMul<int64_t>(Min, 2), None); in TEST() 37 const int64_t Min = std::numeric_limits<int64_t>::min(); in TEST() local 40 EXPECT_EQ(checkedMulAdd<int64_t>(1, -1, Min), None); in TEST() 46 const int16_t Min = std::numeric_limits<int16_t>::min(); in TEST() local 49 EXPECT_EQ(checkedMul<int16_t>(Min, 2), None); in TEST() [all …]
|
| H A D | InstructionCostTest.cpp | 82 auto Min = InstructionCost::getMin(); in TEST_F() local 88 EXPECT_EQ(Min + MinusOne, Min); in TEST_F() 89 EXPECT_EQ(Min - One, Min); in TEST_F() 92 EXPECT_EQ(Min * Two, Min); in TEST_F() 93 EXPECT_EQ(Max * MinusTwo, Min); in TEST_F() 94 EXPECT_EQ(Min * MinusTwo, Max); in TEST_F()
|
| /llvm-project-15.0.7/llvm/tools/llvm-xray/ |
| H A D | xray-graph.h | 44 double Min; member 168 return {A.Count + B.Count, A.Min + B.Min, A.Median + B.Median, 177 return {A.Count - B.Count, A.Min - B.Min, A.Median - B.Median, 187 A.Min / B, 199 A.Min * B, 216 return {A.Count * B.Count, A.Min * B.Min, A.Median * B.Median, 224 return {A.Count / B.Count, A.Min / B.Min, A.Median / B.Median,
|
| H A D | xray-color-helper.cpp | 87 int Min = 0; in convertToHSV() local 90 if (Scaled[i] < Scaled[Min]) in convertToHSV() 91 Min = i; in convertToHSV() 96 double C = Scaled[Max] - Scaled[Min]; in convertToHSV() 143 double Min = V - C; in convertToRGB() local 144 double RGB2[3] = {RGB1[0] + Min, RGB1[1] + Min, RGB1[2] + Min}; in convertToRGB()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/PBQP/ |
| H A D | ReductionRules.h | 50 PBQPNum Min = ECosts[0][j] + XCosts[0]; in applyR1() local 53 if (C < Min) in applyR1() 54 Min = C; in applyR1() 56 YCosts[j] += Min; in applyR1() 60 PBQPNum Min = ECosts[i][0] + XCosts[0]; in applyR1() local 63 if (C < Min) in applyR1() 64 Min = C; in applyR1() 66 YCosts[i] += Min; in applyR1() 115 if (C < Min) { in applyR2() 116 Min = C; in applyR2() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/ubsan/ |
| H A D | ubsan_diag.cpp | 259 MemoryLocation Min = subtractNoOverflow(Loc, MinBytesNearLoc); in PrintMemorySnippet() local 261 MemoryLocation OrigMin = Min; in PrintMemorySnippet() 263 Min = __sanitizer::Min(Ranges[I].getStart().getMemoryLocation(), Min); in PrintMemorySnippet() 269 if (Max - Min > BytesToShow) in PrintMemorySnippet() 270 Min = __sanitizer::Min(Max - BytesToShow, OrigMin); in PrintMemorySnippet() 271 Max = addNoOverflow(Min, BytesToShow); in PrintMemorySnippet() 273 if (!IsAccessibleMemoryRange(Min, Max - Min)) { in PrintMemorySnippet() 280 for (uptr P = Min; P != Max; ++P) { in PrintMemorySnippet() 288 Range *InRange = upperBound(Min, Ranges, NumRanges); in PrintMemorySnippet() 289 for (uptr P = Min; P != Max; ++P) { in PrintMemorySnippet() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/tests/unit/ |
| H A D | tsan_trace_test.cpp | 322 constexpr uptr Min = Trace::kMinParts; in TRACE_TEST() local 324 constexpr uptr kParts = 2 * Min; in TRACE_TEST() 330 CheckTraceState(Min, 0, 0, 1); in TRACE_TEST() 332 CheckTraceState(2 * Min, 0, Min, Min + 1); in TRACE_TEST() 335 CheckTraceState(Min, Min, 0, Min); in TRACE_TEST() 337 CheckTraceState(2 * Min, 2 * Min, Min, 2 * Min); in TRACE_TEST()
|
| /llvm-project-15.0.7/clang/include/clang/Frontend/ |
| H A D | VerifyDiagnosticConsumer.h | 196 bool MatchAnyLine, StringRef Text, unsigned Min, unsigned Max); 205 unsigned Min, Max; variable 223 unsigned Min, unsigned Max) in Directive() argument 225 Min(Min), Max(Max), MatchAnyLine(MatchAnyLine || MatchAnyFileAndLine), in Directive()
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVSubtarget.cpp | 185 unsigned Min = RVVVectorBitsMin; in getMinRVVVectorSizeInBits() local 187 Min = std::min(RVVVectorBitsMin, RVVVectorBitsMax); in getMinRVVVectorSizeInBits() 188 return PowerOf2Floor((Min < 64 || Min > 65536) ? 0 : Min); in getMinRVVVectorSizeInBits()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 85 APInt Min = getUnsignedMin(); in toKnownBits() local 745 Min = Min.zext(ResultBitWidth); in castOp() 1143 APInt Min = getSignedMin(); in smul_fast() local 1149 auto Muls = {Min.smul_ov(OtherMin, O1), Min.smul_ov(OtherMax, O2), in smul_fast() 1447 APInt Min = getUnsignedMin(); in shl() local 1470 Min <<= Other.getUnsignedMin(); in shl() 1592 APInt Min = getSignedMin(); in smul_sat() local 1597 auto L = {Min.smul_sat(OtherMin), Min.smul_sat(OtherMax), in smul_sat() 1618 APInt NewL = Min.sshl_sat(Min.isNonNegative() ? ShAmtMin : ShAmtMax); in sshl_sat() 1682 if (Min.ugt(~OtherMin)) in unsignedAddMayOverflow() [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-pdbutil/ |
| H A D | BytesOutputStyle.cpp | 92 uint32_t Max = R.Max.value_or(R.Min); in dump() 94 if (Max < R.Min) in dump() 103 dumpBlockRanges(R.Min, Max); in dump() 111 if (Max < R.Min) in dump() 119 dumpByteRanges(R.Min, Max); in dump() 207 void BytesOutputStyle::dumpBlockRanges(uint32_t Min, uint32_t Max) { in dumpBlockRanges() argument 211 for (uint32_t I = Min; I <= Max; ++I) { in dumpBlockRanges() 430 void BytesOutputStyle::dumpByteRanges(uint32_t Min, uint32_t Max) { in dumpByteRanges() argument 437 consumeError(Reader.skip(Min)); in dumpByteRanges() 438 uint32_t Size = Max - Min + 1; in dumpByteRanges() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | APFixedPoint.cpp | 264 APSInt Min = APFixedPoint::getMin(CommonFXSema).getValue() in mul() local 267 if (Result < Min) in mul() 268 Result = Min; in mul() 272 Overflowed = Result < Min || Result > Max; in mul() 319 APSInt Min = APFixedPoint::getMin(CommonFXSema).getValue() in div() local 322 if (Result < Min) in div() 323 Result = Min; in div() 327 Overflowed = Result < Min || Result > Max; in div() 357 if (Result < Min) in shl() 358 Result = Min; in shl() [all …]
|
| /llvm-project-15.0.7/libc/benchmarks/automemcpy/lib/ |
| H A D | ResultAnalyzer.cpp | 138 double Min = std::numeric_limits<double>::max(); in fillScores() member 141 if (Value < Min) in fillScores() 142 Min = Value; in fillScores() 146 double normalize(double Value) const { return (Value - Min) / (Max - Min); } in fillScores()
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | DarwinSDKInfo.cpp | 39 VersionTuple Min = VersionTuple(std::numeric_limits<unsigned>::max()); in parseJSON() local 41 VersionTuple MinValue = Min; in parseJSON() 50 if (KeyVersion < Min) in parseJSON() 51 Min = KeyVersion; in parseJSON() 61 Min, Max, MinValue, MaximumDeploymentTarget, std::move(Mapping)); in parseJSON()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | PointerSumType.h | 232 struct Min : std::integral_constant< struct 233 uintptr_t, (V < Min<Vs...>::value ? V : Min<Vs...>::value)> { 236 struct Min<V> : std::integral_constant<uintptr_t, V> {}; 237 enum { NumTagBits = Min<MemberTs::TraitsT::NumLowBitsAvailable...>::value }; 241 static_cast<TagT>(Min<MemberTs::Tag...>::value);
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalizeMutations.cpp | 78 unsigned Min) { in widenScalarOrEltToNextPow2() argument 82 std::max(1u << Log2_32_Ceil(Ty.getScalarSizeInBits()), Min); in widenScalarOrEltToNextPow2() 98 unsigned Min) { in moreElementsToNextPow2() argument 102 std::max(1u << Log2_32_Ceil(VecTy.getNumElements()), Min); in moreElementsToNextPow2()
|
| /llvm-project-15.0.7/libc/AOR_v20.02/math/ |
| H A D | v_logf.c | 27 #define Min v_u32 (0x00800000) macro 48 cmp = v_cond_u32 (u - Min >= Max - Min); in V_NAME()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/IPO/ |
| H A D | LowerTypeTests.h | 63 uint64_t Min = std::numeric_limits<uint64_t>::max(); 69 if (Min > Offset) in addOffset() 70 Min = Offset; in addOffset()
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | size_class_map.h | 34 return Max(1U, Min(Config::MaxNumCachedHint, N)); in getMaxCachedHint() 148 u8 Min = 255, Max = 0; in LSBTable() local 153 if (Bit < Min) in LSBTable() 154 Min = Bit; in LSBTable() 162 if (Max - Min > 3 || ClassesSize > 32) in LSBTable() 166 CompressedMin = Min; in LSBTable() 168 CompressedValue |= u64(Tab[I] - Min) << (I * 2); in LSBTable()
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | Integral.h | 65 static const auto Min = std::numeric_limits<T>::min(); 152 return Integral(Min); 183 return CheckRange<T, Min, Max>(Value); 246 template <typename T, T Min, T Max> 249 return Min <= V && V <= Max; 252 template <typename T, T Min, T Max>
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonConstExtenders.cpp | 75 Min = adjustUp(std::max(Min, A.Min), Align, Offset); in intersect() 79 Min = 0; in intersect() 83 if (Min > Max) in intersect() 88 Min += S; in shift() 97 Min = (INT_MIN-D < Min) ? Min+D : INT_MIN; in extendBy() 103 return Min > Max; in empty() 109 return Min == R.Min && Max == R.Max && Align == R.Align; in operator ==() 115 if (Min != R.Min) in operator <() 116 return Min < R.Min; in operator <() 437 if (OR.Min > OR.Max) in operator <<() [all …]
|