Home
last modified time | relevance | path

Searched refs:reps (Results 1 – 25 of 49) sorted by relevance

12

/third_party/abseil-cpp/absl/strings/
Dstr_replace_test.cc265 int reps; in TEST() local
269 reps = absl::StrReplaceAll({{"", ""}, {"x", ""}, {"", "y"}, {"x", "y"}}, &s); in TEST()
270 EXPECT_EQ(reps, 0); in TEST()
275 reps = absl::StrReplaceAll({{"", ""}, {"", "y"}, {"x", ""}}, &s); in TEST()
276 EXPECT_EQ(reps, 0); in TEST()
281 reps = absl::StrReplaceAll({{"a", "x"}, {"b", "y"}, {"c", "z"}}, &s); in TEST()
282 EXPECT_EQ(reps, 3); in TEST()
285 reps = absl::StrReplaceAll({{"z", "x"}, {"x", "y"}, {"y", "z"}}, &s); in TEST()
286 EXPECT_EQ(reps, 3); in TEST()
291 reps = absl::StrReplaceAll({{"a", "x"}, {"ab", "xy"}, {"abc", "xyz"}}, &s); in TEST()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dstr_replace_test.cc265 int reps; in TEST() local
269 reps = absl::StrReplaceAll({{"", ""}, {"x", ""}, {"", "y"}, {"x", "y"}}, &s); in TEST()
270 EXPECT_EQ(reps, 0); in TEST()
275 reps = absl::StrReplaceAll({{"", ""}, {"", "y"}, {"x", ""}}, &s); in TEST()
276 EXPECT_EQ(reps, 0); in TEST()
281 reps = absl::StrReplaceAll({{"a", "x"}, {"b", "y"}, {"c", "z"}}, &s); in TEST()
282 EXPECT_EQ(reps, 3); in TEST()
285 reps = absl::StrReplaceAll({{"z", "x"}, {"x", "y"}, {"y", "z"}}, &s); in TEST()
286 EXPECT_EQ(reps, 3); in TEST()
291 reps = absl::StrReplaceAll({{"a", "x"}, {"ab", "xy"}, {"abc", "xyz"}}, &s); in TEST()
[all …]
/third_party/skia/third_party/externals/brotli/c/enc/
Dbit_cost_inc.h95 uint32_t reps = 1; in FN() local
98 ++reps; in FN()
100 i += reps; in FN()
106 if (reps < 3) { in FN()
107 depth_histo[0] += reps; in FN()
109 reps -= 2; in FN()
110 while (reps > 0) { in FN()
114 reps >>= 3; in FN()
Dentropy_encode.c385 size_t reps = 1; in DecideOverRleUse() local
388 ++reps; in DecideOverRleUse()
390 if (reps >= 3 && value == 0) { in DecideOverRleUse()
391 total_reps_zero += reps; in DecideOverRleUse()
394 if (reps >= 4 && value != 0) { in DecideOverRleUse()
395 total_reps_non_zero += reps; in DecideOverRleUse()
398 i += reps; in DecideOverRleUse()
436 size_t reps = 1; in BrotliWriteHuffmanTree() local
441 ++reps; in BrotliWriteHuffmanTree()
446 reps, tree_size, tree, extra_bits_data); in BrotliWriteHuffmanTree()
[all …]
Dbrotli_bit_stream.c546 size_t reps = 1; in BrotliBuildAndStoreHuffmanTreeFast() local
549 ++reps; in BrotliBuildAndStoreHuffmanTreeFast()
551 i += reps; in BrotliBuildAndStoreHuffmanTreeFast()
553 BrotliWriteBits(kZeroRepsDepth[reps], kZeroRepsBits[reps], in BrotliBuildAndStoreHuffmanTreeFast()
559 --reps; in BrotliBuildAndStoreHuffmanTreeFast()
561 if (reps < 3) { in BrotliBuildAndStoreHuffmanTreeFast()
562 while (reps != 0) { in BrotliBuildAndStoreHuffmanTreeFast()
563 reps--; in BrotliBuildAndStoreHuffmanTreeFast()
568 reps -= 3; in BrotliBuildAndStoreHuffmanTreeFast()
569 BrotliWriteBits(kNonZeroRepsDepth[reps], kNonZeroRepsBits[reps], in BrotliBuildAndStoreHuffmanTreeFast()
[all …]
/third_party/node/deps/brotli/c/enc/
Dbit_cost_inc.h95 uint32_t reps = 1; in FN() local
98 ++reps; in FN()
100 i += reps; in FN()
106 if (reps < 3) { in FN()
107 depth_histo[0] += reps; in FN()
109 reps -= 2; in FN()
110 while (reps > 0) { in FN()
114 reps >>= 3; in FN()
Dentropy_encode.c385 size_t reps = 1; in DecideOverRleUse() local
388 ++reps; in DecideOverRleUse()
390 if (reps >= 3 && value == 0) { in DecideOverRleUse()
391 total_reps_zero += reps; in DecideOverRleUse()
394 if (reps >= 4 && value != 0) { in DecideOverRleUse()
395 total_reps_non_zero += reps; in DecideOverRleUse()
398 i += reps; in DecideOverRleUse()
436 size_t reps = 1; in BrotliWriteHuffmanTree() local
441 ++reps; in BrotliWriteHuffmanTree()
446 reps, tree_size, tree, extra_bits_data); in BrotliWriteHuffmanTree()
[all …]
Dbrotli_bit_stream.c546 size_t reps = 1; in BrotliBuildAndStoreHuffmanTreeFast() local
549 ++reps; in BrotliBuildAndStoreHuffmanTreeFast()
551 i += reps; in BrotliBuildAndStoreHuffmanTreeFast()
553 BrotliWriteBits(kZeroRepsDepth[reps], kZeroRepsBits[reps], in BrotliBuildAndStoreHuffmanTreeFast()
559 --reps; in BrotliBuildAndStoreHuffmanTreeFast()
561 if (reps < 3) { in BrotliBuildAndStoreHuffmanTreeFast()
562 while (reps != 0) { in BrotliBuildAndStoreHuffmanTreeFast()
563 reps--; in BrotliBuildAndStoreHuffmanTreeFast()
568 reps -= 3; in BrotliBuildAndStoreHuffmanTreeFast()
569 BrotliWriteBits(kNonZeroRepsDepth[reps], kNonZeroRepsBits[reps], in BrotliBuildAndStoreHuffmanTreeFast()
[all …]
/third_party/skia/fuzz/
DFuzzParsePath.cpp45 uint8_t reps; in add_white() local
46 fuzz->nextRange(&reps, 0, 2); in add_white()
47 for (uint8_t rep = 0; rep < reps; ++rep) { in add_white()
86 uint8_t reps; in MakeRandomParsePathPiece() local
87 fuzz->nextRange(&reps, 1, 3); in MakeRandomParsePathPiece()
88 for (int rep = 0; rep < reps; ++rep) { in MakeRandomParsePathPiece()
94 if (rep < reps - 1 && index < legal.fScalars - 1) { in MakeRandomParsePathPiece()
/third_party/flutter/skia/fuzz/
DFuzzParsePath.cpp45 uint8_t reps; in add_white() local
46 fuzz->nextRange(&reps, 0, 2); in add_white()
47 for (uint8_t rep = 0; rep < reps; ++rep) { in add_white()
86 uint8_t reps; in MakeRandomParsePathPiece() local
87 fuzz->nextRange(&reps, 1, 3); in MakeRandomParsePathPiece()
88 for (int rep = 0; rep < reps; ++rep) { in MakeRandomParsePathPiece()
94 if (rep < reps - 1 && index < legal.fScalars - 1) { in MakeRandomParsePathPiece()
/third_party/mesa3d/src/gallium/frontends/xvmc/tests/
Dxvmc_bench.c61 unsigned int reps; member
77 config->reps = DEFAULT_REPS; in ParseArgs()
141 if (sscanf(argv[++i], "%u", &config->reps) != 1) in ParseArgs()
195 unsigned int reps; in main() local
270 for (reps = 0; reps < config.reps; ++reps) in main()
296 printf("Reps: %u\n", config.reps); in main()
297 printf("Total time: %.2lf (%.2lf reps / sec)\n", diff_secs, config.reps / diff_secs); in main()
/third_party/flutter/skia/third_party/externals/wuffs/script/
Dbench-c-deflate-fragmentation.c302 int reps; in decode() local
304 reps = 1000; in decode()
306 reps = 100; in decode()
308 reps = 10; in decode()
310 reps = 1; in decode()
317 for (i = 0; i < reps; i++) { in decode()
337 cc, reps, nanos / reps); in decode()
/third_party/skia/tools/
Drandom_parse_path.cpp37 int reps = rand->nextRangeU(0, 2); in add_white() local
38 for (int rep = 0; rep < reps; ++rep) { in add_white()
75 int reps = rand->nextRangeU(1, 3); in MakeRandomParsePathPiece() local
76 for (int rep = 0; rep < reps; ++rep) { in MakeRandomParsePathPiece()
81 if (rep < reps - 1 && index < legal.fScalars - 1) { in MakeRandomParsePathPiece()
/third_party/flutter/skia/tools/
Drandom_parse_path.cpp37 int reps = rand->nextRangeU(0, 2); in add_white() local
38 for (int rep = 0; rep < reps; ++rep) { in add_white()
75 int reps = rand->nextRangeU(1, 3); in MakeRandomParsePathPiece() local
76 for (int rep = 0; rep < reps; ++rep) { in MakeRandomParsePathPiece()
81 if (rep < reps - 1 && index < legal.fScalars - 1) { in MakeRandomParsePathPiece()
/third_party/cef/tests/cefclient/browser/
Dimage_cache.cc33 const ImageRepSet& reps, in ImageInfo() argument
36 : id_(id), reps_(reps), internal_(internal), force_reload_(force_reload) { in ImageInfo()
54 ImageRepSet reps; in Create1x() local
55 reps.push_back(ImageRep(path_1x, 1.0f)); in Create1x()
56 return ImageInfo(id, reps, internal, false); in Create1x()
65 ImageRepSet reps; in Create2x() local
66 reps.push_back(ImageRep(path_1x, 1.0f)); in Create2x()
67 reps.push_back(ImageRep(path_2x, 2.0f)); in Create2x()
68 return ImageInfo(id, reps, internal, false); in Create2x()
/third_party/protobuf/benchmarks/java/src/main/java/com/google/protobuf/
DProtoCaliperBenchmark.java162 void serializeToByteArray(int reps) throws IOException { in serializeToByteArray() argument
166 for (int i = 0; i < reps; i++) { in serializeToByteArray()
174 void serializeToMemoryStream(int reps) throws IOException { in serializeToMemoryStream() argument
178 for (int i = 0; i < reps; i++) { in serializeToMemoryStream()
187 void deserializeFromByteArray(int reps) throws IOException { in deserializeFromByteArray() argument
191 for (int i = 0; i < reps; i++) { in deserializeFromByteArray()
200 void deserializeFromMemoryStream(int reps) throws IOException { in deserializeFromMemoryStream() argument
204 for (int i = 0; i < reps; i++) { in deserializeFromMemoryStream()
/third_party/boost/libs/iostreams/test/
Dcounter_test.cpp41 int reps = data_reps < 50 ? data_reps : 25; // Keep test short. in read_counter() local
42 for (int w = 0; w < reps; ++w) { in read_counter()
74 int reps = data_reps < 50 ? data_reps : 25; // Keep test short. in write_counter() local
76 for (int w = 0; w < reps; ++w) { in write_counter()
/third_party/protobuf/benchmarks/python/
Dpy_benchmark.py133 reps = self.full_iteration;
136 reps = int(math.ceil(3 / t)) * self.full_iteration
137 if reps != self.full_iteration:
140 number=reps);
141 return self.total_bytes * 1.0 / 2 ** 20 / (1.0 * t / reps * self.full_iteration)
/third_party/mbedtls/tests/suites/
Dtest_suite_hmac_drbg.function40 size_t i, reps = 10;
61 mbedtls_hmac_drbg_set_reseed_interval( &ctx, 2 * reps );
71 * 2 * reps so the next few calls should not use entropy */
72 for( i = 0; i < reps; i++ )
86 /* There have been 2 * reps calls to random. The next call should reseed */
92 mbedtls_hmac_drbg_set_reseed_interval( &ctx, 4 * reps + 1);
95 for( i = 0; i < (2 * reps); i++ )
Dtest_suite_ctr_drbg.function230 size_t i, reps = 10;
244 mbedtls_ctr_drbg_set_reseed_interval( &ctx, 2 * reps );
256 * 2 * reps so the next few calls should not use entropy */
257 for( i = 0; i < reps; i++ )
271 /* There have been 2 * reps calls to random. The next call should reseed */
277 mbedtls_ctr_drbg_set_reseed_interval( &ctx, 4 * reps + 1 );
280 for( i = 0; i < (2 * reps); i++ )
/third_party/flutter/skia/third_party/externals/wuffs/script/bench-go-gif/
Dmain.go42 reps = 5 const
103 for i := -1; i < reps; i++ {
/third_party/flutter/skia/src/gpu/
DGrResourceProvider.h195 int reps, in findOrCreatePatternedIndexBuffer() argument
201 return this->createPatternedIndexBuffer(pattern, patternSize, reps, vertCount, &key); in findOrCreatePatternedIndexBuffer()
330 int reps,
/third_party/flutter/skia/third_party/externals/wuffs/test/c/testlib/
Dtestlib.c252 int reps = 5; in test_main() local
298 reps = n; in test_main()
308 reps = 1; in test_main()
310 reps++; // +1 for the warm up run. in test_main()
321 for (i = 0; i < reps; i++) { in test_main()
346 tests_run, reps - 1, (int)(iterscale)); in test_main()
/third_party/skia/src/gpu/
DGrResourceProvider.h229 int reps, in findOrCreatePatternedIndexBuffer() argument
235 return this->createPatternedIndexBuffer(pattern, patternSize, reps, vertCount, &key); in findOrCreatePatternedIndexBuffer()
403 int reps,
/third_party/flutter/skia/third_party/externals/wuffs/cmd/wuffs-c/
Dtest.go84 iterscale int, mimic bool, reps int) (failed bool, err error) {
125 fmt.Sprintf("-reps=%d", reps),

12