Home
last modified time | relevance | path

Searched refs:ARRAY_LEN (Results 1 – 25 of 754) sorted by relevance

12345678910>>...31

/dports/devel/swig/swig-4.0.2/Examples/test-suite/
H A Darrays.i15 #define ARRAY_LEN 2 macro
24 char array_c [ARRAY_LEN];
25 signed char array_sc[ARRAY_LEN];
26 unsigned char array_uc[ARRAY_LEN];
27 short array_s [ARRAY_LEN];
28 unsigned short array_us[ARRAY_LEN];
29 int array_i [ARRAY_LEN];
30 unsigned int array_ui[ARRAY_LEN];
31 long array_l [ARRAY_LEN];
32 unsigned long array_ul[ARRAY_LEN];
[all …]
H A Darrays_global.i10 #define ARRAY_LEN 2 macro
18 char array_c [ARRAY_LEN];
19 signed char array_sc[ARRAY_LEN];
20 unsigned char array_uc[ARRAY_LEN];
21 short array_s [ARRAY_LEN];
22 unsigned short array_us[ARRAY_LEN];
23 int array_i [ARRAY_LEN];
24 unsigned int array_ui[ARRAY_LEN];
25 long array_l [ARRAY_LEN];
26 unsigned long array_ul[ARRAY_LEN];
[all …]
/dports/audio/libsndfile/libsndfile-1.0.31/src/
H A Dtest_endswap.c65 for (k = 0 ; k < ARRAY_LEN (orig) ; k++) in test_endswap_short()
73 dump_short_array ("orig", orig, ARRAY_LEN (orig)) ; in test_endswap_short()
80 dump_short_array ("orig", orig, ARRAY_LEN (orig)) ; in test_endswap_short()
85 endswap_short_array (first, ARRAY_LEN (first)) ; in test_endswap_short()
125 for (k = 0 ; k < ARRAY_LEN (orig) ; k++) in test_endswap_int()
133 dump_int_array ("orig", orig, ARRAY_LEN (orig)) ; in test_endswap_int()
140 dump_int_array ("orig", orig, ARRAY_LEN (orig)) ; in test_endswap_int()
145 endswap_int_array (first, ARRAY_LEN (first)) ; in test_endswap_int()
149 dump_int_array ("orig", orig, ARRAY_LEN (orig)) ; in test_endswap_int()
159 dump_int_array ("orig", orig, ARRAY_LEN (orig)) ; in test_endswap_int()
[all …]
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 …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()
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()
119 for (k = 0 ; k < ARRAY_LEN (test_codes) ; k++) in test_oki_adpcm_block()
132 adpcm.code_count = ARRAY_LEN (test_codes) ; in test_oki_adpcm_block()
137 if (adpcm.pcm_count != 2 * ARRAY_LEN (test_codes)) 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()
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()
234 if (ARRAY_LEN (adpcm.codes) < ARRAY_LEN (test_codes)) 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()
255 for (k = 0 ; k < ARRAY_LEN (test_codes) ; k++) in test_oki_adpcm_block()
269 adpcm.code_count = ARRAY_LEN (test_codes) ; in test_oki_adpcm_block()
274 if (adpcm.pcm_count != 2 * ARRAY_LEN (test_codes)) 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()
145 make_data (data_out, ARRAY_LEN (data_out), 2) ; in file_read_write_test()
167 make_data (data_out, ARRAY_LEN (data_out), 1) ; in file_read_write_test()
171 make_data (data_out, ARRAY_LEN (data_out), 2) ; in file_read_write_test()
196 make_data (data_out, ARRAY_LEN (data_out), 3) ; in file_read_write_test()
200 make_data (data_out, ARRAY_LEN (data_out), 1) ; in file_read_write_test()
205 make_data (data_out, ARRAY_LEN (data_out), 3) ; in file_read_write_test()
210 make_data (data_out, ARRAY_LEN (data_out), 2) ; in file_read_write_test()
236 make_data (data_out, ARRAY_LEN (data_out), 5) ; in file_read_write_test()
251 make_data (data_out, ARRAY_LEN (data_out), 1) ; 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 (map)) in aiff_caf_find_channel_layout_tag()
[all …]
H A Dtest_endswap.tpl66 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)) ;
86 endswap_[+ (get "name") +]_array (first, ARRAY_LEN (first)) ;
90 dump_[+ (get "name") +]_array ("orig", orig, ARRAY_LEN (orig)) ;
95 endswap_[+ (get "name") +]_copy (first, orig, ARRAY_LEN (first)) ;
96 endswap_[+ (get "name") +]_copy (first, first, ARRAY_LEN (first)) ;
[all …]
/dports/audio/libsamplerate/libsamplerate-0.2.2/tests/
H A Dfloat_short_test.c64 static short out [MAX (ARRAY_LEN (fpos), ARRAY_LEN (fneg))] ; in float_to_short_test()
72 for (k = 0 ; k < ARRAY_LEN (fpos) ; k++) in float_to_short_test()
80 for (k = 0 ; k < ARRAY_LEN (fneg) ; k++) in float_to_short_test()
105 for (k = 0 ; k < ARRAY_LEN (input) ; k++) in short_to_float_test()
106 input [k] = (k * 0x8000) / ARRAY_LEN (input) ; in short_to_float_test()
111 for (k = 0 ; k < ARRAY_LEN (input) ; k++) in short_to_float_test()
135 static int out [MAX (ARRAY_LEN (fpos), ARRAY_LEN (fneg))] ; in float_to_int_test()
143 for (k = 0 ; k < ARRAY_LEN (fpos) ; k++) in float_to_int_test()
151 for (k = 0 ; k < ARRAY_LEN (fneg) ; k++) in float_to_int_test()
176 for (k = 0 ; k < ARRAY_LEN (input) ; k++) in int_to_float_test()
[all …]
H A Dcallback_test.c39 for (k = 0 ; k < ARRAY_LEN (src_ratios) ; k++) in main()
43 for (k = 0 ; k < ARRAY_LEN (src_ratios) ; k++) in main()
48 for (k = 0 ; k < ARRAY_LEN (src_ratios) ; k++) in main()
114 test_callback_data.total = ARRAY_LEN (test_callback_data.data) ; in callback_test()
124 read_count = ARRAY_LEN (output) / test_callback_data.channels ; in callback_test()
137 if (fabs (read_total / src_ratio - ARRAY_LEN (test_callback_data.data)) > 2.0) in callback_test()
139 printf (" input len : %d\n", ARRAY_LEN (test_callback_data.data)) ; in callback_test()
141 floor (0.5 + src_ratio * ARRAY_LEN (test_callback_data.data))) ; in callback_test()
209 test_callback_data.total = ARRAY_LEN (test_callback_data.data) ; in end_of_stream_test()
219 read_count = ARRAY_LEN (output) / test_callback_data.channels ; in end_of_stream_test()
/dports/net/mpich/mpich-3.4.3/test/mpi/rma/
H A Dacc_ordering.c24 #define ARRAY_LEN (8192/(sizeof(twoint_t))) macro
83 for (i = 0; i < ARRAY_LEN; i++) { in main()
116 MPI_Accumulate(mine, ARRAY_LEN, MPI_2INT, 0, 0, ARRAY_LEN, MPI_2INT, MPI_REPLACE, win); in main()
117 MPI_Accumulate(mine_plus, ARRAY_LEN, MPI_2INT, 0, 0, ARRAY_LEN, MPI_2INT, MPI_REPLACE, win); in main()
165 MPI_Accumulate(mine, ARRAY_LEN, MPI_2INT, 0, 0, ARRAY_LEN, MPI_2INT, MPI_REPLACE, win); in main()
166 MPI_Accumulate(mine_plus, ARRAY_LEN, MPI_2INT, 0, 0, ARRAY_LEN, MPI_2INT, MPI_REPLACE, win); in main()
209 MPI_Accumulate(mine_plus, ARRAY_LEN, MPI_2INT, 0, 0, ARRAY_LEN, MPI_2INT, MPI_MAXLOC, win); in main()
210 MPI_Accumulate(mine, ARRAY_LEN, MPI_2INT, 0, 0, ARRAY_LEN, MPI_2INT, MPI_REPLACE, win); in main()
220 for (i = 0; i < ARRAY_LEN; i++) { in main()
247 MPI_Accumulate(mine_plus, ARRAY_LEN, MPI_2INT, 0, 0, ARRAY_LEN, MPI_2INT, MPI_REPLACE, win); in main()
[all …]
/dports/misc/vifm/vifm-0.11/tests/misc/
H A Dexpand_custom_macros.c22 char *expanded = ma_expand_custom(pattern, ARRAY_LEN(macros), macros, in TEST()
35 char *expanded = ma_expand_custom(pattern, ARRAY_LEN(macros), macros, in TEST()
48 char *expanded = ma_expand_custom(pattern, ARRAY_LEN(macros), macros, in TEST()
61 char *expanded = ma_expand_custom(pattern, ARRAY_LEN(macros), macros, in TEST()
74 char *expanded = ma_expand_custom(pattern, ARRAY_LEN(macros), macros, in TEST()
87 char *expanded = ma_expand_custom(pattern, ARRAY_LEN(macros), macros, in TEST()
243 check_hi("%[%1*a", ARRAY_LEN(macros), macros, MA_OPT, in TEST()
386 check_hi("%1*%[%2*%C%]!", ARRAY_LEN(macros), macros, MA_OPT, in TEST()
391 check_hi("%1*%[%2*%C%]!", ARRAY_LEN(macros), macros, MA_OPT, in TEST()
418 check_hi("%1*%[%t%2*%t%]%3*", ARRAY_LEN(macros), macros, MA_OPT, in TEST()
[all …]
H A Drename.c30 assert_false(fops_is_name_list_ok(ARRAY_LEN(src), ARRAY_LEN(dst), src, dst)); in TEST()
37 assert_false(fops_is_name_list_ok(ARRAY_LEN(src), ARRAY_LEN(dst), src, dst)); in TEST()
44 assert_false(fops_is_name_list_ok(ARRAY_LEN(src), ARRAY_LEN(dst), src, dst)); in TEST()
48 assert_false(fops_is_name_list_ok(ARRAY_LEN(src), ARRAY_LEN(dst), src, dst)); in TEST()
56 assert_true(fops_is_name_list_ok(ARRAY_LEN(src), ARRAY_LEN(dst), src, dst)); in TEST()
61 assert_true(fops_is_name_list_ok(ARRAY_LEN(src), ARRAY_LEN(dst), src, dst)); in TEST()
99 ARRAY_GUARD(files, ARRAY_LEN(list)); in TEST()
100 char dup[ARRAY_LEN(files)] = {}; in TEST()
103 for(i = 0; i < ARRAY_LEN(list); ++i) in TEST()
130 new_list = fops_edit_list(ARRAY_LEN(list), list, &nlines, 1); in TEST()
[all …]
H A Dargs.c40 args_parse(&args, ARRAY_LEN(argv) - 1U, argv, "/"); in TEST()
53 args_parse(&args, ARRAY_LEN(argv) - 1U, argv, "/"); in TEST()
68 args_parse(&args, ARRAY_LEN(argv) - 1U, argv, "/"); in TEST()
80 args_parse(&args, ARRAY_LEN(argv) - 1U, argv, "/"); in TEST()
96 args_parse(&args, ARRAY_LEN(argv) - 1U, argv, "/"); in TEST()
109 args_parse(&args, ARRAY_LEN(argv) - 1U, argv, "/"); in TEST()
122 args_parse(&args, ARRAY_LEN(argv) - 1U, argv, "/"); in TEST()
152 args_parse(&args, ARRAY_LEN(argv) - 1U, argv, "/"); in TEST()
163 args_parse(&args, ARRAY_LEN(argv) - 1U, argv, "/"); in TEST()
174 args_parse(&args, ARRAY_LEN(argv) - 1U, argv, "/"); in TEST()
[all …]
/dports/audio/libsndfile/libsndfile-1.0.31/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()
162 if (file.frames () != ARRAY_LEN (sbuffer) * 4) in read_file()
178 file.read (sbuffer, ARRAY_LEN (sbuffer)) ; in read_file()
179 file.read (ibuffer, ARRAY_LEN (ibuffer)) ; in read_file()
180 file.read (fbuffer, ARRAY_LEN (fbuffer)) ; in read_file()
181 file.read (dbuffer, ARRAY_LEN (dbuffer)) ; in read_file()
196 count = file.read (sbuffer, ARRAY_LEN (sbuffer)) ; in read_file()
[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()
83 test_read_short_or_die (file, 0, data_in.s, ARRAY_LEN (data_in.s), __LINE__) ; in ogg_short_test()
122 for (k = 0 ; k < ARRAY_LEN (data_out.i) ; k++) 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()
152 test_read_int_or_die (file, 0, seek_data, ARRAY_LEN (seek_data), __LINE__) ; in ogg_int_test()
172 gen_windowed_sine_float (data_out.f, ARRAY_LEN (data_out.f), 0.95) ; in ogg_float_test()
221 gen_windowed_sine_double (data_out.d, ARRAY_LEN (data_out.d), 0.95) ; in ogg_double_test()
273 gen_windowed_sine_float (data, ARRAY_LEN (data), 0.95) ; in ogg_stereo_seek_test()
274 for (k = 0 ; k < ARRAY_LEN (data) ; k++) in ogg_stereo_seek_test()
[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()
122 for (k = 0 ; k < ARRAY_LEN (data_out.i) ; k++) 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()
152 test_read_int_or_die (file, 0, seek_data, ARRAY_LEN (seek_data), __LINE__) ; in ogg_opus_int_test()
172 gen_windowed_sine_float (data_out.f, ARRAY_LEN (data_out.f), 0.95) ; in ogg_opus_float_test()
221 gen_windowed_sine_double (data_out.d, ARRAY_LEN (data_out.d), 0.95) ; in ogg_opus_double_test()
273 gen_windowed_sine_float (data, ARRAY_LEN (data), 0.95) ; in ogg_opus_stereo_seek_test()
274 for (k = 0 ; k < ARRAY_LEN (data) ; k++) in ogg_opus_stereo_seek_test()
276 stereo_out [2 * k + 1] = data [ARRAY_LEN (data) - k - 1] ; in ogg_opus_stereo_seek_test()
[all …]
H A Dfloating_point_test.c334 sfinfo.frames = ARRAY_LEN (short_data) ; in float_short_little_test()
344 if (sfinfo.frames != ARRAY_LEN (float_data)) in float_short_little_test()
386 sfinfo.frames = ARRAY_LEN (short_data) ; in float_short_big_test()
396 if (sfinfo.frames != ARRAY_LEN (float_data)) in float_short_big_test()
438 sfinfo.frames = ARRAY_LEN (int_data) ; in float_int_little_test()
448 if (sfinfo.frames != ARRAY_LEN (float_data)) in float_int_little_test()
490 sfinfo.frames = ARRAY_LEN (int_data) ; in float_int_big_test()
542 sfinfo.frames = ARRAY_LEN (short_data) ; in double_short_little_test()
594 sfinfo.frames = ARRAY_LEN (short_data) ; in double_short_big_test()
646 sfinfo.frames = ARRAY_LEN (int_data) ; in double_int_little_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 (data), 1, __LINE__) ; in vio_test()
[all …]
/dports/net/mpich/mpich-3.4.3/modules/izem/test/perf/lock/
H A Dthread_scale.c17 #define ARRAY_LEN 10 macro
19 char cache_lines[CACHELINE_SZ*ARRAY_LEN] = {0};
21 #if ARRAY_LEN == 10
23 #elif ARRAY_LEN == 4
68 for(int i = 0; i < ARRAY_LEN; i++) in test_thruput()
69 cache_lines[indices[i]] += cache_lines[indices[ARRAY_LEN-1-i]]; in test_thruput()
81 for(int i = 0; i < ARRAY_LEN; i++) in test_thruput()
82 cache_lines[indices[i]] += cache_lines[indices[ARRAY_LEN-1-i]]; in test_thruput()
/dports/cad/nvc/nvc-r1.5.3/test/
H A Dtest_sem.c42 fail_unless(sem_errors() == ARRAY_LEN(expect) - 1); in START_TEST()
119 fail_unless(sem_errors() == ARRAY_LEN(expect) - 1); in START_TEST()
154 fail_unless(sem_errors() == ARRAY_LEN(expect) - 1); in START_TEST()
233 fail_unless(sem_errors() == ARRAY_LEN(expect) - 1); in START_TEST()
253 fail_unless(sem_errors() == ARRAY_LEN(expect) - 1); in START_TEST()
344 fail_unless(sem_errors() == ARRAY_LEN(expect) - 1); in START_TEST()
385 fail_unless(sem_errors() == ARRAY_LEN(expect) - 1); in START_TEST()
434 fail_unless(sem_errors() == ARRAY_LEN(expect) - 1); in START_TEST()
452 fail_unless(sem_errors() == ARRAY_LEN(expect) - 1); in START_TEST()
474 fail_unless(sem_errors() == ARRAY_LEN(expect) - 1); in START_TEST()
[all …]
/dports/math/blis/blis-0.8.1/build/detect/omp_simd/
H A Domp_simd_detect.c4 #define ARRAY_LEN 4096 macro
6 double x[ ARRAY_LEN ];
7 double y[ ARRAY_LEN ];
13 for ( int i = 0; i < ARRAY_LEN; ++i ) in main()
20 for ( int i = 0; i < ARRAY_LEN; ++i ) in main()
27 for ( int i = 0; i < ARRAY_LEN; ++i ) in main()
/dports/sysutils/slurm-wlm/slurm-20.02.7/testsuite/expect/
H A Dtest1.116.prog.c34 #define ARRAY_LEN 4 macro
41 int array[ARRAY_LEN]; in main()
48 for (i = 0; i < ARRAY_LEN; i++) in main()
51 MPI_Bcast(array, ARRAY_LEN, MPI_INT, 0, MPI_COMM_WORLD); in main()
52 for (i = 0; i < ARRAY_LEN; i++) in main()
55 for (i = 0; i < ARRAY_LEN; i++) in main()
/dports/audio/libvorbis/libvorbis-1.3.7/test/
H A Dtest.c42 gen_windowed_sine (data_out, ARRAY_LEN (data_out), 0.95); in main()
48 for (k = 0 ; k < ARRAY_LEN (sample_rates); k ++) { in main()
56 set_data_in (data_in, ARRAY_LEN (data_in), 3.141); in main()
58 write_vorbis_data_or_die (filename, sample_rates [k], q, data_out, ARRAY_LEN (data_out),ch); in main()
59 read_vorbis_data_or_die (filename, sample_rates [k], data_in, ARRAY_LEN (data_in)); in main()
61 if (check_output (data_in, ARRAY_LEN (data_in), (.15f - .1f*q)) != 0) in main()
/dports/games/xray_re-tools/xray_re-tools-52721d2/sources/3rd-party/libvorbis/test/
H A Dtest.c43 gen_windowed_sine (data_out, ARRAY_LEN (data_out), 0.95); in main()
49 for (k = 0 ; k < ARRAY_LEN (sample_rates); k ++) { in main()
57 set_data_in (data_in, ARRAY_LEN (data_in), 3.141); in main()
59 write_vorbis_data_or_die (filename, sample_rates [k], q, data_out, ARRAY_LEN (data_out),ch); in main()
60 read_vorbis_data_or_die (filename, sample_rates [k], data_in, ARRAY_LEN (data_in)); in main()
62 if (check_output (data_in, ARRAY_LEN (data_in), (.15f - .1f*q)) != 0) in main()

12345678910>>...31