/third_party/musl/libc-test/src/functionalext/trace/ |
H A D | trace_marker.c | 28 #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 D | trace_stresstest.c | 25 #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 D | raw_test.c | 37 #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 D | command_test.c | 41 #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 D | peak_chunk_test.c | 37 #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 D | largefile_test.c | 35 #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 D | dither_test.c | 35 #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 D | string_test.c | 37 #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 D | stdin_test.c | 36 #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 D | misc_test.c | 47 #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 D | channel_test.c | 40 #define BUFFER_LEN (1 << 10) macro
|
/third_party/libsnd/programs/ |
H A D | sndfile-interleave.c | 40 #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 D | sndfile-play.c | 79 #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 D | sndfile-deinterleave.c | 40 #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 D | sndfile-concat.c | 42 #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 D | sndfile-info.c | 44 #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 D | common.c | 45 #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 D | sndfilehandle.cc | 24 #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 D | generate.cs | 172 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 D | sfprocess.c | 42 #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 D | generate.c | 40 #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 D | sndfile-loopify.c | 47 #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 D | zeroize.c | 36 #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 D | user_tagp.h | 24 #ifndef BUFFER_LEN 25 #define BUFFER_LEN 32 macro
|
/third_party/icu/icu4c/source/test/cintltst/ |
H A D | unumberformattertst.c | 347 #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()
|