Home
last modified time | relevance | path

Searched refs:ARRAY_LENGTH (Results 1 – 25 of 243) sorted by relevance

12345678910

/third_party/qrcodegen/c/
Dqrcodegen-test.c38 #define ARRAY_LENGTH(name) (sizeof(name) / sizeof(name[0])) macro
206 for (size_t i = 0; i < ARRAY_LENGTH(cases); i++) { in testGetNumDataCodewords()
230 for (size_t i = 0; i < ARRAY_LENGTH(cases); i++) { in testGetNumRawDataModules()
275 uint8_t remainder[ARRAY_LENGTH(generator)]; in testReedSolomonComputeRemainder()
276 reedSolomonComputeDivisor(ARRAY_LENGTH(generator), generator); in testReedSolomonComputeRemainder()
277 reedSolomonComputeRemainder(data, 0, generator, ARRAY_LENGTH(generator), remainder); in testReedSolomonComputeRemainder()
286 uint8_t remainder[ARRAY_LENGTH(generator)]; in testReedSolomonComputeRemainder()
287 reedSolomonComputeDivisor(ARRAY_LENGTH(generator), generator); in testReedSolomonComputeRemainder()
288 …reedSolomonComputeRemainder(data, ARRAY_LENGTH(data), generator, ARRAY_LENGTH(generator), remainde… in testReedSolomonComputeRemainder()
298 uint8_t remainder[ARRAY_LENGTH(generator)]; in testReedSolomonComputeRemainder()
[all …]
/third_party/skia/third_party/externals/harfbuzz/src/
Dtest-number.cc102 assert (ARRAY_LENGTH (str) == 4); in main()
103 const char *end = str + ARRAY_LENGTH (str); in main()
115 assert (ARRAY_LENGTH (str) == 5); in main()
116 const char *end = str + ARRAY_LENGTH (str); in main()
128 assert (ARRAY_LENGTH (str) == 5); in main()
129 const char *end = str + ARRAY_LENGTH (str); in main()
141 const char *end = str + ARRAY_LENGTH (str); in main()
153 const char *end = str + ARRAY_LENGTH (str) - 1; in main()
165 const char *end = str + ARRAY_LENGTH (str) - 1; in main()
177 const char *end = str + ARRAY_LENGTH (str) - 1; in main()
[all …]
Dhb-ucd.cc141 ARRAY_LENGTH (_hb_ucd_dm2_u32_map), in hb_ucd_compose()
152 ARRAY_LENGTH (_hb_ucd_dm2_u64_map), in hb_ucd_compose()
176 if (i < ARRAY_LENGTH (_hb_ucd_dm1_p0_map) + ARRAY_LENGTH (_hb_ucd_dm1_p2_map)) in hb_ucd_decompose()
178 if (i < ARRAY_LENGTH (_hb_ucd_dm1_p0_map)) in hb_ucd_decompose()
182 i -= ARRAY_LENGTH (_hb_ucd_dm1_p0_map); in hb_ucd_decompose()
188 i -= ARRAY_LENGTH (_hb_ucd_dm1_p0_map) + ARRAY_LENGTH (_hb_ucd_dm1_p2_map); in hb_ucd_decompose()
190 if (i < ARRAY_LENGTH (_hb_ucd_dm2_u32_map)) in hb_ucd_decompose()
197 i -= ARRAY_LENGTH (_hb_ucd_dm2_u32_map); in hb_ucd_decompose()
Dhb-buffer-serialize.cc148 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "%u", info[i].codepoint)); in _hb_buffer_serialize_glyphs_json()
151 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"cl\":%u", info[i].cluster)); in _hb_buffer_serialize_glyphs_json()
156 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"dx\":%d,\"dy\":%d", in _hb_buffer_serialize_glyphs_json()
159 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"ax\":%d,\"ay\":%d", in _hb_buffer_serialize_glyphs_json()
166 …p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"fl\":%u", info[i].mask & HB_GLYPH_FLA… in _hb_buffer_serialize_glyphs_json()
173 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"xb\":%d,\"yb\":%d", in _hb_buffer_serialize_glyphs_json()
175 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"w\":%d,\"h\":%d", in _hb_buffer_serialize_glyphs_json()
230 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "%u", info[i].codepoint)); in _hb_buffer_serialize_unicode_json()
233 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"cl\":%u", info[i].cluster)); in _hb_buffer_serialize_unicode_json()
292 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "%u", info[i].codepoint)); in _hb_buffer_serialize_glyphs_text()
[all …]
Dhb-common.cc175 for (unsigned int i = 0; i < ARRAY_LENGTH (direction_strings); i++) in hb_direction_from_string()
196 < ARRAY_LENGTH (direction_strings))) in hb_direction_to_string()
960 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->start)); in hb_feature_to_string()
964 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->end)); in hb_feature_to_string()
971 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->value)); in hb_feature_to_string()
973 assert (len < ARRAY_LENGTH (s)); in hb_feature_to_string()
1067 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%g", (double) variation->value)); in hb_variation_to_string()
1069 assert (len < ARRAY_LENGTH (s)); in hb_variation_to_string()
Dhb-ot-name-language-static.hh445 ARRAY_LENGTH (hb_ms_language_map)); in _hb_ot_name_language_for_ms_code()
453 ARRAY_LENGTH (hb_mac_language_map)); in _hb_ot_name_language_for_mac_code()
/third_party/harfbuzz/src/
Dtest-number.cc102 assert (ARRAY_LENGTH (str) == 4); in main()
103 const char *end = str + ARRAY_LENGTH (str); in main()
115 assert (ARRAY_LENGTH (str) == 5); in main()
116 const char *end = str + ARRAY_LENGTH (str); in main()
128 assert (ARRAY_LENGTH (str) == 5); in main()
129 const char *end = str + ARRAY_LENGTH (str); in main()
141 const char *end = str + ARRAY_LENGTH (str); in main()
153 const char *end = str + ARRAY_LENGTH (str) - 1; in main()
165 const char *end = str + ARRAY_LENGTH (str) - 1; in main()
177 const char *end = str + ARRAY_LENGTH (str) - 1; in main()
[all …]
Dhb-ucd.cc141 ARRAY_LENGTH (_hb_ucd_dm2_u32_map), in hb_ucd_compose()
152 ARRAY_LENGTH (_hb_ucd_dm2_u64_map), in hb_ucd_compose()
176 if (i < ARRAY_LENGTH (_hb_ucd_dm1_p0_map) + ARRAY_LENGTH (_hb_ucd_dm1_p2_map)) in hb_ucd_decompose()
178 if (i < ARRAY_LENGTH (_hb_ucd_dm1_p0_map)) in hb_ucd_decompose()
182 i -= ARRAY_LENGTH (_hb_ucd_dm1_p0_map); in hb_ucd_decompose()
188 i -= ARRAY_LENGTH (_hb_ucd_dm1_p0_map) + ARRAY_LENGTH (_hb_ucd_dm1_p2_map); in hb_ucd_decompose()
190 if (i < ARRAY_LENGTH (_hb_ucd_dm2_u32_map)) in hb_ucd_decompose()
197 i -= ARRAY_LENGTH (_hb_ucd_dm2_u32_map); in hb_ucd_decompose()
Dhb-buffer-serialize.cc148 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "%u", info[i].codepoint)); in _hb_buffer_serialize_glyphs_json()
151 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"cl\":%u", info[i].cluster)); in _hb_buffer_serialize_glyphs_json()
156 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"dx\":%d,\"dy\":%d", in _hb_buffer_serialize_glyphs_json()
159 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"ax\":%d,\"ay\":%d", in _hb_buffer_serialize_glyphs_json()
166 …p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"fl\":%u", info[i].mask & HB_GLYPH_FLA… in _hb_buffer_serialize_glyphs_json()
173 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"xb\":%d,\"yb\":%d", in _hb_buffer_serialize_glyphs_json()
175 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"w\":%d,\"h\":%d", in _hb_buffer_serialize_glyphs_json()
230 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "%u", info[i].codepoint)); in _hb_buffer_serialize_unicode_json()
233 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"cl\":%u", info[i].cluster)); in _hb_buffer_serialize_unicode_json()
292 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "%u", info[i].codepoint)); in _hb_buffer_serialize_glyphs_text()
[all …]
Dhb-common.cc175 for (unsigned int i = 0; i < ARRAY_LENGTH (direction_strings); i++) in hb_direction_from_string()
196 < ARRAY_LENGTH (direction_strings))) in hb_direction_to_string()
963 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->start)); in hb_feature_to_string()
967 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->end)); in hb_feature_to_string()
974 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->value)); in hb_feature_to_string()
976 assert (len < ARRAY_LENGTH (s)); in hb_feature_to_string()
1070 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%g", (double) variation->value)); in hb_variation_to_string()
1072 assert (len < ARRAY_LENGTH (s)); in hb_variation_to_string()
/third_party/wayland_standard/tests/
Dlist-test.c93 assert(i < ARRAY_LENGTH(reference)); in TEST()
97 assert(i == ARRAY_LENGTH(reference)); in TEST()
101 assert(i < ARRAY_LENGTH(reference)); in TEST()
102 assert(e->i == reference[ARRAY_LENGTH(reference) - i - 1]); in TEST()
105 assert(i == ARRAY_LENGTH(reference)); in TEST()
143 assert(validate_list(&list, reference1, ARRAY_LENGTH(reference1))); in TEST()
146 assert(validate_list(&list, reference2, ARRAY_LENGTH(reference2))); in TEST()
165 assert(validate_list(&list, reference1, ARRAY_LENGTH(reference1))); in TEST()
175 assert(validate_list(&other, reference2, ARRAY_LENGTH(reference2))); in TEST()
178 assert(validate_list(&list, reference3, ARRAY_LENGTH(reference3))); in TEST()
/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dhb-buffer-serialize.cc145 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "%u", info[i].codepoint)); in _hb_buffer_serialize_glyphs_json()
148 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"cl\":%u", info[i].cluster)); in _hb_buffer_serialize_glyphs_json()
153 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"dx\":%d,\"dy\":%d", in _hb_buffer_serialize_glyphs_json()
156 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"ax\":%d,\"ay\":%d", in _hb_buffer_serialize_glyphs_json()
163 …p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"fl\":%u", info[i].mask & HB_GLYPH_FLA… in _hb_buffer_serialize_glyphs_json()
170 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"xb\":%d,\"yb\":%d", in _hb_buffer_serialize_glyphs_json()
172 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"w\":%d,\"h\":%d", in _hb_buffer_serialize_glyphs_json()
231 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "%u", info[i].codepoint)); in _hb_buffer_serialize_glyphs_text()
234 p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "=%u", info[i].cluster)); in _hb_buffer_serialize_glyphs_text()
240 …p += hb_max (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "@%d,%d", x+pos[i].x_offset, y+pos[i].y_o… in _hb_buffer_serialize_glyphs_text()
[all …]
Dhb-icu.cc189 HB_ICU_STMT (U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err)); in hb_icu_unicode_compose()
191 HB_ICU_STMT (U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err)); in hb_icu_unicode_compose()
195 …len = unorm2_normalize (unorm2_getNFCInstance (&icu_err), utf16, len, normalized, ARRAY_LENGTH (no… in hb_icu_unicode_compose()
222 ARRAY_LENGTH (decomposed), &icu_err); in hb_icu_unicode_decompose()
253 HB_ICU_STMT (U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), ab, err)); in hb_icu_unicode_decompose()
257 …len = unorm2_normalize (unorm2_getNFDInstance (&icu_err), utf16, len, normalized, ARRAY_LENGTH (no… in hb_icu_unicode_decompose()
277 …unorm2_normalize (unorm2_getNFCInstance (&icu_err), normalized, len, recomposed, ARRAY_LENGTH (rec… in hb_icu_unicode_decompose()
293 …alize (unorm2_getNFCInstance (&icu_err), normalized, len, recomposed, ARRAY_LENGTH (recomposed), &… in hb_icu_unicode_decompose()
Dhb-common.cc168 for (unsigned int i = 0; i < ARRAY_LENGTH (direction_strings); i++) in hb_direction_from_string()
189 < ARRAY_LENGTH (direction_strings))) in hb_direction_to_string()
723 unsigned int len = hb_min (ARRAY_LENGTH (buf) - 1, (unsigned int) (end - *pp)); in parse_uint()
747 unsigned int len = hb_min (ARRAY_LENGTH (buf) - 1, (unsigned int) (end - *pp)); in parse_uint32()
828 unsigned int len = hb_min (ARRAY_LENGTH (buf) - 1, (unsigned int) (end - *pp)); in parse_float()
1074 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->start)); in hb_feature_to_string()
1078 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->end)); in hb_feature_to_string()
1085 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->value)); in hb_feature_to_string()
1087 assert (len < ARRAY_LENGTH (s)); in hb_feature_to_string()
1155 len += hb_max (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%g", (double) variation->value)); in hb_variation_to_string()
[all …]
/third_party/node/test/node-api/test_threadsafe_function/
Dtest.js13 })(binding.ARRAY_LENGTH);
87 if (callCount === binding.ARRAY_LENGTH) {
102 quitAfter: binding.ARRAY_LENGTH
113 quitAfter: binding.ARRAY_LENGTH
122 quitAfter: binding.ARRAY_LENGTH
131 quitAfter: binding.ARRAY_LENGTH
218 maxQueueSize: binding.ARRAY_LENGTH >>> 1,
219 quitAfter: binding.ARRAY_LENGTH
/third_party/libevdev/libevdev/
Dlibevdev-names.c85 entry = lookup_name(ev_names, ARRAY_LENGTH(ev_names), &lookup); in libevdev_event_type_from_name_n()
106 for (i = 0; i < ARRAY_LENGTH(ev_names); ++i) { in type_from_prefix()
141 entry = lookup_name(code_names, ARRAY_LENGTH(code_names), &lookup); in libevdev_event_code_from_name_n()
164 entry = lookup_name(tool_type_names, ARRAY_LENGTH(tool_type_names), &lookup); in libevdev_event_value_from_name_n()
184 entry = lookup_name(prop_names, ARRAY_LENGTH(prop_names), &lookup); in libevdev_property_from_name_n()
205 entry = lookup_name(code_names, ARRAY_LENGTH(code_names), &lookup); in libevdev_event_code_from_code_name_n()
227 entry = lookup_name(code_names, ARRAY_LENGTH(code_names), &lookup); in libevdev_event_type_from_code_name_n()
/third_party/pixman/test/
Dpdf-op-test.c41 for (o = 0; o < ARRAY_LENGTH (pdf_ops); ++o) in main()
45 for (s = 0; s < ARRAY_LENGTH (pixels); ++s) in main()
52 for (m = -1; m < ARRAY_LENGTH (pixels); ++m) in main()
61 for (d = 0; d < ARRAY_LENGTH (pixels); ++d) in main()
Dgradient-crash-test.c109 num_stops = ARRAY_LENGTH (onestop); in main()
114 num_stops = ARRAY_LENGTH (subsetstops); in main()
119 num_stops = ARRAY_LENGTH (stops01); in main()
124 for (p = 0; p < ARRAY_LENGTH (point_pairs); ++p) in main()
139 for (k = 0; k < ARRAY_LENGTH (transformations); ++k) in main()
Drotate-test.c46 (formats[prng_rand_n (ARRAY_LENGTH (formats))])
49 (ops[prng_rand_n (ARRAY_LENGTH (ops))])
52 (&(transforms[prng_rand_n (ARRAY_LENGTH (transforms))]))
Dalphamap.c324 for (i = 0; i < ARRAY_LENGTH (formats); ++i) in main()
326 for (j = 0; j < ARRAY_LENGTH (formats); ++j) in main()
328 for (a = 0; a < ARRAY_LENGTH (alpha_formats); ++a) in main()
330 for (b = 0; b < ARRAY_LENGTH (alpha_formats); ++b) in main()
332 for (x = 0; x < ARRAY_LENGTH (origins); ++x) in main()
334 for (y = 0; y < ARRAY_LENGTH (origins); ++y) in main()
/third_party/weston/libweston/backend-drm/
Dfb.c85 for (i = 0; i < ARRAY_LENGTH(mods) && fb->handles[i]; i++) in drm_fb_addfb()
273 static_assert(ARRAY_LENGTH(import_mod.fds) == in drm_fb_get_from_dmabuf()
274 ARRAY_LENGTH(dmabuf->attributes.fd), in drm_fb_get_from_dmabuf()
280 static_assert(ARRAY_LENGTH(import_mod.strides) == in drm_fb_get_from_dmabuf()
281 ARRAY_LENGTH(dmabuf->attributes.stride), in drm_fb_get_from_dmabuf()
289 static_assert(ARRAY_LENGTH(import_mod.offsets) == in drm_fb_get_from_dmabuf()
290 ARRAY_LENGTH(dmabuf->attributes.offset), in drm_fb_get_from_dmabuf()
327 static_assert(ARRAY_LENGTH(fb->strides) == in drm_fb_get_from_dmabuf()
328 ARRAY_LENGTH(dmabuf->attributes.stride), in drm_fb_get_from_dmabuf()
333 static_assert(ARRAY_LENGTH(fb->offsets) == in drm_fb_get_from_dmabuf()
[all …]
/third_party/weston/clients/
Divi-shell-user-interface.c732 { bottom_left_corners, ARRAY_LENGTH(bottom_left_corners) },
733 { bottom_right_corners, ARRAY_LENGTH(bottom_right_corners) },
734 { bottom_sides, ARRAY_LENGTH(bottom_sides) },
735 { grabbings, ARRAY_LENGTH(grabbings) },
736 { left_ptrs, ARRAY_LENGTH(left_ptrs) },
737 { left_sides, ARRAY_LENGTH(left_sides) },
738 { right_sides, ARRAY_LENGTH(right_sides) },
739 { top_left_corners, ARRAY_LENGTH(top_left_corners) },
740 { top_right_corners, ARRAY_LENGTH(top_right_corners) },
741 { top_sides, ARRAY_LENGTH(top_sides) },
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dtstnorm.cpp28 #define ARRAY_LENGTH(array) UPRV_LENGTHOF(array) macro
173 for (i = 0; i < ARRAY_LENGTH(canonTests); i++) { in TestPrevious()
179 for (i = 0; i < ARRAY_LENGTH(canonTests); i++) { in TestPrevious()
189 iterateTest(norm, canonTests, ARRAY_LENGTH(canonTests), 1); in TestDecomp()
190 staticTest(UNORM_NFD, 0, canonTests, ARRAY_LENGTH(canonTests), 1); in TestDecomp()
197 iterateTest(norm, compatTests, ARRAY_LENGTH(compatTests), 1); in TestCompatDecomp()
200 compatTests, ARRAY_LENGTH(compatTests), 1); in TestCompatDecomp()
207 iterateTest(norm, canonTests, ARRAY_LENGTH(canonTests), 2); in TestCanonCompose()
210 ARRAY_LENGTH(canonTests), 2); in TestCanonCompose()
217 iterateTest(norm, compatTests, ARRAY_LENGTH(compatTests), 2); in TestCompatCompose()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dnumber_longnames.cpp26 constexpr int32_t ARRAY_LENGTH = StandardPlural::Form::COUNT + 2; variable
64 for (int32_t i = 0; i < ARRAY_LENGTH; i++) { in PluralTableSink()
181 UnicodeString simpleFormats[ARRAY_LENGTH]; in forMeasureUnit()
198 UnicodeString primaryData[ARRAY_LENGTH]; in forCompoundUnit()
201 UnicodeString secondaryData[ARRAY_LENGTH]; in forCompoundUnit()
237 UnicodeString simpleFormats[ARRAY_LENGTH]; in forCurrencyLongNames()
/third_party/weston/shared/
Dhelpers.h40 #ifndef ARRAY_LENGTH
41 #define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0]) macro

12345678910