/third_party/libsnd/src/ |
D | test_ima_oki_adpcm.c | 64 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 …pcm->pcm) > ARRAY_LEN (test_pcm) (%d > %d).\n\n", __LINE__, ARRAY_LEN (adpcm.pcm), ARRAY_LEN (test… in test_oki_adpcm_block() 99 if (ARRAY_LEN (adpcm.codes) < ARRAY_LEN (test_codes)) in test_oki_adpcm_block() 108 memcpy (adpcm.pcm, test_pcm, sizeof (adpcm.pcm [0]) * ARRAY_LEN (test_pcm)) ; in test_oki_adpcm_block() 109 adpcm.pcm_count = ARRAY_LEN (test_pcm) ; in test_oki_adpcm_block() 114 if (adpcm.code_count * 2 != ARRAY_LEN (test_pcm)) in test_oki_adpcm_block() 115 { printf ("\n\nLine %d : %d * 2 != %d\n\n", __LINE__, adpcm.code_count * 2, ARRAY_LEN (test_pcm)) ; in test_oki_adpcm_block() 119 for (k = 0 ; k < ARRAY_LEN (test_codes) ; k++) in test_oki_adpcm_block() [all …]
|
D | ima_oki_adpcm.c | 59 { 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 …pcm->pcm) > ARRAY_LEN (test_pcm) (%d > %d).\n\n", __LINE__, ARRAY_LEN (adpcm.pcm), ARRAY_LEN (test… in test_oki_adpcm_block() 234 if (ARRAY_LEN (adpcm.codes) < ARRAY_LEN (test_codes)) in test_oki_adpcm_block() 244 memcpy (adpcm.pcm, test_pcm, sizeof (adpcm.pcm [0]) * ARRAY_LEN (test_pcm)) ; in test_oki_adpcm_block() 245 adpcm.pcm_count = ARRAY_LEN (test_pcm) ; in test_oki_adpcm_block() 250 if (adpcm.code_count * 2 != ARRAY_LEN (test_pcm)) in test_oki_adpcm_block() [all …]
|
D | test_file_io.c | 135 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), … 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_ou… 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), _… 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_out), 3) ; in file_read_write_test() [all …]
|
D | chanmap.c | 214 { { 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 (map)) in aiff_caf_find_channel_layout_tag() [all …]
|
D | test_endswap.tpl | 66 for (k = 0 ; k < ARRAY_LEN (orig) ; k++) 69 endswap_[+ (get "name") +]_copy (first, orig, ARRAY_LEN (first)) ; 70 endswap_[+ (get "name") +]_copy (second, first, ARRAY_LEN (second)) ; 74 dump_[+ (get "name") +]_array ("orig", orig, ARRAY_LEN (orig)) ; 75 dump_[+ (get "name") +]_array ("first", first, ARRAY_LEN (first)) ; 81 dump_[+ (get "name") +]_array ("orig", orig, ARRAY_LEN (orig)) ; 82 dump_[+ (get "name") +]_array ("second", second, ARRAY_LEN (second)) ; 86 endswap_[+ (get "name") +]_array (first, ARRAY_LEN (first)) ; 90 dump_[+ (get "name") +]_array ("orig", orig, ARRAY_LEN (orig)) ; 91 dump_[+ (get "name") +]_array ("first", first, ARRAY_LEN (first)) ; [all …]
|
D | windows.c | 70 wcsncpy (psf->file.path.wc, wpath, ARRAY_LEN (psf->file.path.wc)) ; in copy_filename() 71 psf->file.path.wc [ARRAY_LEN (psf->file.path.wc) - 1] = 0 ; in copy_filename() 77 wcsncpy (psf->file.name.wc, cwcptr, ARRAY_LEN (psf->file.name.wc)) ; in copy_filename() 78 psf->file.name.wc [ARRAY_LEN (psf->file.name.wc) - 1] = 0 ; in copy_filename() 81 wcsncpy (psf->file.dir.wc, wpath, ARRAY_LEN (psf->file.dir.wc)) ; in copy_filename() 82 psf->file.dir.wc [ARRAY_LEN (psf->file.dir.wc) - 1] = 0 ; in copy_filename()
|
D | test_nms_adpcm.c | 255 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()
|
D | test_log_printf.c | 96 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()
|
D | alaw.c | 370 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in alaw_read_alaw2s() 392 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in alaw_read_alaw2i() 417 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in alaw_read_alaw2f() 441 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in alaw_read_alaw2d() 466 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in alaw_write_s2alaw() 488 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in alaw_write_i2alaw() 513 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in alaw_write_f2alaw() 538 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in alaw_write_d2alaw()
|
D | ulaw.c | 871 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in ulaw_read_ulaw2s() 893 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in ulaw_read_ulaw2i() 918 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in ulaw_read_ulaw2f() 942 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in ulaw_read_ulaw2d() 967 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in ulaw_write_s2ulaw() 989 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in ulaw_write_i2ulaw() 1015 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in ulaw_write_f2ulaw() 1041 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in ulaw_write_d2ulaw()
|
D | float32.c | 520 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 (ubuf.fbuf) ; in replace_read_f2i() [all …]
|
D | pcm.c | 670 bufferlen = ARRAY_LEN (ubuf.scbuf) ; in pcm_read_sc2s() 692 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in pcm_read_uc2s() 780 bufferlen = ARRAY_LEN (ubuf.ibuf) ; in pcm_read_bei2s() 802 bufferlen = ARRAY_LEN (ubuf.ibuf) ; in pcm_read_lei2s() 827 bufferlen = ARRAY_LEN (ubuf.scbuf) ; in pcm_read_sc2i() 849 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in pcm_read_uc2i() 871 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in pcm_read_bes2i() 893 bufferlen = ARRAY_LEN (ubuf.sbuf) ; in pcm_read_les2i() 987 bufferlen = ARRAY_LEN (ubuf.scbuf) ; in pcm_read_sc2f() 1012 bufferlen = ARRAY_LEN (ubuf.ucbuf) ; in pcm_read_uc2f() [all …]
|
/third_party/libsnd/tests/ |
D | ogg_test.c | 61 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_in.i), __LINE__) ; in ogg_int_test() [all …]
|
D | cpp_test.cc | 88 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 (sbuffer) * 4 / 2) ; in read_file() [all …]
|
D | ogg_opus_test.c | 61 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_in.i), __LINE__) ; in ogg_opus_int_test() [all …]
|
D | virtual_io_test.c | 198 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 (data), 1, __LINE__) ; in vio_test() [all …]
|
D | compression_size_test.c | 59 gen_windowed_sine_float (float_data, ARRAY_LEN (float_data), 1.0) ; in vorbis_test() 89 test_write_float_or_die (file, 0, float_data, ARRAY_LEN (float_data), __LINE__) ; in vorbis_test() 97 test_read_float_or_die (file, 0, float_data, ARRAY_LEN (float_data), __LINE__) ; in vorbis_test() 100 for (k = 0 ; k < ARRAY_LEN (float_data) ; k ++) in vorbis_test() 149 { gen_lowpass_signal_float (data_out, ARRAY_LEN (data_out)) ; in compression_size_test() 150 test_write_float_or_die (q3_file, 0, data_out, ARRAY_LEN (data_out), __LINE__) ; in compression_size_test() 151 test_write_float_or_die (q6_file, 0, data_out, ARRAY_LEN (data_out), __LINE__) ; in compression_size_test()
|
D | checksum_test.c | 72 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()
|
D | misc_test.c | 404 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 … ARRAY_LEN (output), "\n\nLine %d: Incorrect number of frames in file (too short). (%d should be %… 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 (output) ; in rf64_long_file_downgrade_test() 522 test_read_int_or_die (file, 0, input, ARRAY_LEN (input), __LINE__) ; in rf64_long_file_downgrade_test()
|
D | chunk_test.c | 199 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 …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 …Incorrect sample count (%d should be %d)\n", __LINE__, (int) sfinfo.frames, (int) ARRAY_LEN (audio) in large_free_test()
|
D | channel_test.c | 64 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()
|
D | peak_chunk_test.c | 325 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 (s… in read_write_peak_test()
|
/third_party/toybox/toys/pending/ |
D | stty.c | 66 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(cflags)); in do_stty() [all …]
|
/third_party/libsnd/regtest/ |
D | checksum.c | 36 #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/ |
D | tty.c | 72 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()
|