Home
last modified time | relevance | path

Searched refs:ARRAY_LEN (Results 1 - 25 of 107) sorted by relevance

12345

/third_party/libsnd/src/
H A Dtest_ima_oki_adpcm.c64 for (i = 0 ; i < ARRAY_LEN (test_codes) ; i++) in test_oki_adpcm()
76 for (i = 0 ; i < ARRAY_LEN (test_pcm) - 1 ; i += 2) in test_oki_adpcm()
94 if (ARRAY_LEN (adpcm.pcm) < ARRAY_LEN (test_pcm)) in test_oki_adpcm_block()
95 { printf ("\n\nLine %d : ARRAY_LEN (adpcm->pcm) > ARRAY_LEN (test_pcm) (%d > %d).\n\n", __LINE__, ARRAY_LEN (adpcm.pcm), ARRAY_LEN (test_pcm)) ; in test_oki_adpcm_block()
99 if (ARRAY_LEN (adpcm.codes) < ARRAY_LEN (test_code in test_oki_adpcm_block()
[all...]
H A Dima_oki_adpcm.c59 { state->max_step_index = ARRAY_LEN (ima_steps) - 1 ; in ima_oki_adpcm_init()
64 { state->max_step_index = ARRAY_LEN (oki_steps) - 1 ; in ima_oki_adpcm_init()
198 for (i = 0 ; i < ARRAY_LEN (test_codes) ; i++) in test_oki_adpcm()
211 for (i = 0 ; i < ARRAY_LEN (test_pcm) ; i += j) in test_oki_adpcm()
229 if (ARRAY_LEN (adpcm.pcm) < ARRAY_LEN (test_pcm)) in test_oki_adpcm_block()
230 { printf ("\n\nLine %d : ARRAY_LEN (adpcm->pcm) > ARRAY_LEN (test_pcm) (%d > %d).\n\n", __LINE__, ARRAY_LEN (adpcm.pcm), ARRAY_LEN (test_pc in test_oki_adpcm_block()
[all...]
H A Dtest_file_io.c135 make_data (data_out, ARRAY_LEN (data_out), 1) ; in file_read_write_test()
136 test_write_or_die (psf, data_out, sizeof (data_out [0]), ARRAY_LEN (data_out), sizeof (data_out), __LINE__) ; in file_read_write_test()
145 make_data (data_out, ARRAY_LEN (data_out), 2) ; in file_read_write_test()
146 test_write_or_die (psf, data_out, ARRAY_LEN (data_out), sizeof (data_out [0]), 2 * sizeof (data_out), __LINE__) ; in file_read_write_test()
167 make_data (data_out, ARRAY_LEN (data_out), 1) ; in file_read_write_test()
169 test_equal_or_die (data_out, data_in, ARRAY_LEN (data_out), __LINE__) ; in file_read_write_test()
171 make_data (data_out, ARRAY_LEN (data_out), 2) ; in file_read_write_test()
172 test_read_or_die (psf, data_in, sizeof (data_in [0]), ARRAY_LEN (data_in), 2 * sizeof (data_in), __LINE__) ; in file_read_write_test()
173 test_equal_or_die (data_out, data_in, ARRAY_LEN (data_out), __LINE__) ; in file_read_write_test()
196 make_data (data_out, ARRAY_LEN (data_ou in file_read_write_test()
[all...]
H A Dchanmap.c214 { { zero_chan, ARRAY_LEN (zero_chan) },
215 { one_chan, ARRAY_LEN (one_chan) },
216 { two_chan, ARRAY_LEN (two_chan) },
217 { three_chan, ARRAY_LEN (three_chan) },
218 { four_chan, ARRAY_LEN (four_chan) },
219 { five_chan, ARRAY_LEN (five_chan) },
220 { six_chan, ARRAY_LEN (six_chan) },
221 { seven_chan, ARRAY_LEN (seven_chan) },
222 { eight_chan, ARRAY_LEN (eight_chan) }
231 if (channels < 1 || channels >= ARRAY_LEN (ma in aiff_caf_find_channel_layout_tag()
[all...]
H A Dtest_log_printf.c96 for (k = 0 ; k < ARRAY_LEN (int_values) ; k++) in test_log_printf()
99 for (k = 0 ; k < ARRAY_LEN (int_values) ; k++) in test_log_printf()
102 for (k = 0 ; k < ARRAY_LEN (int_values) ; k++) in test_log_printf()
106 for (k = 0 ; k < ARRAY_LEN (int_values) ; k++) in test_log_printf()
110 for (k = 0 ; k < ARRAY_LEN (int_values) ; k++) in test_log_printf()
H A Dtest_nms_adpcm.c255 for (i = 0 ; i * NMS_BLOCK_SHORTS_32 < ARRAY_LEN (test_codes_32) ; i ++) in test_nms_adpcm_32()
274 for (i = 0 ; i * NMS_BLOCK_SHORTS_32 < ARRAY_LEN (test_codes_32) ; i ++) in test_nms_adpcm_32()
307 for (i = 0 ; i * NMS_BLOCK_SHORTS_24 < ARRAY_LEN (test_codes_24) ; i ++) in test_nms_adpcm_24()
327 for (i = 0 ; i * NMS_BLOCK_SHORTS_24 < ARRAY_LEN (test_codes_24) ; i ++) in test_nms_adpcm_24()
357 for (i = 0 ; i * NMS_BLOCK_SHORTS_16 < ARRAY_LEN (test_codes_16) ; i ++) in test_nms_adpcm_16()
376 for (i = 0 ; i * NMS_BLOCK_SHORTS_16 < ARRAY_LEN (test_codes_16) ; i ++) in test_nms_adpcm_16()
H A Dxi.c252 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in dpcm_seek()
260 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in dpcm_seek()
514 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in dpcm_read_dsc2s()
540 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in dpcm_read_dsc2i()
569 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in dpcm_read_dsc2f()
598 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in dpcm_read_dsc2d()
627 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in dpcm_read_dles2s()
653 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in dpcm_read_dles2i()
682 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in dpcm_read_dles2f()
711 bufferlen = ARRAY_LEN (ubu in dpcm_read_dles2d()
[all...]
H A Dpcm.c667 bufferlen = ARRAY_LEN (ubuf.scbuf) ; in pcm_read_sc2s()
689 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in pcm_read_uc2s()
779 bufferlen = ARRAY_LEN (ubuf.ibuf) ; in pcm_read_bei2s()
801 bufferlen = ARRAY_LEN (ubuf.ibuf) ; in pcm_read_lei2s()
826 bufferlen = ARRAY_LEN (ubuf.scbuf) ; in pcm_read_sc2i()
848 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in pcm_read_uc2i()
870 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in pcm_read_bes2i()
892 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in pcm_read_les2i()
988 bufferlen = ARRAY_LEN (ubuf.scbuf) ; in pcm_read_sc2f()
1013 bufferlen = ARRAY_LEN (ubu in pcm_read_uc2f()
[all...]
H A Dfloat32.c520 bufferlen = ARRAY_LEN (ubuf.fbuf) ; in host_read_f2s()
551 bufferlen = ARRAY_LEN (ubuf.fbuf) ; in host_read_f2i()
581 bufferlen = ARRAY_LEN (ubuf.fbuf) ; in host_read_f()
605 bufferlen = ARRAY_LEN (ubuf.fbuf) ; in host_read_f2d()
635 bufferlen = ARRAY_LEN (ubuf.fbuf) ; in host_write_s2f()
666 bufferlen = ARRAY_LEN (ubuf.fbuf) ; in host_write_i2f()
701 bufferlen = ARRAY_LEN (ubuf.fbuf) ; in host_write_f()
725 bufferlen = ARRAY_LEN (ubuf.fbuf) ; in host_write_d2f()
759 bufferlen = ARRAY_LEN (ubuf.fbuf) ; in replace_read_f2s()
789 bufferlen = ARRAY_LEN (ubu in replace_read_f2i()
[all...]
H A Dmpeg_decode.c111 const sf_count_t buflen = ARRAY_LEN (ubuf.fbuf) ; in mpeg_dec_read_s()
130 const sf_count_t buflen = ARRAY_LEN (ubuf.fbuf) ; in mpeg_dec_read_i()
172 const sf_count_t buflen = ARRAY_LEN (ubuf.fbuf) ; in mpeg_dec_read_d()
303 if (strcpy_inbounded (buf, ARRAY_LEN (tags->title), tags->title)) in mpeg_decoder_read_strings_id3v1()
308 if (strcpy_inbounded (buf, ARRAY_LEN (tags->artist), tags->artist)) in mpeg_decoder_read_strings_id3v1()
313 if (strcpy_inbounded (buf, ARRAY_LEN (tags->album), tags->album)) in mpeg_decoder_read_strings_id3v1()
318 if (strcpy_inbounded (buf, ARRAY_LEN (tags->year), tags->year)) in mpeg_decoder_read_strings_id3v1()
323 if (strcpy_inbounded (buf, ARRAY_LEN (tags->comment), tags->comment)) in mpeg_decoder_read_strings_id3v1()
330 { snprintf (buf, ARRAY_LEN (buf), "%hhu", (unsigned char) tags->comment [29]) ; in mpeg_decoder_read_strings_id3v1()
/third_party/libsnd/tests/
H A Dcpp_test.cc88 file.write (sbuffer, ARRAY_LEN (sbuffer)) ; in create_file()
89 file.write (ibuffer, ARRAY_LEN (ibuffer)) ; in create_file()
90 file.write (fbuffer, ARRAY_LEN (fbuffer)) ; in create_file()
91 file.write (dbuffer, ARRAY_LEN (dbuffer)) ; in create_file()
94 file.writef (sbuffer, ARRAY_LEN (sbuffer) / file.channels ()) ; in create_file()
95 file.writef (ibuffer, ARRAY_LEN (ibuffer) / file.channels ()) ; in create_file()
96 file.writef (fbuffer, ARRAY_LEN (fbuffer) / file.channels ()) ; in create_file()
97 file.writef (dbuffer, ARRAY_LEN (dbuffer) / file.channels ()) ; in create_file()
162 if (file.frames () != ARRAY_LEN (sbuffer) * 4) in read_file()
164 (long) file.frames (), (long) ARRAY_LEN (sbuffe in read_file()
[all...]
H A Dogg_opus_test.c61 gen_windowed_sine_float (data_out.f, ARRAY_LEN (data_out.f), 1.0 * 0x7F00) ; in ogg_opus_short_test()
64 for (k = 0 ; k < ARRAY_LEN (data_out.s) ; k++) in ogg_opus_short_test()
76 test_write_short_or_die (file, 0, data_out.s, ARRAY_LEN (data_out.s), __LINE__) ; in ogg_opus_short_test()
83 test_read_short_or_die (file, 0, data_in.s, ARRAY_LEN (data_in.s), __LINE__) ; in ogg_opus_short_test()
94 test_read_short_or_die (file, 0, seek_data, ARRAY_LEN (seek_data), __LINE__) ; in ogg_opus_short_test()
95 compare_short_or_die (seek_data, data_in.s + 10, ARRAY_LEN (seek_data), __LINE__) ; in ogg_opus_short_test()
119 gen_windowed_sine_float (data_out.f, ARRAY_LEN (data_out.f), 1.0 * 0x7FFF0000) ; in ogg_opus_int_test()
122 for (k = 0 ; k < ARRAY_LEN (data_out.i) ; k++) in ogg_opus_int_test()
134 test_write_int_or_die (file, 0, data_out.i, ARRAY_LEN (data_out.i), __LINE__) ; in ogg_opus_int_test()
141 test_read_int_or_die (file, 0, data_in.i, ARRAY_LEN (data_i in ogg_opus_int_test()
[all...]
H A Dmpeg_test.c62 gen_windowed_sine_float (data_out.f, ARRAY_LEN (data_out.f), 1.0 * 0x7F00) ; in mpeg_short_test()
65 for (k = 0 ; k < ARRAY_LEN (data_out.s) ; k++) in mpeg_short_test()
77 test_write_short_or_die (file, 0, data_out.s, ARRAY_LEN (data_out.s), __LINE__) ; in mpeg_short_test()
84 test_read_short_or_die (file, 0, data_in.s, ARRAY_LEN (data_in.s), __LINE__) ; in mpeg_short_test()
95 test_read_short_or_die (file, 0, seek_data, ARRAY_LEN (seek_data), __LINE__) ; in mpeg_short_test()
96 compare_short_or_die (seek_data, data_in.s + 10, ARRAY_LEN (seek_data), __LINE__) ; in mpeg_short_test()
120 gen_windowed_sine_float (data_out.f, ARRAY_LEN (data_out.f), 1.0 * 0x7FFF0000) ; in mpeg_int_test()
123 for (k = 0 ; k < ARRAY_LEN (data_out.i) ; k++) in mpeg_int_test()
135 test_write_int_or_die (file, 0, data_out.i, ARRAY_LEN (data_out.i), __LINE__) ; in mpeg_int_test()
142 test_read_int_or_die (file, 0, data_in.i, ARRAY_LEN (data_i in mpeg_int_test()
[all...]
H A Dogg_test.c61 gen_windowed_sine_float (data_out.f, ARRAY_LEN (data_out.f), 1.0 * 0x7F00) ; in ogg_short_test()
64 for (k = 0 ; k < ARRAY_LEN (data_out.s) ; k++) in ogg_short_test()
76 test_write_short_or_die (file, 0, data_out.s, ARRAY_LEN (data_out.s), __LINE__) ; in ogg_short_test()
83 test_read_short_or_die (file, 0, data_in.s, ARRAY_LEN (data_in.s), __LINE__) ; in ogg_short_test()
94 test_read_short_or_die (file, 0, seek_data, ARRAY_LEN (seek_data), __LINE__) ; in ogg_short_test()
95 compare_short_or_die (seek_data, data_in.s + 10, ARRAY_LEN (seek_data), __LINE__) ; in ogg_short_test()
119 gen_windowed_sine_float (data_out.f, ARRAY_LEN (data_out.f), 1.0 * 0x7FFF0000) ; in ogg_int_test()
122 for (k = 0 ; k < ARRAY_LEN (data_out.i) ; k++) in ogg_int_test()
134 test_write_int_or_die (file, 0, data_out.i, ARRAY_LEN (data_out.i), __LINE__) ; in ogg_int_test()
141 test_read_int_or_die (file, 0, data_in.i, ARRAY_LEN (data_i in ogg_int_test()
[all...]
H A Dvirtual_io_test.c198 gen_short_data (data, ARRAY_LEN (data), 0) ; in vio_test()
199 sf_write_short (file, data, ARRAY_LEN (data)) ; in vio_test()
201 gen_short_data (data, ARRAY_LEN (data), 1) ; in vio_test()
202 sf_write_short (file, data, ARRAY_LEN (data)) ; in vio_test()
204 gen_short_data (data, ARRAY_LEN (data), 2) ; in vio_test()
205 sf_write_short (file, data, ARRAY_LEN (data)) ; in vio_test()
224 sf_read_short (file, data, ARRAY_LEN (data)) ; in vio_test()
225 check_short_data (data, ARRAY_LEN (data), 0, __LINE__) ; in vio_test()
227 sf_read_short (file, data, ARRAY_LEN (data)) ; in vio_test()
228 check_short_data (data, ARRAY_LEN (dat in vio_test()
[all...]
H A Dcompression_size_test.c63 gen_windowed_sine_float (float_data, ARRAY_LEN (float_data), 1.0) ; in vorbis_test()
93 test_write_float_or_die (file, 0, float_data, ARRAY_LEN (float_data), __LINE__) ; in vorbis_test()
101 test_read_float_or_die (file, 0, float_data, ARRAY_LEN (float_data), __LINE__) ; in vorbis_test()
104 for (k = 0 ; k < ARRAY_LEN (float_data) ; k ++) in vorbis_test()
155 { gen_lowpass_signal_float (data_out, ARRAY_LEN (data_out)) ; in compression_size_test()
156 test_write_float_or_die (q3_file, 0, data_out, ARRAY_LEN (data_out), __LINE__) ; in compression_size_test()
157 test_write_float_or_die (q6_file, 0, data_out, ARRAY_LEN (data_out), __LINE__) ; in compression_size_test()
H A Dchecksum_test.c72 gen_windowed_sine_float (orig, ARRAY_LEN (orig), 0.9) ; in main()
74 for (k = 0 ; k < ARRAY_LEN (checksum_orig) ; k++) in main()
96 test_write_float_or_die (file, 0, orig, ARRAY_LEN (orig), __LINE__) ; in checksum_test()
111 test_read_short_or_die (file, 0, data, ARRAY_LEN (data), __LINE__) ; in checksum_test()
119 test_write_short_or_die (file, 0, data, ARRAY_LEN (data), __LINE__) ; in checksum_test()
H A Dmisc_test.c404 frames = ARRAY_LEN (buffer) / sfinfo.channels ; in wavex_amb_test()
440 sfinfo.frames = ARRAY_LEN (output) ; in rf64_downgrade_test()
449 test_write_short_or_die (file, 0, output, ARRAY_LEN (output), __LINE__) ; in rf64_downgrade_test()
462 exit_if_true (sfinfo.frames != ARRAY_LEN (output), "\n\nLine %d: Incorrect number of frames in file (too short). (%d should be %d)\n", __LINE__, (int) sfinfo.frames, (int) ARRAY_LEN (output)) ; in rf64_downgrade_test()
467 test_read_short_or_die (file, 0, input, ARRAY_LEN (input), __LINE__) ; in rf64_downgrade_test()
471 for (k = 0 ; k < ARRAY_LEN (input) ; k++) in rf64_downgrade_test()
498 sfinfo.frames = ARRAY_LEN (output) ; in rf64_long_file_downgrade_test()
507 { test_write_int_or_die (file, 0, output, ARRAY_LEN (output), __LINE__) ; in rf64_long_file_downgrade_test()
508 output_frames += ARRAY_LEN (outpu in rf64_long_file_downgrade_test()
[all...]
H A Dchannel_test.c64 gen_windowed_sine_float (float_data, ARRAY_LEN (float_data), 0.9) ; in channel_test()
69 sf_count_t wframes = ARRAY_LEN (float_data) / ch ; in channel_test()
100 for (k = 0 ; k < ARRAY_LEN (read_float) ; k++) in channel_test()
110 for (k = 0 ; k < ARRAY_LEN (read_float) ; k++) in channel_test()
H A Dchunk_test.c199 ARRAY_LEN (length_before) < testdata_len, in multichunk_test_helper()
309 for (k = 0 ; k < ARRAY_LEN (testdata) ; k++) in chunk_test()
312 multichunk_test_helper (filename, format, testdata, ARRAY_LEN (testdata)) ; in chunk_test()
368 sf_write_short (file, audio, ARRAY_LEN (audio)) ; in wav_subchunk_test()
375 sfinfo.frames != ARRAY_LEN (audio), in wav_subchunk_test()
376 "\n\nLine %d : Incorrect sample count (%d should be %d)\n", __LINE__, (int) sfinfo.frames, (int) ARRAY_LEN (audio) in wav_subchunk_test()
428 sf_write_short (file, audio, ARRAY_LEN (audio)) ; in large_free_test()
435 sfinfo.frames != ARRAY_LEN (audio), in large_free_test()
436 "\n\nLine %d : Incorrect sample count (%d should be %d)\n", __LINE__, (int) sfinfo.frames, (int) ARRAY_LEN (audio) in large_free_test()
H A Dpeak_chunk_test.c325 for (k = 0 ; k < ARRAY_LEN (small_data) ; k ++) in read_write_peak_test()
338 test_write_double_or_die (file, 0, small_data, ARRAY_LEN (small_data), __LINE__) ; in read_write_peak_test()
345 for (k = 0 ; k < ARRAY_LEN (small_data) ; k ++) in read_write_peak_test()
348 test_write_double_or_die (file, 0, small_data, ARRAY_LEN (small_data), __LINE__) ; in read_write_peak_test()
359 exit_if_true (sfinfo.channels * sfinfo.frames != 2 * ARRAY_LEN (small_data), in read_write_peak_test()
360 "Line %d : frame count is %" PRId64 ", should be %zd\n", __LINE__, sfinfo.frames, 2 * ARRAY_LEN (small_data)) ; in read_write_peak_test()
H A Dlocale_test.c133 short rdata [ARRAY_LEN (wdata)] ; in locale_test()
153 test_write_short_or_die (file, 0, wdata, ARRAY_LEN (wdata), __LINE__) ; in locale_test()
157 test_read_short_or_die (file, 0, rdata, ARRAY_LEN (rdata), __LINE__) ; in locale_test()
/third_party/toybox/toys/pending/
H A Dstty.c66 for (i=0;i<ARRAY_LEN(bauds);i++) if (bauds[i] == baud) break; in speed()
67 if (i == ARRAY_LEN(bauds)) error_exit("unknown speed: %d", baud); in speed()
231 if (!set_flag(&new->c_cflag, cflags, ARRAY_LEN(cflags), option, on) && in set_option()
232 !set_flag(&new->c_iflag, iflags, ARRAY_LEN(iflags), option, on) && in set_option()
233 !set_flag(&new->c_oflag, oflags, ARRAY_LEN(oflags), option, on) && in set_option()
234 !set_flag(&new->c_lflag, lflags, ARRAY_LEN(lflags), option, on)) in set_option()
263 for (j=0;j<ARRAY_LEN(chars)-2;j++) { in set_special_character()
387 for (j=0;j<ARRAY_LEN(synonyms);j++) { in do_stty()
417 for (i=j=0;i<ARRAY_LEN(chars);i++) { in do_stty()
442 show_flags(old.c_cflag, sane.c_cflag, cflags, ARRAY_LEN(cflag in do_stty()
[all...]
/third_party/libsnd/regtest/
H A Dchecksum.c36 #define ARRAY_LEN(x) ((int) (sizeof (x)) / (sizeof ((x) [0]))) macro
81 { count = (int) sf_read_short (file, data.s, ARRAY_LEN (data.s)) ; in short_checksum()
95 { count = (int) sf_read_int (file, data.i, ARRAY_LEN (data.i)) ; in int_checksum()
109 { count = (int) sf_read_float (file, data.f, ARRAY_LEN (data.f)) ; in float_checksum()
/third_party/toybox/lib/
H A Dtty.c72 for (i = 0; i < ARRAY_LEN(speeds); i++) if (speeds[i] == speed) break; in xsetspeed()
73 if (i == ARRAY_LEN(speeds)) error_exit("unknown speed: %d", speed); in xsetspeed()
118 for (i = 0; i < ARRAY_LEN(speeds); i++) if (speeds[i] == speed) break; in set_terminal()
119 if (i == ARRAY_LEN(speeds)) error_exit("unknown speed: %d", speed); in set_terminal()
206 for (i = 0; i<ARRAY_LEN(scan_key_list); i++) { in scan_key_getsize()

Completed in 18 milliseconds

12345