Home
last modified time | relevance | path

Searched refs:BUFFER_LEN (Results 1 - 25 of 30) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/trace/
H A Dtrace_marker.c28 #define BUFFER_LEN 10240 macro
118 char buffer[BUFFER_LEN] = {0}; in trace_marker_0010()
119 char buf_begin[BUFFER_LEN] = {0}; in trace_marker_0010()
120 char buf_end[BUFFER_LEN] = {0}; in trace_marker_0010()
122 int buf_begin_fd = snprintf(buf_begin, BUFFER_LEN, "B|%d|%s", getpid(), "Musl_Trace_Marker_0010"); in trace_marker_0010()
128 int buf_end_fd = snprintf(buf_end, BUFFER_LEN, "E|%d", getpid()); in trace_marker_0010()
134 int read_fd = read(trace_fd, buffer, BUFFER_LEN * i); in trace_marker_0010()
170 char buffer[BUFFER_LEN] = {0}; in trace_marker_0020()
171 char buf_async_begin[BUFFER_LEN] = {0}; in trace_marker_0020()
172 char buf_async_end[BUFFER_LEN] in trace_marker_0020()
[all...]
H A Dtrace_stresstest.c25 #define BUFFER_LEN 1000000 macro
47 char buf[BUFFER_LEN] = {0}; in trace_marker_stresstest_0010()
50 snprintf(buf, BUFFER_LEN, "%d", traceCount); in trace_marker_stresstest_0010()
62 char buf[BUFFER_LEN] = {0}; in trace_marker_stresstest_0010()
70 snprintf(buf, BUFFER_LEN, "%d", traceCount); in trace_marker_stresstest_0010()
/third_party/libsnd/tests/
H A Draw_test.c37 #define BUFFER_LEN (1 << 10) macro
46 static short data [BUFFER_LEN] ;
80 for (k = 0 ; k < BUFFER_LEN ; k++) in raw_offset_test()
82 test_write_short_or_die (sndfile, 0, data, BUFFER_LEN, __LINE__) ; in raw_offset_test()
89 if (ABS (BUFFER_LEN - sfinfo.frames) > 1) in raw_offset_test()
90 { printf ("\n\nLine %d : Incorrect sample count (%" PRId64 " should be %d)\n", __LINE__, sfinfo.frames, BUFFER_LEN) ; in raw_offset_test()
96 test_read_short_or_die (sndfile, 0, data, BUFFER_LEN, __LINE__) ; in raw_offset_test()
97 for (k = 0 ; k < BUFFER_LEN ; k++) in raw_offset_test()
109 test_read_short_or_die (sndfile, 0, data, BUFFER_LEN - 1, __LINE__) ; in raw_offset_test()
110 for (k = 0 ; k < BUFFER_LEN in raw_offset_test()
[all...]
H A Dcommand_test.c41 #define BUFFER_LEN (1 << 10) macro
70 static int int_data [BUFFER_LEN] ;
71 static float float_data [BUFFER_LEN] ;
72 static double double_data [BUFFER_LEN] ;
238 sfinfo.frames = BUFFER_LEN ; in float_norm_test()
241 for (k = 0 ; k < BUFFER_LEN / 2 ; k++) in float_norm_test()
242 float_data [k] = (k + 5) / (2.0f * BUFFER_LEN) ; in float_norm_test()
243 for (k = BUFFER_LEN / 2 ; k < BUFFER_LEN ; k++) in float_norm_test()
255 if ((k = (unsigned int) sf_write_float (file, float_data, BUFFER_LEN / in float_norm_test()
[all...]
H A Dpeak_chunk_test.c37 #define BUFFER_LEN (1 << 15) macro
49 static double data [BUFFER_LEN] ;
128 frames = BUFFER_LEN / sfinfo.channels ; in test_float_peak()
131 for (k = 0 ; k < BUFFER_LEN ; k++) in test_float_peak()
152 test_write_double_or_die (file, 0, data + count * BUFFER_LEN / 4, BUFFER_LEN / 4, BUFFER_LEN / 4) ; in test_float_peak()
219 test_write_double_or_die (file, 0, data + count * BUFFER_LEN / 4, BUFFER_LEN / 4, BUFFER_LEN / in test_float_peak()
[all...]
H A Dlargefile_test.c35 #define BUFFER_LEN (1024 * 1024) macro
51 { static float data [BUFFER_LEN] ; in largefile_test()
66 test_write_float_or_die (file, k, data, BUFFER_LEN, __LINE__) ; in largefile_test()
72 if ((sfinfo.frames * sfinfo.channels) / BUFFER_LEN != BUFFER_COUNT) in largefile_test()
H A Ddither_test.c35 #define BUFFER_LEN (1 << 16) macro
43 static short data_out [BUFFER_LEN] ;
168 test_write_short_or_die (file, 0, data_out, BUFFER_LEN, __LINE__) ; in dither_test()
175 if (sfinfo.frames != BUFFER_LEN) in dither_test()
176 { printf ("\n\nLine %d: Bad frame count %d (should be %d)\n\n", __LINE__, (int) sfinfo.frames, BUFFER_LEN) ; in dither_test()
H A Dstring_test.c37 #define BUFFER_LEN (1 << 10) macro
213 static short data_out [BUFFER_LEN] ;
241 test_write_short_or_die (file, 0, data_out, BUFFER_LEN, __LINE__) ; in string_start_end_test()
257 if (sfinfo.frames != BUFFER_LEN) in string_start_end_test()
258 { printf ("***** Bad frame count %d (should be %d)\n\n", (int) sfinfo.frames, BUFFER_LEN) ; in string_start_end_test()
415 test_write_short_or_die (file, 0, data_out, BUFFER_LEN, __LINE__) ; in string_start_test()
423 if (sfinfo.frames != BUFFER_LEN) in string_start_test()
424 { printf ("***** Bad frame count %d (should be %d)\n\n", (int) sfinfo.frames, BUFFER_LEN) ; in string_start_test()
573 test_write_short_or_die (file, 0, data_out, BUFFER_LEN, __LINE__) ; in string_multi_set_test()
676 sf_count_t frames = BUFFER_LEN ; in string_short_rdwr_test()
[all...]
H A Dstdin_test.c36 #define BUFFER_LEN (1 << 16) macro
44 if (BUFFER_LEN < PIPE_TEST_LEN) in main()
45 { fprintf (stderr, "Error : BUFFER_LEN < PIPE_TEST_LEN.\n\n") ; in main()
139 { static short data [BUFFER_LEN] ; in stdin_test()
188 while ((k = (int) sf_read_short (file, data + total, BUFFER_LEN - total)) > 0) in stdin_test()
H A Dmisc_test.c47 #define BUFFER_LEN (1 << 10) macro
428 { static short output [BUFFER_LEN] ; in rf64_downgrade_test()
429 static short input [BUFFER_LEN] ; in rf64_downgrade_test()
483 { static int output [BUFFER_LEN] ; in rf64_long_file_downgrade_test()
H A Dchannel_test.c40 #define BUFFER_LEN (1 << 10) macro
/third_party/libsnd/programs/
H A Dsndfile-interleave.c40 #define BUFFER_LEN 4096 macro
49 { double d [BUFFER_LEN] ;
50 int i [BUFFER_LEN] ;
55 { double d [MAX_INPUTS * BUFFER_LEN] ;
56 int i [MAX_INPUTS * BUFFER_LEN] ;
177 { read_len = (int) sf_read_int (state->infile [ch], state->din.i, BUFFER_LEN) ; in interleave_int()
178 if (read_len < BUFFER_LEN) in interleave_int()
179 memset (state->din.i + read_len, 0, sizeof (state->din.i [0]) * (BUFFER_LEN - read_len)) ; in interleave_int()
181 for (k = 0 ; k < BUFFER_LEN ; k++) in interleave_int()
203 { read_len = (int) sf_read_double (state->infile [ch], state->din.d, BUFFER_LEN) ; in interleave_double()
[all...]
H A Dsndfile-play.c79 #define BUFFER_LEN (2048) macro
92 { static float buffer [BUFFER_LEN] ; in alsa_play()
127 while ((readcount = sf_read_float (sndfile, buffer, BUFFER_LEN))) in alsa_play()
130 alsa_write_float (alsa_dev, buffer, BUFFER_LEN / sfinfo.channels, sfinfo.channels) ; in alsa_play()
134 { while ((readcount = sf_read_float (sndfile, buffer, BUFFER_LEN))) in alsa_play()
135 alsa_write_float (alsa_dev, buffer, BUFFER_LEN / sfinfo.channels, sfinfo.channels) ; in alsa_play()
364 { static short buffer [BUFFER_LEN] ; in opensoundsys_play()
388 { static float float_buffer [BUFFER_LEN] ; in opensoundsys_play()
398 while ((readcount = sf_read_float (sndfile, float_buffer, BUFFER_LEN))) in opensoundsys_play()
405 { while ((readcount = sf_read_short (sndfile, buffer, BUFFER_LEN))) in opensoundsys_play()
[all...]
H A Dsndfile-deinterleave.c40 #define BUFFER_LEN 4096 macro
49 { double d [MAX_CHANNELS * BUFFER_LEN] ;
50 int i [MAX_CHANNELS * BUFFER_LEN] ;
54 { double d [BUFFER_LEN] ;
55 int i [BUFFER_LEN] ;
194 { read_len = (int) sf_readf_int (state->infile, state->din.i, BUFFER_LEN) ; in deinterleave_int()
212 { read_len = (int) sf_readf_double (state->infile, state->din.d, BUFFER_LEN) ; in deinterleave_double()
H A Dsndfile-concat.c42 #define BUFFER_LEN (1 << 16) macro
137 { static double data [BUFFER_LEN] ; in concat_data_fp()
140 frames = BUFFER_LEN / channels ; in concat_data_fp()
155 { static int data [BUFFER_LEN] ; in concat_data_int()
158 frames = BUFFER_LEN / channels ; in concat_data_int()
H A Dsndfile-info.c44 #define BUFFER_LEN (1 << 16) macro
142 static double data [BUFFER_LEN] ;
219 { static char strbuffer [BUFFER_LEN] ; in info_dump()
230 sf_command (file, SFC_GET_LOG_INFO, strbuffer, BUFFER_LEN) ; in info_dump()
237 sf_command (file, SFC_GET_LOG_INFO, strbuffer, BUFFER_LEN) ; in info_dump()
H A Dcommon.c45 #define BUFFER_LEN 4096 macro
51 { static double data [BUFFER_LEN], max ; in sfe_copy_data_fp()
54 frames = BUFFER_LEN / channels ; in sfe_copy_data_fp()
87 { static int data [BUFFER_LEN] ; in sfe_copy_data_int()
90 frames = BUFFER_LEN / channels ; in sfe_copy_data_int()
/third_party/libsnd/examples/
H A Dsndfilehandle.cc24 #define BUFFER_LEN 1024 macro
28 { static short buffer [BUFFER_LEN] ; in create_file()
40 file.write (buffer, BUFFER_LEN) ; in create_file()
53 { static short buffer [BUFFER_LEN] ; in read_file()
63 file.read (buffer, BUFFER_LEN) ; in read_file()
H A Dgenerate.cs172 public const sf_count_t BUFFER_LEN = 4096; field in lsndf_example
181 float[] buffer = new float[BUFFER_LEN]; in Main()
235 while ( (rcnt = sf_read_float (infile, buffer, BUFFER_LEN)) > 0) { in Main()
237 sf_write_float (outfile, buffer, BUFFER_LEN); in Main()
H A Dsfprocess.c42 #define BUFFER_LEN 1024 macro
56 static double data [BUFFER_LEN] ; in main()
115 while ((readcount = (int) sf_read_double (infile, data, BUFFER_LEN))) in main()
H A Dgenerate.c40 #define BUFFER_LEN 4096 macro
87 { static float buffer [BUFFER_LEN] ; in encode_file()
121 while ((readcount = (int) sf_read_float (infile, buffer, BUFFER_LEN)) > 0) in encode_file()
H A Dsndfile-loopify.c47 #define BUFFER_LEN (1 << 14) macro
134 { static int data [BUFFER_LEN] ; in sfe_copy_data_int()
137 frames = BUFFER_LEN / channels ; in sfe_copy_data_int()
/third_party/mbedtls/programs/test/
H A Dzeroize.c36 #define BUFFER_LEN 1024 macro
43 mbedtls_printf("prints the first %d characters. Usage:\n\n", BUFFER_LEN); in usage()
51 char buf[BUFFER_LEN]; in main()
53 char *end = p + BUFFER_LEN; in main()
/third_party/ltp/testcases/kernel/device-drivers/agp/user_space/
H A Duser_tagp.h24 #ifndef BUFFER_LEN
25 #define BUFFER_LEN 32 macro
/third_party/icu/icu4c/source/test/cintltst/
H A Dunumberformattertst.c347 #define BUFFER_LEN 256 in TestPerUnitInArabic() macro
348 char buffer[BUFFER_LEN]; in TestPerUnitInArabic()
349 UChar ubuffer[BUFFER_LEN]; in TestPerUnitInArabic()
363 u_strFromUTF8(ubuffer, BUFFER_LEN, &outputlen, buffer, (int32_t)strlen(buffer), &status); in TestPerUnitInArabic()

Completed in 12 milliseconds

12