/external/angle/third_party/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()
|
/external/openscreen/third_party/abseil/src/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()
|
/external/rust/crates/grpcio-sys/grpc/third_party/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()
|
/external/abseil-cpp/absl/random/internal/ |
D | fast_uniform_bits_test.cc | 109 TEST(FastUniformBitsTest, RangeSize) { in TEST() argument 110 EXPECT_EQ((RangeSize<FakeUrbg<uint8_t, 0, 3>>()), 4); in TEST() 111 EXPECT_EQ((RangeSize<FakeUrbg<uint8_t, 2, 2>>()), 1); in TEST() 112 EXPECT_EQ((RangeSize<FakeUrbg<uint8_t, 2, 5>>()), 4); in TEST() 113 EXPECT_EQ((RangeSize<FakeUrbg<uint8_t, 2, 6>>()), 5); in TEST() 114 EXPECT_EQ((RangeSize<FakeUrbg<uint8_t, 2, 10>>()), 9); in TEST() 116 (RangeSize<FakeUrbg<uint8_t, 0, std::numeric_limits<uint8_t>::max()>>()), in TEST() 119 EXPECT_EQ((RangeSize<FakeUrbg<uint16_t, 0, 3>>()), 4); in TEST() 120 EXPECT_EQ((RangeSize<FakeUrbg<uint16_t, 2, 2>>()), 1); in TEST() 121 EXPECT_EQ((RangeSize<FakeUrbg<uint16_t, 2, 5>>()), 4); in TEST() [all …]
|
D | fast_uniform_bits.h | 39 constexpr typename URBG::result_type RangeSize() { in RangeSize() function 56 return LargestPowerOfTwoLessThanOrEqualTo(RangeSize<URBG>()); in PowerOfTwoSubRangeSize() 69 return RangeSize<URBG>() == 0 in NumBits() 121 typename std::conditional<IsPowerOfTwoOrZero(RangeSize<URBG>()), in PowerOfTwoVariate() 167 RangeSize<URBG>() == 0 in operator()
|
/external/webrtc/third_party/abseil-cpp/absl/random/internal/ |
D | fast_uniform_bits_test.cc | 109 TEST(FastUniformBitsTest, RangeSize) { in TEST() argument 110 EXPECT_EQ((RangeSize<FakeUrbg<uint8_t, 0, 3>>()), 4); in TEST() 111 EXPECT_EQ((RangeSize<FakeUrbg<uint8_t, 2, 2>>()), 1); in TEST() 112 EXPECT_EQ((RangeSize<FakeUrbg<uint8_t, 2, 5>>()), 4); in TEST() 113 EXPECT_EQ((RangeSize<FakeUrbg<uint8_t, 2, 6>>()), 5); in TEST() 114 EXPECT_EQ((RangeSize<FakeUrbg<uint8_t, 2, 10>>()), 9); in TEST() 116 (RangeSize<FakeUrbg<uint8_t, 0, std::numeric_limits<uint8_t>::max()>>()), in TEST() 119 EXPECT_EQ((RangeSize<FakeUrbg<uint16_t, 0, 3>>()), 4); in TEST() 120 EXPECT_EQ((RangeSize<FakeUrbg<uint16_t, 2, 2>>()), 1); in TEST() 121 EXPECT_EQ((RangeSize<FakeUrbg<uint16_t, 2, 5>>()), 4); in TEST() [all …]
|
D | fast_uniform_bits.h | 39 constexpr typename URBG::result_type RangeSize() { in RangeSize() function 56 return LargestPowerOfTwoLessThanOrEqualTo(RangeSize<URBG>()); in PowerOfTwoSubRangeSize() 69 return RangeSize<URBG>() == 0 in NumBits() 121 typename std::conditional<IsPowerOfTwoOrZero(RangeSize<URBG>()), in PowerOfTwoVariate() 167 RangeSize<URBG>() == 0 in operator()
|
/external/libtextclassifier/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()
|
/external/llvm-project/llvm/lib/MC/ |
D | MCCodeView.cpp | 620 unsigned RangeSize = computeLabelDiff(Layout, Range.first, Range.second); in encodeDefRange() local 621 GapAndRangeSizes.push_back({GapSize, RangeSize}); in encodeDefRange() 630 unsigned RangeSize = GapAndRangeSizes[I].second; in encodeDefRange() local 634 if (RangeSize + GapAndRangeSize > MaxDefRange) in encodeDefRange() 636 RangeSize += GapAndRangeSize; in encodeDefRange() 646 uint16_t Chunk = std::min((uint32_t)MaxDefRange, RangeSize); in encodeDefRange() 677 RangeSize -= Chunk; in encodeDefRange() 678 } while (RangeSize > 0); in encodeDefRange() 685 unsigned GapSize, RangeSize; in encodeDefRange() local 687 std::tie(GapSize, RangeSize) = GapAndRangeSizes[I]; in encodeDefRange() [all …]
|
/external/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 …]
|
/external/llvm-project/compiler-rt/lib/fuzzer/ |
D | FuzzerRandom.h | 31 intptr_t RangeSize = To - From + 1; in operator() local 32 return operator()(RangeSize) + From; in operator()
|
/external/rust/crates/libfuzzer-sys/libfuzzer/ |
D | FuzzerRandom.h | 31 intptr_t RangeSize = To - From + 1; in operator() local 32 return operator()(RangeSize) + From; in operator()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | ragged_range_op.cc | 82 rt_nested_splits(row) + RangeSize(start, limit, delta); in Compute() 105 SPLITS_TYPE RangeSize(T start, T limit, T delta) { in RangeSize() function in tensorflow::RaggedRangeOp
|
/external/llvm/lib/MC/ |
D | MCCodeView.cpp | 392 unsigned RangeSize = computeLabelDiff(Layout, Range.first, Range.second); in encodeDefRange() local 397 uint16_t Chunk = std::min((uint32_t)MaxDefRange, RangeSize); in encodeDefRange() 428 RangeSize -= Chunk; in encodeDefRange() 429 } while (RangeSize > 0); in encodeDefRange()
|
/external/tflite-support/tensorflow_lite_support/custom_ops/kernel/ragged/ |
D | ragged_range_tflite.cc | 47 SPLITS_TYPE RangeSize(T start, T limit, T delta) { in RangeSize() function 110 rt_nested_splits[row] + RangeSize<T, SPLITS_TYPE>(start, limit, delta); in EvalT()
|
/external/tensorflow/tensorflow/core/ops/ |
D | math_ops.cc | 1429 Status RangeSize(const Tensor* start_t, const Tensor* limit_t, in RangeSize() function 1484 return RangeSize<int32>(start_t, limit_t, delta_t, c); in __anon725c8f640902() 1486 return RangeSize<int16>(start_t, limit_t, delta_t, c); in __anon725c8f640902() 1488 return RangeSize<int8>(start_t, limit_t, delta_t, c); in __anon725c8f640902() 1490 return RangeSize<int64>(start_t, limit_t, delta_t, c); in __anon725c8f640902() 1492 return RangeSize<float>(start_t, limit_t, delta_t, c); in __anon725c8f640902() 1494 return RangeSize<double>(start_t, limit_t, delta_t, c); in __anon725c8f640902() 1496 return RangeSize<bfloat16>(start_t, limit_t, delta_t, c); in __anon725c8f640902()
|
/external/llvm-project/llvm/lib/DebugInfo/GSYM/ |
D | DwarfTransformer.cpp | 255 const uint64_t RangeSize = EndAddress - StartAddress; in convertFunctionLineTable() local 260 if (!CUI.LineTable->lookupAddressRange(SecAddress, RangeSize, RowVector)) { in convertFunctionLineTable()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 1229 ConstantInt *RangeSize = DivI->isExact() ? getOne(Prod) : DivRHS; in FoldICmpDivCst() local 1248 HiOverflow = AddWithOverflow(HiBound, LoBound, RangeSize, false); in FoldICmpDivCst() 1253 LoBound = ConstantExpr::getNeg(SubOne(RangeSize)); in FoldICmpDivCst() 1254 HiBound = RangeSize; in FoldICmpDivCst() 1259 HiOverflow = AddWithOverflow(HiBound, Prod, RangeSize, true); in FoldICmpDivCst() 1265 ConstantInt *DivNeg =cast<ConstantInt>(ConstantExpr::getNeg(RangeSize)); in FoldICmpDivCst() 1271 RangeSize = cast<ConstantInt>(ConstantExpr::getNeg(RangeSize)); in FoldICmpDivCst() 1274 LoBound = AddOne(RangeSize); in FoldICmpDivCst() 1275 HiBound = cast<ConstantInt>(ConstantExpr::getNeg(RangeSize)); in FoldICmpDivCst() 1285 LoOverflow = AddWithOverflow(LoBound, HiBound, RangeSize, true) ? -1:0; in FoldICmpDivCst() [all …]
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 2415 APInt RangeSize = Div->isExact() ? APInt(C2->getBitWidth(), 1) : *C2; in foldICmpDivConstant() local 2434 HiOverflow = addWithOverflow(HiBound, LoBound, RangeSize, false); in foldICmpDivConstant() 2439 LoBound = -(RangeSize - 1); in foldICmpDivConstant() 2440 HiBound = RangeSize; in foldICmpDivConstant() 2445 HiOverflow = addWithOverflow(HiBound, Prod, RangeSize, true); in foldICmpDivConstant() 2451 APInt DivNeg = -RangeSize; in foldICmpDivConstant() 2457 RangeSize.negate(); in foldICmpDivConstant() 2460 LoBound = RangeSize + 1; in foldICmpDivConstant() 2461 HiBound = -RangeSize; in foldICmpDivConstant() 2471 LoOverflow = addWithOverflow(LoBound, HiBound, RangeSize, true) ? -1:0; in foldICmpDivConstant() [all …]
|
/external/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 …]
|