Searched refs:RangeSize (Results 1 – 5 of 5) sorted by relevance
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
D | fast_uniform_bits_test.cc | 118 TEST(FastUniformBitsTest, RangeSize) { in TEST() argument 119 EXPECT_EQ(2, (RangeSize<FakeUrbg<uint8_t, 0, 1>>())); in TEST() 120 EXPECT_EQ(3, (RangeSize<FakeUrbg<uint8_t, 0, 2>>())); in TEST() 121 EXPECT_EQ(4, (RangeSize<FakeUrbg<uint8_t, 0, 3>>())); in TEST() 123 EXPECT_EQ(4, (RangeSize<FakeUrbg<uint8_t, 2, 5>>())); in TEST() 124 EXPECT_EQ(5, (RangeSize<FakeUrbg<uint8_t, 2, 6>>())); in TEST() 125 EXPECT_EQ(9, (RangeSize<FakeUrbg<uint8_t, 2, 10>>())); in TEST() 127 0, (RangeSize< in TEST() 130 EXPECT_EQ(4, (RangeSize<FakeUrbg<uint16_t, 0, 3>>())); in TEST() 131 EXPECT_EQ(4, (RangeSize<FakeUrbg<uint16_t, 2, 5>>())); in TEST() [all …]
|
D | fast_uniform_bits.h | 40 constexpr typename URBG::result_type RangeSize() { in RangeSize() function 59 return RangeSize<URBG>() == 0 in NumBits() 61 : IntegerLog2(RangeSize<URBG>()); in NumBits() 127 using tag = absl::conditional_t<IsPowerOfTwoOrZero(RangeSize<URBG>()), in operator() 140 static_assert(IsPowerOfTwoOrZero(RangeSize<URBG>()), in Generate() 163 static_assert(!IsPowerOfTwoOrZero(RangeSize<URBG>()), in Generate() 186 static constexpr urbg_result_type kUrbgRange = RangeSize<URBG>(); // R in Generate()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
D | MCCodeView.cpp | 623 unsigned RangeSize = computeLabelDiff(Layout, Range.first, Range.second); in encodeDefRange() local 624 GapAndRangeSizes.push_back({GapSize, RangeSize}); in encodeDefRange() 633 unsigned RangeSize = GapAndRangeSizes[I].second; in encodeDefRange() local 637 if (RangeSize + GapAndRangeSize > MaxDefRange) in encodeDefRange() 639 RangeSize += GapAndRangeSize; in encodeDefRange() 649 uint16_t Chunk = std::min((uint32_t)MaxDefRange, RangeSize); in encodeDefRange() 680 RangeSize -= Chunk; in encodeDefRange() 681 } while (RangeSize > 0); in encodeDefRange() 688 unsigned GapSize, RangeSize; in encodeDefRange() local 690 std::tie(GapSize, RangeSize) = GapAndRangeSizes[I]; in encodeDefRange() [all …]
|
/third_party/json/tests/thirdparty/Fuzzer/ |
D | FuzzerRandom.h | 26 intptr_t RangeSize = To - From + 1; in operator() local 27 return operator()(RangeSize) + From; in operator()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 2372 APInt RangeSize = Div->isExact() ? APInt(C2->getBitWidth(), 1) : *C2; in foldICmpDivConstant() local 2391 HiOverflow = addWithOverflow(HiBound, LoBound, RangeSize, false); in foldICmpDivConstant() 2396 LoBound = -(RangeSize - 1); in foldICmpDivConstant() 2397 HiBound = RangeSize; in foldICmpDivConstant() 2402 HiOverflow = addWithOverflow(HiBound, Prod, RangeSize, true); in foldICmpDivConstant() 2408 APInt DivNeg = -RangeSize; in foldICmpDivConstant() 2414 RangeSize.negate(); in foldICmpDivConstant() 2417 LoBound = RangeSize + 1; in foldICmpDivConstant() 2418 HiBound = -RangeSize; in foldICmpDivConstant() 2428 LoOverflow = addWithOverflow(LoBound, HiBound, RangeSize, true) ? -1:0; in foldICmpDivConstant() [all …]
|