Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 7283) sorted by relevance

12345678910>>...292

/third_party/libxml2/
Dxmlwriter.c522 int count; in xmlTextWriterStartDocument() local
562 count = xmlOutputBufferWriteString(writer->out, "<?xml version="); in xmlTextWriterStartDocument()
563 if (count < 0) in xmlTextWriterStartDocument()
565 sum += count; in xmlTextWriterStartDocument()
566 count = xmlOutputBufferWrite(writer->out, 1, &writer->qchar); in xmlTextWriterStartDocument()
567 if (count < 0) in xmlTextWriterStartDocument()
569 sum += count; in xmlTextWriterStartDocument()
571 count = xmlOutputBufferWriteString(writer->out, version); in xmlTextWriterStartDocument()
573 count = xmlOutputBufferWriteString(writer->out, "1.0"); in xmlTextWriterStartDocument()
574 if (count < 0) in xmlTextWriterStartDocument()
[all …]
/third_party/rust/crates/memchr/bench/src/memmem/
Dinputs.rs25 pub count: usize, field
33 Query { name: "fn-strength", needle: "fn strength", count: 0 },
37 count: 0,
39 Query { name: "fn-quux", needle: "fn quux(", count: 0 },
45 count: 1,
49 Query { name: "fn-is-empty", needle: "fn is_empty(", count: 17 },
50 Query { name: "fn", needle: "fn", count: 2985 },
51 Query { name: "paren", needle: "(", count: 30193 },
52 Query { name: "let", needle: "let", count: 4737 },
59 Query { name: "john-watson", needle: "John Watson", count: 0 },
[all …]
/third_party/skia/third_party/externals/harfbuzz/test/api/
Dtest-ot-layout.c38 unsigned int count = STATIC_ARRAY_SIZE; in test_ot_layout_table_get_script_tags() local
41 while (count == STATIC_ARRAY_SIZE) in test_ot_layout_table_get_script_tags()
43 total = hb_ot_layout_table_get_script_tags (face, HB_OT_TAG_GSUB, offset, &count, tags); in test_ot_layout_table_get_script_tags()
45 offset += count; in test_ot_layout_table_get_script_tags()
46 if (count) in test_ot_layout_table_get_script_tags()
48 g_assert_cmpuint (3, ==, count); in test_ot_layout_table_get_script_tags()
54 count = STATIC_ARRAY_SIZE; in test_ot_layout_table_get_script_tags()
56 while (count == STATIC_ARRAY_SIZE) in test_ot_layout_table_get_script_tags()
58 total = hb_ot_layout_table_get_script_tags (face, HB_OT_TAG_GPOS, offset, &count, tags); in test_ot_layout_table_get_script_tags()
60 offset += count; in test_ot_layout_table_get_script_tags()
[all …]
/third_party/flutter/skia/src/opts/
DSkSwizzler_opts.h23 static void RGBA_to_rgbA_portable(uint32_t* dst, const uint32_t* src, int count) { in RGBA_to_rgbA_portable() argument
24 for (int i = 0; i < count; i++) { in RGBA_to_rgbA_portable()
39 static void RGBA_to_bgrA_portable(uint32_t* dst, const uint32_t* src, int count) { in RGBA_to_bgrA_portable() argument
40 for (int i = 0; i < count; i++) { in RGBA_to_bgrA_portable()
55 static void RGBA_to_BGRA_portable(uint32_t* dst, const uint32_t* src, int count) { in RGBA_to_BGRA_portable() argument
56 for (int i = 0; i < count; i++) { in RGBA_to_BGRA_portable()
68 static void RGB_to_RGB1_portable(uint32_t dst[], const uint8_t* src, int count) { in RGB_to_RGB1_portable() argument
69 for (int i = 0; i < count; i++) { in RGB_to_RGB1_portable()
81 static void RGB_to_BGR1_portable(uint32_t dst[], const uint8_t* src, int count) { in RGB_to_BGR1_portable() argument
82 for (int i = 0; i < count; i++) { in RGB_to_BGR1_portable()
[all …]
/third_party/skia/src/opts/
DSkSwizzler_opts.h23 static void RGBA_to_rgbA_portable(uint32_t* dst, const uint32_t* src, int count) { in RGBA_to_rgbA_portable() argument
24 for (int i = 0; i < count; i++) { in RGBA_to_rgbA_portable()
39 static void RGBA_to_bgrA_portable(uint32_t* dst, const uint32_t* src, int count) { in RGBA_to_bgrA_portable() argument
40 for (int i = 0; i < count; i++) { in RGBA_to_bgrA_portable()
55 static void RGBA_to_BGRA_portable(uint32_t* dst, const uint32_t* src, int count) { in RGBA_to_BGRA_portable() argument
56 for (int i = 0; i < count; i++) { in RGBA_to_BGRA_portable()
68 static void grayA_to_RGBA_portable(uint32_t dst[], const uint8_t* src, int count) { in grayA_to_RGBA_portable() argument
69 for (int i = 0; i < count; i++) { in grayA_to_RGBA_portable()
80 static void grayA_to_rgbA_portable(uint32_t dst[], const uint8_t* src, int count) { in grayA_to_rgbA_portable() argument
81 for (int i = 0; i < count; i++) { in grayA_to_rgbA_portable()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dtsdtfmsy.cpp132 UBool IntlTestDateFormatSymbols::UnicodeStringsArePrefixes(int32_t count, int32_t prefixLen, const … in UnicodeStringsArePrefixes() argument
135 for (i = 0; i < count; i++) { in UnicodeStringsArePrefixes()
201 int32_t count = 0; in TestSymbols() local
202 const UnicodeString *eras = en.getEras(count); in TestSymbols()
203 if(count == 0) { in TestSymbols()
224 fr.setEras(eras, count); in TestSymbols()
225 if( *en.getEras(count) != *fr.getEras(count)) { in TestSymbols()
229 const UnicodeString *months = en.getMonths(count); in TestSymbols()
230 fr.setMonths(months, count); in TestSymbols()
231 if( *en.getMonths(count) != *fr.getMonths(count)) { in TestSymbols()
[all …]
/third_party/libsnd/src/
Dpcm.c285 sc2s_array (const signed char *src, int count, short *dest) in sc2s_array() argument
286 { while (--count >= 0) in sc2s_array()
287 { dest [count] = ((uint16_t) src [count]) << 8 ; in sc2s_array()
292 uc2s_array (const unsigned char *src, int count, short *dest) in uc2s_array() argument
293 { while (--count >= 0) in uc2s_array()
294 { dest [count] = (((uint32_t) src [count]) - 0x80) << 8 ; in uc2s_array()
299 let2s_array (const tribyte *src, int count, short *dest) in let2s_array() argument
300 { while (--count >= 0) in let2s_array()
301 dest [count] = LET2H_16_PTR (src [count].bytes) ; in let2s_array()
305 bet2s_array (const tribyte *src, int count, short *dest) in bet2s_array() argument
[all …]
Dalaw.c37 static void alaw2s_array (unsigned char *buffer, int count, short *ptr) ;
38 static void alaw2i_array (unsigned char *buffer, int count, int *ptr) ;
39 static void alaw2f_array (unsigned char *buffer, int count, float *ptr, float normfact) ;
40 static void alaw2d_array (unsigned char *buffer, int count, double *ptr, double normfact) ;
42 static void s2alaw_array (const short *buffer, int count, unsigned char *ptr) ;
43 static void i2alaw_array (const int *buffer, int count, unsigned char *ptr) ;
44 static void f2alaw_array (const float *buffer, int count, unsigned char *ptr, float normfact) ;
45 static void d2alaw_array (const double *buffer, int count, unsigned char *ptr, double normfact) ;
294 alaw2s_array (unsigned char *buffer, int count, short *ptr) in alaw2s_array() argument
295 { while (--count >= 0) in alaw2s_array()
[all …]
Dulaw.c795 ulaw2s_array (unsigned char *buffer, int count, short *ptr) in ulaw2s_array() argument
796 { while (--count >= 0) in ulaw2s_array()
797 ptr [count] = ulaw_decode [(int) buffer [count]] ; in ulaw2s_array()
801 ulaw2i_array (unsigned char *buffer, int count, int *ptr) in ulaw2i_array() argument
802 { while (--count >= 0) in ulaw2i_array()
803 ptr [count] = ((uint32_t) ulaw_decode [buffer [count]]) << 16 ; in ulaw2i_array()
807 ulaw2f_array (unsigned char *buffer, int count, float *ptr, float normfact) in ulaw2f_array() argument
808 { while (--count >= 0) in ulaw2f_array()
809 ptr [count] = normfact * ulaw_decode [(int) buffer [count]] ; in ulaw2f_array()
813 ulaw2d_array (const unsigned char *buffer, int count, double *ptr, double normfact) in ulaw2d_array() argument
[all …]
/third_party/ffmpeg/libavcodec/
Dtiff_common.c72 static const char *auto_sep(int count, const char *sep, int i, int columns) in auto_sep() argument
79 return columns < count ? "\n" : ""; in auto_sep()
82 int ff_tadd_rational_metadata(int count, const char *name, const char *sep, in ff_tadd_rational_metadata() argument
90 if (count >= INT_MAX / sizeof(int64_t) || count <= 0) in ff_tadd_rational_metadata()
92 if (bytestream2_get_bytes_left(gb) < count * sizeof(int64_t)) in ff_tadd_rational_metadata()
95 av_bprint_init(&bp, 10 * count, AV_BPRINT_SIZE_UNLIMITED); in ff_tadd_rational_metadata()
97 for (i = 0; i < count; i++) { in ff_tadd_rational_metadata()
100 av_bprintf(&bp, "%s%7"PRId32":%-7"PRId32, auto_sep(count, sep, i, 4), nom, denom); in ff_tadd_rational_metadata()
116 int ff_tadd_long_metadata(int count, const char *name, const char *sep, in ff_tadd_long_metadata() argument
123 if (count >= INT_MAX / sizeof(int32_t) || count <= 0) in ff_tadd_long_metadata()
[all …]
/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dhb-ot-tag-table.hh1073 unsigned int *count /* IN/OUT */, in hb_ot_tags_from_complex_language() argument
1080 *count = 1; in hb_ot_tags_from_complex_language()
1087 *count = 1; in hb_ot_tags_from_complex_language()
1094 *count = 1; in hb_ot_tags_from_complex_language()
1101 *count = 1; in hb_ot_tags_from_complex_language()
1108 *count = 1; in hb_ot_tags_from_complex_language()
1115 *count = 1; in hb_ot_tags_from_complex_language()
1122 *count = 1; in hb_ot_tags_from_complex_language()
1129 *count = 1; in hb_ot_tags_from_complex_language()
1139 *count = 1; in hb_ot_tags_from_complex_language()
[all …]
/third_party/freetype/src/pshinter/
Dpshglob.c46 FT_UInt count = stdw->count; in psh_globals_scale_widths() local
52 if ( count > 0 ) in psh_globals_scale_widths()
58 count--; in psh_globals_scale_widths()
60 for ( ; count > 0; count--, width++ ) in psh_globals_scale_widths()
94 for ( n = 0; n < dimension->stdw.count; n++ )
146 FT_UInt count_top = top_table->count; in psh_blues_set_zones_0()
147 FT_UInt count_bot = bot_table->count; in psh_blues_set_zones_0()
156 FT_UInt count; in psh_blues_set_zones_0() local
169 count = count_bot; in psh_blues_set_zones_0()
178 count = count_top; in psh_blues_set_zones_0()
[all …]
/third_party/skia/third_party/externals/freetype/src/pshinter/
Dpshglob.c46 FT_UInt count = stdw->count; in psh_globals_scale_widths() local
52 if ( count > 0 ) in psh_globals_scale_widths()
58 count--; in psh_globals_scale_widths()
60 for ( ; count > 0; count--, width++ ) in psh_globals_scale_widths()
94 for ( n = 0; n < dimension->stdw.count; n++ )
146 FT_UInt count_top = top_table->count; in psh_blues_set_zones_0()
147 FT_UInt count_bot = bot_table->count; in psh_blues_set_zones_0()
156 FT_UInt count; in psh_blues_set_zones_0() local
169 count = count_bot; in psh_blues_set_zones_0()
178 count = count_top; in psh_blues_set_zones_0()
[all …]
/third_party/flutter/skia/third_party/externals/freetype/src/pshinter/
Dpshglob.c47 FT_UInt count = stdw->count; in psh_globals_scale_widths() local
53 if ( count > 0 ) in psh_globals_scale_widths()
59 count--; in psh_globals_scale_widths()
61 for ( ; count > 0; count--, width++ ) in psh_globals_scale_widths()
95 for ( n = 0; n < dimension->stdw.count; n++ )
147 FT_UInt count_top = top_table->count; in psh_blues_set_zones_0()
148 FT_UInt count_bot = bot_table->count; in psh_blues_set_zones_0()
157 FT_UInt count; in psh_blues_set_zones_0() local
170 count = count_bot; in psh_blues_set_zones_0()
179 count = count_top; in psh_blues_set_zones_0()
[all …]
/third_party/rust/crates/memchr/bench/src/memchr/
Dimp.rs6 Memchr::new(b1, haystack).count() in memchr1_count()
10 let mut count = 0; in memchr1_libc_count() localVariable
13 count += 1; in memchr1_libc_count()
16 count in memchr1_libc_count()
20 let mut count = 0; in fallback1_count() localVariable
23 count += 1; in fallback1_count()
26 count in fallback1_count()
30 let mut count = 0; in naive1_count() localVariable
33 count += 1; in naive1_count()
36 count in naive1_count()
[all …]
Dmod.rs29 search.byte1.count, in all()
37 search.byte1.count, in all()
45 search.byte1.count, in all()
53 search.byte1.count, in all()
62 search.byte1.count, in all()
70 search.byte1.count, in all()
78 search.byte1.count, in all()
86 search.byte1.count, in all()
99 search.byte1.count, in all()
112 search.byte1.count, in all()
[all …]
/third_party/node/deps/npm/node_modules/promise-retry/test/
Dtest.js9 var count = 0;
12 count += 1;
16 if (count <= 2) {
25 expect(count).to.be(3);
32 var count = 0;
35 count += 1;
36 expect(count).to.equal(number);
40 if (count <= 2) {
49 expect(count).to.be(3);
56 var count = 0;
[all …]
/third_party/ltp/utils/sctp/func_tests/
Dtest_1_to_1_sendmsg.c81 int count; in main() local
152 count = sendmsg(-1, &outmessage, flag); in main()
153 if (count != -1 || errno != EBADF) in main()
155 "descriptor count:%d, errno:%d", count, errno); in main()
165 count = sendmsg(fd, &outmessage, flag); in main()
166 if (count == -1) in main()
170 if (count != -1 || err_no != ENOTSOCK) in main()
172 "count:%d, errno:%d", count, err_no); in main()
177 count = sendmsg(lstn_sk, &outmessage, flag); in main()
178 if (count != -1 || errno != EPIPE) in main()
[all …]
/third_party/flutter/skia/tests/
DGrFinishedFlushTest.cpp19 int* count = (int*)ctx; in testing_finished_proc() local
20 *count += 1; in testing_finished_proc()
23 static void busy_wait_for_callback(int* count, int expectedValue, GrContext* ctx, in busy_wait_for_callback() argument
31 } while (*count != expectedValue && (end - begin) < std::chrono::seconds(1)); in busy_wait_for_callback()
32 if (*count != expectedValue) { in busy_wait_for_callback()
53 int count = 0; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
57 flushInfoFinishedProc.fFinishedContext = (void*)&count; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
60 REPORTER_ASSERT(reporter, count == 0 || count == 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
62 busy_wait_for_callback(&count, 1, ctx, reporter); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
74 REPORTER_ASSERT(reporter, count == 1 || count == 2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/third_party/harfbuzz/src/
Dhb-ot-tag-table.hh1606 unsigned int *count /* IN/OUT */, in hb_ot_tags_from_complex_language() argument
1613 *count = 1; in hb_ot_tags_from_complex_language()
1620 *count = 1; in hb_ot_tags_from_complex_language()
1627 *count = 1; in hb_ot_tags_from_complex_language()
1634 *count = 1; in hb_ot_tags_from_complex_language()
1641 *count = 1; in hb_ot_tags_from_complex_language()
1648 *count = 1; in hb_ot_tags_from_complex_language()
1655 *count = 1; in hb_ot_tags_from_complex_language()
1662 *count = 1; in hb_ot_tags_from_complex_language()
1669 *count = 1; in hb_ot_tags_from_complex_language()
[all …]
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-ot-tag-table.hh1627 unsigned int *count /* IN/OUT */, in hb_ot_tags_from_complex_language() argument
1634 *count = 1; in hb_ot_tags_from_complex_language()
1641 *count = 1; in hb_ot_tags_from_complex_language()
1648 *count = 1; in hb_ot_tags_from_complex_language()
1655 *count = 1; in hb_ot_tags_from_complex_language()
1662 *count = 1; in hb_ot_tags_from_complex_language()
1669 *count = 1; in hb_ot_tags_from_complex_language()
1676 *count = 1; in hb_ot_tags_from_complex_language()
1683 *count = 1; in hb_ot_tags_from_complex_language()
1690 *count = 1; in hb_ot_tags_from_complex_language()
[all …]
/third_party/protobuf/src/google/protobuf/io/
Dzero_copy_stream_impl_lite.cc79 void ArrayInputStream::BackUp(int count) { in BackUp() argument
82 GOOGLE_CHECK_LE(count, last_returned_size_); in BackUp()
83 GOOGLE_CHECK_GE(count, 0); in BackUp()
84 position_ -= count; in BackUp()
88 bool ArrayInputStream::Skip(int count) { in Skip() argument
89 GOOGLE_CHECK_GE(count, 0); in Skip()
91 if (count > size_ - position_) { in Skip()
95 position_ += count; in Skip()
126 void ArrayOutputStream::BackUp(int count) { in BackUp() argument
129 GOOGLE_CHECK_LE(count, last_returned_size_); in BackUp()
[all …]
/third_party/skia/tests/
DGrFinishedFlushTest.cpp20 int* count = (int*)ctx; in testing_finished_proc() local
21 *count += 1; in testing_finished_proc()
24 static void busy_wait_for_callback(int* count, int expectedValue, GrDirectContext* dContext, in busy_wait_for_callback() argument
32 } while (*count != expectedValue && (end - begin) < std::chrono::seconds(1)); in busy_wait_for_callback()
33 if (*count != expectedValue) { in busy_wait_for_callback()
53 int count = 0; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
57 flushInfoFinishedProc.fFinishedContext = (void*)&count; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
61 REPORTER_ASSERT(reporter, count == 0 || count == 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
63 busy_wait_for_callback(&count, 1, dContext, reporter); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
80 REPORTER_ASSERT(reporter, count == 1 || count == 2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/third_party/musl/libc-test/src/functionalext/time/
Dstrftime_ext.c47 size_t count = strftime(buffer, sizeof(buffer) - 1, "%c", timeptr); in strftime_0100() local
48 EXPECT_TRUE("strftime_0100", count > 0); in strftime_0100()
75 size_t count = strftime(buffer, sizeof(buffer) - 1, "%c %Z%z", timeptr); in strftime_0200() local
76 EXPECT_TRUE("strftime_0200", count > 0); in strftime_0200()
102 size_t count = strftime(buffer, sizeof(buffer) - 1, "%k", timeptr); in strftime_0300() local
103 EXPECT_TRUE("strftime_0300", count > 0); in strftime_0300()
128 size_t count = strftime(buffer, sizeof(buffer) - 1, "%k", timeptr); in strftime_0400() local
129 EXPECT_TRUE("strftime_0400", count > 0); in strftime_0400()
154 size_t count = strftime(buffer, sizeof(buffer) - 1, "%I", timeptr); in strftime_0500() local
155 EXPECT_TRUE("strftime_0500", count > 0); in strftime_0500()
[all …]
/third_party/ltp/testcases/kernel/syscalls/pwrite/
Dpwrite01.c46 int count, err_flg = 0; in check_file_contents() local
48 for (count = 0; count < NBUFS; count++) { in check_file_contents()
49 l_seek(fildes, count * K1, SEEK_SET, count * K1); in check_file_contents()
51 SAFE_READ(1, fildes, read_buf[count], K1); in check_file_contents()
53 if (memcmp(write_buf[count], read_buf[count], K1) != 0) { in check_file_contents()
54 tst_res(TFAIL, "read/write buffer[%d] data mismatch", count); in check_file_contents()
85 int count; in setup() local
87 for (count = 0; count < NBUFS; count++) { in setup()
88 write_buf[count] = SAFE_MALLOC(K1); in setup()
89 read_buf[count] = SAFE_MALLOC(K1); in setup()
[all …]

12345678910>>...292