Home
last modified time | relevance | path

Searched refs:RangeSize (Results 1 – 24 of 24) sorted by relevance

/external/angle/third_party/abseil-cpp/absl/random/internal/
Dfast_uniform_bits_test.cc118 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 …]
Dfast_uniform_bits.h40 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/
Dfast_uniform_bits_test.cc118 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 …]
Dfast_uniform_bits.h40 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/
Dfast_uniform_bits_test.cc118 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 …]
Dfast_uniform_bits.h40 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/
Dfast_uniform_bits_test.cc109 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 …]
Dfast_uniform_bits.h39 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/
Dfast_uniform_bits_test.cc109 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 …]
Dfast_uniform_bits.h39 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/
Dfast_uniform_bits_test.cc118 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 …]
Dfast_uniform_bits.h40 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/
DMCCodeView.cpp620 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/
DMCCodeView.cpp623 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/
DFuzzerRandom.h31 intptr_t RangeSize = To - From + 1; in operator() local
32 return operator()(RangeSize) + From; in operator()
/external/rust/crates/libfuzzer-sys/libfuzzer/
DFuzzerRandom.h31 intptr_t RangeSize = To - From + 1; in operator() local
32 return operator()(RangeSize) + From; in operator()
/external/tensorflow/tensorflow/core/kernels/
Dragged_range_op.cc82 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/
DMCCodeView.cpp392 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/
Dragged_range_tflite.cc47 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/
Dmath_ops.cc1429 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/
DDwarfTransformer.cpp255 const uint64_t RangeSize = EndAddress - StartAddress; in convertFunctionLineTable() local
260 if (!CUI.LineTable->lookupAddressRange(SecAddress, RangeSize, RowVector)) { in convertFunctionLineTable()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1229 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/
DInstCombineCompares.cpp2415 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/
DInstCombineCompares.cpp2372 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 …]