/external/ltp/include/ |
D | tst_fuzzy_sync.h | 186 pair->param = (pair->param ? pair->param : def); \ 187 if (pair->param < low) \ 189 if (pair->param > hi) \ 202 static void tst_fzsync_pair_init(struct tst_fzsync_pair *pair) in tst_fzsync_pair_init() argument 219 static void tst_fzsync_pair_cleanup(struct tst_fzsync_pair *pair) in tst_fzsync_pair_cleanup() argument 221 if (pair->thread_b) { in tst_fzsync_pair_cleanup() 223 if (!pair->exit) { in tst_fzsync_pair_cleanup() 224 tst_atomic_store(1, &pair->exit); in tst_fzsync_pair_cleanup() 236 SAFE_PTHREAD_JOIN(pair->thread_b, NULL); in tst_fzsync_pair_cleanup() 237 pair->thread_b = 0; in tst_fzsync_pair_cleanup() [all …]
|
/external/deqp-deps/SPIRV-Tools/source/fuzz/ |
D | fuzzer_context.cpp | 31 const std::pair<uint32_t, uint32_t> 33 const std::pair<uint32_t, uint32_t> kChanceOfAddingAccessChain = {5, 50}; 34 const std::pair<uint32_t, uint32_t> kChanceOfAddingAnotherPassToPassLoop = {50, 36 const std::pair<uint32_t, uint32_t> kChanceOfAddingAnotherStructField = {20, 38 const std::pair<uint32_t, uint32_t> kChanceOfAddingArrayOrStructType = {20, 90}; 39 const std::pair<uint32_t, uint32_t> kChanceOfAddingBitInstructionSynonym = {5, 41 const std::pair<uint32_t, uint32_t> 43 const std::pair<uint32_t, uint32_t> kChanceOfAddingCompositeExtract = {20, 50}; 44 const std::pair<uint32_t, uint32_t> kChanceOfAddingCompositeInsert = {20, 50}; 45 const std::pair<uint32_t, uint32_t> kChanceOfAddingCopyMemory = {20, 50}; [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | fuzzer_context.cpp | 31 const std::pair<uint32_t, uint32_t> 33 const std::pair<uint32_t, uint32_t> kChanceOfAddingAccessChain = {5, 50}; 34 const std::pair<uint32_t, uint32_t> kChanceOfAddingAnotherPassToPassLoop = {50, 36 const std::pair<uint32_t, uint32_t> kChanceOfAddingAnotherStructField = {20, 38 const std::pair<uint32_t, uint32_t> kChanceOfAddingArrayOrStructType = {20, 90}; 39 const std::pair<uint32_t, uint32_t> kChanceOfAddingBitInstructionSynonym = {5, 41 const std::pair<uint32_t, uint32_t> 43 const std::pair<uint32_t, uint32_t> kChanceOfAddingCompositeExtract = {20, 50}; 44 const std::pair<uint32_t, uint32_t> kChanceOfAddingCompositeInsert = {20, 50}; 45 const std::pair<uint32_t, uint32_t> kChanceOfAddingCopyMemory = {20, 50}; [all …]
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/fuzz/ |
D | fuzzer_context.cpp | 37 const std::pair<uint32_t, uint32_t> 39 const std::pair<uint32_t, uint32_t> kChanceOfAddingAccessChain = {5, 50}; 40 const std::pair<uint32_t, uint32_t> kChanceOfAddingAnotherPassToPassLoop = {50, 42 const std::pair<uint32_t, uint32_t> kChanceOfAddingAnotherStructField = {20, 44 const std::pair<uint32_t, uint32_t> kChanceOfAddingArrayOrStructType = {20, 90}; 45 const std::pair<uint32_t, uint32_t> kChanceOfAddingBitInstructionSynonym = {5, 47 const std::pair<uint32_t, uint32_t> 49 const std::pair<uint32_t, uint32_t> kChanceOfAddingCompositeExtract = {20, 50}; 50 const std::pair<uint32_t, uint32_t> kChanceOfAddingCompositeInsert = {20, 50}; 51 const std::pair<uint32_t, uint32_t> kChanceOfAddingCopyMemory = {20, 50}; [all …]
|
/external/llvm-project/llvm/test/Transforms/SROA/ |
D | select-gep.ll | 4 %pair = type { i32, i32 } 13 %a = alloca %pair, align 4 14 %b = alloca %pair, align 4 15 %gep_a = getelementptr inbounds %pair, %pair* %a, i32 0, i32 1 16 %gep_b = getelementptr inbounds %pair, %pair* %b, i32 0, i32 1 19 %select = select i1 %cond, %pair* %a, %pair* %b 20 %gep = getelementptr inbounds %pair, %pair* %select, i32 0, i32 1 32 %a = alloca %pair, align 4 33 %b = alloca %pair, align 4 34 %gep_a = getelementptr %pair, %pair* %a, i32 0, i32 1 [all …]
|
/external/libbrillo/brillo/strings/ |
D | string_utils_test.cc | 75 std::pair<std::string, std::string> pair; in TEST() local 77 pair = string_utils::SplitAtFirst(" 123 : 4 : 56 : 789 ", ":", true); in TEST() 78 EXPECT_EQ("123", pair.first); in TEST() 79 EXPECT_EQ("4 : 56 : 789", pair.second); in TEST() 81 pair = string_utils::SplitAtFirst(" 123 : 4 : 56 : 789 ", ":", false); in TEST() 82 EXPECT_EQ(" 123 ", pair.first); in TEST() 83 EXPECT_EQ(" 4 : 56 : 789 ", pair.second); in TEST() 85 pair = string_utils::SplitAtFirst("", "="); in TEST() 86 EXPECT_EQ("", pair.first); in TEST() 87 EXPECT_EQ("", pair.second); in TEST() [all …]
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | radeon_program_pair.c | 38 int rc_pair_alloc_source(struct rc_pair_instruction *pair, in rc_pair_alloc_source() argument 53 if (rgb && pair->RGB.Src[RC_PAIR_PRESUB_SRC].Used in rc_pair_alloc_source() 54 && index != pair->RGB.Src[RC_PAIR_PRESUB_SRC].Index) { in rc_pair_alloc_source() 58 if (alpha && pair->Alpha.Src[RC_PAIR_PRESUB_SRC].Used in rc_pair_alloc_source() 59 && index != pair->Alpha.Src[RC_PAIR_PRESUB_SRC].Index) { in rc_pair_alloc_source() 67 if (pair->RGB.Src[i].Used) { in rc_pair_alloc_source() 68 if (pair->RGB.Src[i].File != file || in rc_pair_alloc_source() 69 pair->RGB.Src[i].Index != index) { in rc_pair_alloc_source() 77 if (pair->Alpha.Src[i].Used) { in rc_pair_alloc_source() 78 if (pair->Alpha.Src[i].File != file || in rc_pair_alloc_source() [all …]
|
/external/ppp/pppd/plugins/radius/ |
D | avpair.c | 163 VALUE_PAIR *pair; in rc_avpair_gen() local 207 if ((pair = in rc_avpair_gen() 215 strcpy (pair->name, attr->name); in rc_avpair_gen() 216 pair->attribute = attr->value; in rc_avpair_gen() 217 pair->vendorcode = VENDOR_NONE; in rc_avpair_gen() 218 pair->type = attr->type; in rc_avpair_gen() 219 pair->next = (VALUE_PAIR *) NULL; in rc_avpair_gen() 225 memcpy (pair->strvalue, (char *) ptr, (size_t) attrlen); in rc_avpair_gen() 226 pair->strvalue[attrlen] = '\0'; in rc_avpair_gen() 227 pair->lvalue = attrlen; in rc_avpair_gen() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
D | CollationFastLatin.java | 745 private static int getPrimaries(int variableTop, int pair) { in getPrimaries() argument 746 int ce = pair & 0xffff; in getPrimaries() 747 if(ce >= MIN_SHORT) { return pair & TWO_SHORT_PRIMARIES_MASK; } in getPrimaries() 748 if(ce > variableTop) { return pair & TWO_LONG_PRIMARIES_MASK; } in getPrimaries() 750 return pair; // special mini CE in getPrimaries() 762 private static int getSecondaries(int variableTop, int pair) { in getSecondaries() argument 763 if(pair <= 0xffff) { in getSecondaries() 765 if(pair >= MIN_SHORT) { in getSecondaries() 766 pair = getSecondariesFromOneShortCE(pair); in getSecondaries() 767 } else if(pair > variableTop) { in getSecondaries() [all …]
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | CollationFastLatin.java | 741 private static int getPrimaries(int variableTop, int pair) { in getPrimaries() argument 742 int ce = pair & 0xffff; in getPrimaries() 743 if(ce >= MIN_SHORT) { return pair & TWO_SHORT_PRIMARIES_MASK; } in getPrimaries() 744 if(ce > variableTop) { return pair & TWO_LONG_PRIMARIES_MASK; } in getPrimaries() 746 return pair; // special mini CE in getPrimaries() 758 private static int getSecondaries(int variableTop, int pair) { in getSecondaries() argument 759 if(pair <= 0xffff) { in getSecondaries() 761 if(pair >= MIN_SHORT) { in getSecondaries() 762 pair = getSecondariesFromOneShortCE(pair); in getSecondaries() 763 } else if(pair > variableTop) { in getSecondaries() [all …]
|
/external/angle/third_party/abseil-cpp/absl/numeric/ |
D | int128_benchmark.cc | 38 std::vector<std::pair<T, T>> GetRandomClass128SampleUniformDivisor() { in GetRandomClass128SampleUniformDivisor() 39 std::vector<std::pair<T, T>> values; in GetRandomClass128SampleUniformDivisor() 55 for (const auto& pair : values) { in BM_DivideClass128UniformDivisor() local 56 benchmark::DoNotOptimize(pair.first / pair.second); in BM_DivideClass128UniformDivisor() 67 for (const auto& pair : values) { in BM_RemainderClass128UniformDivisor() local 68 benchmark::DoNotOptimize(pair.first % pair.second); in BM_RemainderClass128UniformDivisor() 78 std::vector<std::pair<T, H>> GetRandomClass128SampleSmallDivisor() { in GetRandomClass128SampleSmallDivisor() 79 std::vector<std::pair<T, H>> values; in GetRandomClass128SampleSmallDivisor() 95 for (const auto& pair : values) { in BM_DivideClass128SmallDivisor() local 96 benchmark::DoNotOptimize(pair.first / pair.second); in BM_DivideClass128SmallDivisor() [all …]
|
D | int128_test.cc | 698 for (const HighLowPair& pair : values) { in TEST() local 699 absl::int128 value = absl::MakeInt128(pair.high, pair.low); in TEST() 700 EXPECT_EQ(pair.low, absl::Int128Low64(value)); in TEST() 701 EXPECT_EQ(pair.high, absl::Int128High64(value)); in TEST() 747 for (const TestCase& pair : cases) { in TEST() local 748 SCOPED_TRACE(::testing::Message() << "pair.smaller = " << pair.smaller in TEST() 749 << "; pair.larger = " << pair.larger); in TEST() 751 EXPECT_TRUE(pair.smaller == pair.smaller); // NOLINT(readability/check) in TEST() 752 EXPECT_TRUE(pair.larger == pair.larger); // NOLINT(readability/check) in TEST() 753 EXPECT_FALSE(pair.smaller == pair.larger); // NOLINT(readability/check) in TEST() [all …]
|
/external/openscreen/third_party/abseil/src/absl/numeric/ |
D | int128_benchmark.cc | 38 std::vector<std::pair<T, T>> GetRandomClass128SampleUniformDivisor() { in GetRandomClass128SampleUniformDivisor() 39 std::vector<std::pair<T, T>> values; in GetRandomClass128SampleUniformDivisor() 55 for (const auto& pair : values) { in BM_DivideClass128UniformDivisor() local 56 benchmark::DoNotOptimize(pair.first / pair.second); in BM_DivideClass128UniformDivisor() 67 for (const auto& pair : values) { in BM_RemainderClass128UniformDivisor() local 68 benchmark::DoNotOptimize(pair.first % pair.second); in BM_RemainderClass128UniformDivisor() 78 std::vector<std::pair<T, H>> GetRandomClass128SampleSmallDivisor() { in GetRandomClass128SampleSmallDivisor() 79 std::vector<std::pair<T, H>> values; in GetRandomClass128SampleSmallDivisor() 95 for (const auto& pair : values) { in BM_DivideClass128SmallDivisor() local 96 benchmark::DoNotOptimize(pair.first / pair.second); in BM_DivideClass128SmallDivisor() [all …]
|
D | int128_test.cc | 693 for (const HighLowPair& pair : values) { in TEST() local 694 absl::int128 value = absl::MakeInt128(pair.high, pair.low); in TEST() 695 EXPECT_EQ(pair.low, absl::Int128Low64(value)); in TEST() 696 EXPECT_EQ(pair.high, absl::Int128High64(value)); in TEST() 742 for (const TestCase& pair : cases) { in TEST() local 743 SCOPED_TRACE(::testing::Message() << "pair.smaller = " << pair.smaller in TEST() 744 << "; pair.larger = " << pair.larger); in TEST() 746 EXPECT_TRUE(pair.smaller == pair.smaller); // NOLINT(readability/check) in TEST() 747 EXPECT_TRUE(pair.larger == pair.larger); // NOLINT(readability/check) in TEST() 748 EXPECT_FALSE(pair.smaller == pair.larger); // NOLINT(readability/check) in TEST() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/numeric/ |
D | int128_benchmark.cc | 38 std::vector<std::pair<T, T>> GetRandomClass128SampleUniformDivisor() { in GetRandomClass128SampleUniformDivisor() 39 std::vector<std::pair<T, T>> values; in GetRandomClass128SampleUniformDivisor() 55 for (const auto& pair : values) { in BM_DivideClass128UniformDivisor() local 56 benchmark::DoNotOptimize(pair.first / pair.second); in BM_DivideClass128UniformDivisor() 67 for (const auto& pair : values) { in BM_RemainderClass128UniformDivisor() local 68 benchmark::DoNotOptimize(pair.first % pair.second); in BM_RemainderClass128UniformDivisor() 78 std::vector<std::pair<T, H>> GetRandomClass128SampleSmallDivisor() { in GetRandomClass128SampleSmallDivisor() 79 std::vector<std::pair<T, H>> values; in GetRandomClass128SampleSmallDivisor() 95 for (const auto& pair : values) { in BM_DivideClass128SmallDivisor() local 96 benchmark::DoNotOptimize(pair.first / pair.second); in BM_DivideClass128SmallDivisor() [all …]
|
D | int128_test.cc | 693 for (const HighLowPair& pair : values) { in TEST() local 694 absl::int128 value = absl::MakeInt128(pair.high, pair.low); in TEST() 695 EXPECT_EQ(pair.low, absl::Int128Low64(value)); in TEST() 696 EXPECT_EQ(pair.high, absl::Int128High64(value)); in TEST() 742 for (const TestCase& pair : cases) { in TEST() local 743 SCOPED_TRACE(::testing::Message() << "pair.smaller = " << pair.smaller in TEST() 744 << "; pair.larger = " << pair.larger); in TEST() 746 EXPECT_TRUE(pair.smaller == pair.smaller); // NOLINT(readability/check) in TEST() 747 EXPECT_TRUE(pair.larger == pair.larger); // NOLINT(readability/check) in TEST() 748 EXPECT_FALSE(pair.smaller == pair.larger); // NOLINT(readability/check) in TEST() [all …]
|
/external/libtextclassifier/abseil-cpp/absl/numeric/ |
D | int128_benchmark.cc | 38 std::vector<std::pair<T, T>> GetRandomClass128SampleUniformDivisor() { in GetRandomClass128SampleUniformDivisor() 39 std::vector<std::pair<T, T>> values; in GetRandomClass128SampleUniformDivisor() 55 for (const auto& pair : values) { in BM_DivideClass128UniformDivisor() local 56 benchmark::DoNotOptimize(pair.first / pair.second); in BM_DivideClass128UniformDivisor() 67 for (const auto& pair : values) { in BM_RemainderClass128UniformDivisor() local 68 benchmark::DoNotOptimize(pair.first % pair.second); in BM_RemainderClass128UniformDivisor() 78 std::vector<std::pair<T, H>> GetRandomClass128SampleSmallDivisor() { in GetRandomClass128SampleSmallDivisor() 79 std::vector<std::pair<T, H>> values; in GetRandomClass128SampleSmallDivisor() 95 for (const auto& pair : values) { in BM_DivideClass128SmallDivisor() local 96 benchmark::DoNotOptimize(pair.first / pair.second); in BM_DivideClass128SmallDivisor() [all …]
|
D | int128_test.cc | 693 for (const HighLowPair& pair : values) { in TEST() local 694 absl::int128 value = absl::MakeInt128(pair.high, pair.low); in TEST() 695 EXPECT_EQ(pair.low, absl::Int128Low64(value)); in TEST() 696 EXPECT_EQ(pair.high, absl::Int128High64(value)); in TEST() 742 for (const TestCase& pair : cases) { in TEST() local 743 SCOPED_TRACE(::testing::Message() << "pair.smaller = " << pair.smaller in TEST() 744 << "; pair.larger = " << pair.larger); in TEST() 746 EXPECT_TRUE(pair.smaller == pair.smaller); // NOLINT(readability/check) in TEST() 747 EXPECT_TRUE(pair.larger == pair.larger); // NOLINT(readability/check) in TEST() 748 EXPECT_FALSE(pair.smaller == pair.larger); // NOLINT(readability/check) in TEST() [all …]
|
/external/webrtc/third_party/abseil-cpp/absl/numeric/ |
D | int128_test.cc | 693 for (const HighLowPair& pair : values) { in TEST() local 694 absl::int128 value = absl::MakeInt128(pair.high, pair.low); in TEST() 695 EXPECT_EQ(pair.low, absl::Int128Low64(value)); in TEST() 696 EXPECT_EQ(pair.high, absl::Int128High64(value)); in TEST() 742 for (const TestCase& pair : cases) { in TEST() local 743 SCOPED_TRACE(::testing::Message() << "pair.smaller = " << pair.smaller in TEST() 744 << "; pair.larger = " << pair.larger); in TEST() 746 EXPECT_TRUE(pair.smaller == pair.smaller); // NOLINT(readability/check) in TEST() 747 EXPECT_TRUE(pair.larger == pair.larger); // NOLINT(readability/check) in TEST() 748 EXPECT_FALSE(pair.smaller == pair.larger); // NOLINT(readability/check) in TEST() [all …]
|
D | int128_benchmark.cc | 35 std::vector<std::pair<absl::uint128, absl::uint128>> 37 std::vector<std::pair<absl::uint128, absl::uint128>> values; in GetRandomClass128SampleUniformDivisor() 55 for (const auto& pair : values) { in BM_DivideClass128UniformDivisor() local 56 benchmark::DoNotOptimize(pair.first / pair.second); in BM_DivideClass128UniformDivisor() 62 std::vector<std::pair<absl::uint128, uint64_t>> 64 std::vector<std::pair<absl::uint128, uint64_t>> values; in GetRandomClass128SampleSmallDivisor() 80 for (const auto& pair : values) { in BM_DivideClass128SmallDivisor() local 81 benchmark::DoNotOptimize(pair.first / pair.second); in BM_DivideClass128SmallDivisor() 87 std::vector<std::pair<absl::uint128, absl::uint128>> GetRandomClass128Sample() { in GetRandomClass128Sample() 88 std::vector<std::pair<absl::uint128, absl::uint128>> values; in GetRandomClass128Sample() [all …]
|
/external/abseil-cpp/absl/numeric/ |
D | int128_test.cc | 693 for (const HighLowPair& pair : values) { in TEST() local 694 absl::int128 value = absl::MakeInt128(pair.high, pair.low); in TEST() 695 EXPECT_EQ(pair.low, absl::Int128Low64(value)); in TEST() 696 EXPECT_EQ(pair.high, absl::Int128High64(value)); in TEST() 742 for (const TestCase& pair : cases) { in TEST() local 743 SCOPED_TRACE(::testing::Message() << "pair.smaller = " << pair.smaller in TEST() 744 << "; pair.larger = " << pair.larger); in TEST() 746 EXPECT_TRUE(pair.smaller == pair.smaller); // NOLINT(readability/check) in TEST() 747 EXPECT_TRUE(pair.larger == pair.larger); // NOLINT(readability/check) in TEST() 748 EXPECT_FALSE(pair.smaller == pair.larger); // NOLINT(readability/check) in TEST() [all …]
|
D | int128_benchmark.cc | 35 std::vector<std::pair<absl::uint128, absl::uint128>> 37 std::vector<std::pair<absl::uint128, absl::uint128>> values; in GetRandomClass128SampleUniformDivisor() 55 for (const auto& pair : values) { in BM_DivideClass128UniformDivisor() local 56 benchmark::DoNotOptimize(pair.first / pair.second); in BM_DivideClass128UniformDivisor() 62 std::vector<std::pair<absl::uint128, uint64_t>> 64 std::vector<std::pair<absl::uint128, uint64_t>> values; in GetRandomClass128SampleSmallDivisor() 80 for (const auto& pair : values) { in BM_DivideClass128SmallDivisor() local 81 benchmark::DoNotOptimize(pair.first / pair.second); in BM_DivideClass128SmallDivisor() 87 std::vector<std::pair<absl::uint128, absl::uint128>> GetRandomClass128Sample() { in GetRandomClass128Sample() 88 std::vector<std::pair<absl::uint128, absl::uint128>> values; in GetRandomClass128Sample() [all …]
|
/external/libcxx/test/std/utilities/utility/pairs/pairs.pair/ |
D | implicit_deduction_guides.pass.cpp | 49 std::pair t1("abc", x); in main() 50 ASSERT_SAME_TYPE(decltype(t1), std::pair<const char*, int>); in main() 53 std::pair p1(E{}, 42); in main() 54 ASSERT_SAME_TYPE(decltype(p1), std::pair<E, int>); in main() 57 std::pair p2(t, E{}); in main() 58 ASSERT_SAME_TYPE(decltype(p2), std::pair<E, E>); in main() 61 std::pair<double, decltype(nullptr)> const p(0.0, nullptr); in main() 62 std::pair p1(p); in main() 63 ASSERT_SAME_TYPE(decltype(p1), std::pair<double, decltype(nullptr)>); in main() 66 std::pair<E, decltype(nullptr)> const p(E{}, nullptr); in main() [all …]
|
/external/llvm-project/libcxx/test/std/utilities/utility/pairs/pairs.pair/ |
D | implicit_deduction_guides.pass.cpp | 48 std::pair t1("abc", x); in main() 49 ASSERT_SAME_TYPE(decltype(t1), std::pair<const char*, int>); in main() 52 std::pair p1(E{}, 42); in main() 53 ASSERT_SAME_TYPE(decltype(p1), std::pair<E, int>); in main() 56 std::pair p2(t, E{}); in main() 57 ASSERT_SAME_TYPE(decltype(p2), std::pair<E, E>); in main() 60 std::pair<double, decltype(nullptr)> const p(0.0, nullptr); in main() 61 std::pair p1(p); in main() 62 ASSERT_SAME_TYPE(decltype(p1), std::pair<double, decltype(nullptr)>); in main() 65 std::pair<E, decltype(nullptr)> const p(E{}, nullptr); in main() [all …]
|
/external/libcxx/test/libcxx/utilities/utility/pairs/pairs.pair/ |
D | rv_pair_U_V.pass.cpp | 44 static_assert(!std::is_nothrow_constructible<std::pair<ExplicitT, ExplicitT>, in main() 45 std::pair<int, int>&&>::value, ""); in main() 46 static_assert(!std::is_nothrow_constructible<std::pair<ExplicitNothrowT, ExplicitT>, in main() 47 std::pair<int, int>&&>::value, ""); in main() 48 static_assert(!std::is_nothrow_constructible<std::pair<ExplicitT, ExplicitNothrowT>, in main() 49 std::pair<int, int>&&>::value, ""); in main() 50 static_assert( std::is_nothrow_constructible<std::pair<ExplicitNothrowT, ExplicitNothrowT>, in main() 51 std::pair<int, int>&&>::value, ""); in main() 54 static_assert(!std::is_nothrow_constructible<std::pair<ImplicitT, ImplicitT>, in main() 55 std::pair<int, int>&&>::value, ""); in main() [all …]
|