/third_party/ffmpeg/tests/checkasm/ |
D | jpeg2000dsp.c | 28 #define BUF_SIZE 512 macro 33 for (i = 0; i < BUF_SIZE*3; i++) \ 40 for (i = 0; i < BUF_SIZE*3; i++) \ 46 LOCAL_ALIGNED_32(int32_t, src, [BUF_SIZE*3]); in check_rct_int() 47 LOCAL_ALIGNED_32(int32_t, ref, [BUF_SIZE*3]); in check_rct_int() 48 LOCAL_ALIGNED_32(int32_t, new, [BUF_SIZE*3]); in check_rct_int() 49 int32_t *ref0 = &ref[BUF_SIZE*0], *new0 = &new[BUF_SIZE*0]; in check_rct_int() 50 int32_t *ref1 = &ref[BUF_SIZE*1], *new1 = &new[BUF_SIZE*1]; in check_rct_int() 51 int32_t *ref2 = &ref[BUF_SIZE*2], *new2 = &new[BUF_SIZE*2]; in check_rct_int() 56 memcpy(ref, src, BUF_SIZE * 3 * sizeof(*src)); in check_rct_int() [all …]
|
D | fixed_dsp.c | 28 #define BUF_SIZE 256 macro 33 for (i = 0; i < BUF_SIZE; i++) { \ 42 LOCAL_ALIGNED_32(int, ref, [BUF_SIZE]); in check_vector_fmul() 43 LOCAL_ALIGNED_32(int, new, [BUF_SIZE]); in check_vector_fmul() 47 call_ref(ref, src0, src1, BUF_SIZE); in check_vector_fmul() 48 call_new(new, src0, src1, BUF_SIZE); in check_vector_fmul() 49 if (memcmp(ref, new, BUF_SIZE * sizeof(int))) in check_vector_fmul() 51 bench_new(new, src0, src1, BUF_SIZE); in check_vector_fmul() 56 LOCAL_ALIGNED_32(int, ref, [BUF_SIZE]); in check_vector_fmul_add() 57 LOCAL_ALIGNED_32(int, new, [BUF_SIZE]); in check_vector_fmul_add() [all …]
|
D | aacpsdsp.c | 27 #define BUF_SIZE (N * STRIDE) macro 51 LOCAL_ALIGNED_16(INTFLOAT, dst0, [BUF_SIZE]); in test_add_squares() 52 LOCAL_ALIGNED_16(INTFLOAT, dst1, [BUF_SIZE]); in test_add_squares() 53 LOCAL_ALIGNED_16(INTFLOAT, src, [BUF_SIZE], [2]); in test_add_squares() 58 randomize((INTFLOAT *)src, BUF_SIZE * 2); in test_add_squares() 59 randomize(dst0, BUF_SIZE); in test_add_squares() 60 memcpy(dst1, dst0, BUF_SIZE * sizeof(INTFLOAT)); in test_add_squares() 61 call_ref(dst0, src, BUF_SIZE); in test_add_squares() 62 call_new(dst1, src, BUF_SIZE); in test_add_squares() 63 if (!float_near_abs_eps_array(dst0, dst1, EPS, BUF_SIZE)) in test_add_squares() [all …]
|
D | flacdsp.c | 29 #define BUF_SIZE 256 macro 35 for (i = 0; i < BUF_SIZE; i += 4) { \ 49 call_ref(ref_dst, (int32_t **)ref_src, channels, BUF_SIZE / sizeof(int32_t), 8); in check_decorrelate() 50 call_new(new_dst, (int32_t **)new_src, channels, BUF_SIZE / sizeof(int32_t), 8); in check_decorrelate() 51 if (memcmp(*ref_dst, *new_dst, bits == 16 ? BUF_SIZE * (channels/2) : BUF_SIZE * channels) || in check_decorrelate() 52 memcmp(*ref_src, *new_src, BUF_SIZE * channels)) in check_decorrelate() 54 bench_new(new_dst, (int32_t **)new_src, channels, BUF_SIZE / sizeof(int32_t), 8); in check_decorrelate() 59 LOCAL_ALIGNED_16(uint8_t, ref_dst, [BUF_SIZE*MAX_CHANNELS]); in checkasm_check_flacdsp() 60 LOCAL_ALIGNED_16(uint8_t, ref_buf, [BUF_SIZE*MAX_CHANNELS]); in checkasm_check_flacdsp() 61 LOCAL_ALIGNED_16(uint8_t, new_dst, [BUF_SIZE*MAX_CHANNELS]); in checkasm_check_flacdsp() [all …]
|
D | alacdsp.c | 29 #define BUF_SIZE 256 macro 35 for (i = 0; i < BUF_SIZE*MAX_CHANNELS; i++) { \ 44 LOCAL_ALIGNED_16(int32_t, ref_buf, [BUF_SIZE*MAX_CHANNELS]); in check_decorrelate_stereo() 45 LOCAL_ALIGNED_16(int32_t, new_buf, [BUF_SIZE*MAX_CHANNELS]); in check_decorrelate_stereo() 46 int32_t *ref[2] = { &ref_buf[BUF_SIZE*0], &ref_buf[BUF_SIZE*1] }; in check_decorrelate_stereo() 47 int32_t *new[2] = { &new_buf[BUF_SIZE*0], &new_buf[BUF_SIZE*1] }; in check_decorrelate_stereo() 63 bench_new(new, BUF_SIZE, shift, weight); in check_decorrelate_stereo() 73 for (i = 0; i < BUF_SIZE; i++) { \ 87 LOCAL_ALIGNED_16(int32_t, ref_buf, [BUF_SIZE*MAX_CHANNELS*2]); in check_append_extra_bits() 88 LOCAL_ALIGNED_16(int32_t, new_buf, [BUF_SIZE*MAX_CHANNELS*2]); in check_append_extra_bits() [all …]
|
D | synth_filter.c | 35 #define BUF_SIZE 32 macro 40 for (i = 0; i < BUF_SIZE; i++) { \ 55 LOCAL_ALIGNED(32, float, out0, [BUF_SIZE]); in checkasm_check_synth_filter() 56 LOCAL_ALIGNED(32, float, out1, [BUF_SIZE]); in checkasm_check_synth_filter() 57 LOCAL_ALIGNED(32, float, out_b, [BUF_SIZE]); in checkasm_check_synth_filter() 58 LOCAL_ALIGNED(32, float, in, [BUF_SIZE]); in checkasm_check_synth_filter() 59 LOCAL_ALIGNED(32, float, buf2_0, [BUF_SIZE]); in checkasm_check_synth_filter() 60 LOCAL_ALIGNED(32, float, buf2_1, [BUF_SIZE]); in checkasm_check_synth_filter() 61 LOCAL_ALIGNED(32, float, buf2_b, [BUF_SIZE]); in checkasm_check_synth_filter() 71 memset(buf2_0, 0, sizeof(*buf2_0) * BUF_SIZE); in checkasm_check_synth_filter() [all …]
|
D | v210enc.c | 29 #define BUF_SIZE 512 macro 34 for (i = 0; i < BUF_SIZE; i += 4 / size) { \ 39 for (i = 0; i < BUF_SIZE / 2; i += 4 / size) { \ 56 LOCAL_ALIGNED_16(type, y0, [BUF_SIZE]); \ 57 LOCAL_ALIGNED_16(type, y1, [BUF_SIZE]); \ 58 LOCAL_ALIGNED_16(type, u0, [BUF_SIZE / 2]); \ 59 LOCAL_ALIGNED_16(type, u1, [BUF_SIZE / 2]); \ 60 LOCAL_ALIGNED_16(type, v0, [BUF_SIZE / 2]); \ 61 LOCAL_ALIGNED_16(type, v1, [BUF_SIZE / 2]); \ 62 LOCAL_ALIGNED_16(uint8_t, dst0, [BUF_SIZE * 8 / 3]); \ [all …]
|
D | hevc_pel.c | 37 #define BUF_SIZE (2 * MAX_PB_SIZE * (2 * 4 + MAX_PB_SIZE)) macro 43 for (k = 0; k < BUF_SIZE + SRC_EXTRA; k += 4) { \ 47 if (k >= BUF_SIZE) \ 60 for (k = 0; k < BUF_SIZE; k += 2) { \ 75 LOCAL_ALIGNED_32(uint8_t, buf0, [BUF_SIZE + SRC_EXTRA]); in checkasm_check_hevc_qpel() 76 LOCAL_ALIGNED_32(uint8_t, buf1, [BUF_SIZE + SRC_EXTRA]); in checkasm_check_hevc_qpel() 77 LOCAL_ALIGNED_32(uint8_t, dst0, [BUF_SIZE]); in checkasm_check_hevc_qpel() 78 LOCAL_ALIGNED_32(uint8_t, dst1, [BUF_SIZE]); in checkasm_check_hevc_qpel() 119 LOCAL_ALIGNED_32(uint8_t, buf0, [BUF_SIZE + SRC_EXTRA]); in checkasm_check_hevc_qpel_uni() 120 LOCAL_ALIGNED_32(uint8_t, buf1, [BUF_SIZE + SRC_EXTRA]); in checkasm_check_hevc_qpel_uni() [all …]
|
D | pixblockdsp.c | 30 #define BUF_SIZE (BUF_UNITS * 128 + 8 * BUF_UNITS) macro 35 for (i = 0; i < BUF_SIZE; i += 4) { \ 59 if (memcmp(src10, src11, BUF_SIZE)|| memcmp(dst0, dst1, BUF_SIZE)) \ 76 …if (memcmp(src10, src11, BUF_SIZE) || memcmp(src20, src21, BUF_SIZE) || memcmp(dst0, dst1, BUF_SIZ… 84 LOCAL_ALIGNED_16(uint8_t, src10, [BUF_SIZE]); in checkasm_check_pixblockdsp() 85 LOCAL_ALIGNED_16(uint8_t, src11, [BUF_SIZE]); in checkasm_check_pixblockdsp() 86 LOCAL_ALIGNED_16(uint8_t, src20, [BUF_SIZE]); in checkasm_check_pixblockdsp() 87 LOCAL_ALIGNED_16(uint8_t, src21, [BUF_SIZE]); in checkasm_check_pixblockdsp() 88 LOCAL_ALIGNED_16(uint8_t, dst0_, [BUF_SIZE]); in checkasm_check_pixblockdsp() 89 LOCAL_ALIGNED_16(uint8_t, dst1_, [BUF_SIZE]); in checkasm_check_pixblockdsp()
|
D | exrdsp.c | 29 #define BUF_SIZE 5120 macro 30 #define PADDED_BUF_SIZE BUF_SIZE+AV_INPUT_BUFFER_PADDING_SIZE*2 35 for (i = 0; i < BUF_SIZE; i += 4) { \ 52 call_ref(dst_ref, src, BUF_SIZE); in check_reorder_pixels() 53 call_new(dst_new, src, BUF_SIZE); in check_reorder_pixels() 54 if (memcmp(dst_ref, dst_new, BUF_SIZE)) in check_reorder_pixels() 56 bench_new(dst_new, src, BUF_SIZE); in check_reorder_pixels() 70 call_ref(dst_ref, BUF_SIZE); in check_predictor() 71 call_new(dst_new, BUF_SIZE); in check_predictor() 72 if (memcmp(dst_ref, dst_new, BUF_SIZE)) in check_predictor() [all …]
|
D | hevc_sao.c | 37 #define BUF_SIZE (PIXEL_STRIDE * (64+2) * 2) //+2 for top and bottom row, *2 for high bit depth macro 72 LOCAL_ALIGNED_32(uint8_t, dst0, [BUF_SIZE]); in check_sao_band() 73 LOCAL_ALIGNED_32(uint8_t, dst1, [BUF_SIZE]); in check_sao_band() 74 LOCAL_ALIGNED_32(uint8_t, src0, [BUF_SIZE]); in check_sao_band() 75 LOCAL_ALIGNED_32(uint8_t, src1, [BUF_SIZE]); in check_sao_band() 89 randomize_buffers(src0, src1, BUF_SIZE); in check_sao_band() 91 memset(dst0, 0, BUF_SIZE); in check_sao_band() 92 memset(dst1, 0, BUF_SIZE); in check_sao_band() 109 LOCAL_ALIGNED_32(uint8_t, dst0, [BUF_SIZE]); in check_sao_edge() 110 LOCAL_ALIGNED_32(uint8_t, dst1, [BUF_SIZE]); in check_sao_edge() [all …]
|
D | bswapdsp.c | 29 #define BUF_SIZE 512 macro 34 for (i = 0; i < BUF_SIZE; i += 4) { \ 49 for (w = 0; w < BUF_SIZE / sizeof(type); w++) { \ 50 int offset = (BUF_SIZE / sizeof(type) - w) & 15; /* Test various alignments */ \ 54 if (memcmp(src0, src1, BUF_SIZE) || memcmp(dst0, dst1, BUF_SIZE)) \ 62 LOCAL_ALIGNED_16(uint8_t, src0, [BUF_SIZE]); in checkasm_check_bswapdsp() 63 LOCAL_ALIGNED_16(uint8_t, src1, [BUF_SIZE]); in checkasm_check_bswapdsp() 64 LOCAL_ALIGNED_16(uint8_t, dst0, [BUF_SIZE]); in checkasm_check_bswapdsp() 65 LOCAL_ALIGNED_16(uint8_t, dst1, [BUF_SIZE]); in checkasm_check_bswapdsp()
|
D | h264qpel.c | 32 #define BUF_SIZE (2 * 16 * (16 + 3 + 4)) macro 38 for (k = 0; k < BUF_SIZE; k += 4) { \ 53 LOCAL_ALIGNED_16(uint8_t, buf0, [BUF_SIZE]); in checkasm_check_h264qpel() 54 LOCAL_ALIGNED_16(uint8_t, buf1, [BUF_SIZE]); in checkasm_check_h264qpel() 55 LOCAL_ALIGNED_16(uint8_t, dst0, [BUF_SIZE]); in checkasm_check_h264qpel() 56 LOCAL_ALIGNED_16(uint8_t, dst1, [BUF_SIZE]); in checkasm_check_h264qpel() 74 if (memcmp(buf0, buf1, BUF_SIZE) || memcmp(dst0, dst1, BUF_SIZE)) in checkasm_check_h264qpel()
|
D | vf_blend.c | 32 #define BUF_SIZE (BUF_UNITS * SIZE_PER_UNIT) macro 50 for (; i < BUF_SIZE; i += 4) { \ 81 …if (memcmp(top1, top2, BUF_SIZE) || memcmp(bot1, bot2, BUF_SIZE) || memcmp(dst1, dst2, BUF_SIZE)) \ 90 uint8_t *top1 = av_malloc(BUF_SIZE); in checkasm_check_blend() 91 uint8_t *top2 = av_malloc(BUF_SIZE); in checkasm_check_blend() 92 uint8_t *bot1 = av_malloc(BUF_SIZE); in checkasm_check_blend() 93 uint8_t *bot2 = av_malloc(BUF_SIZE); in checkasm_check_blend() 94 uint8_t *dst1 = av_malloc(BUF_SIZE); in checkasm_check_blend() 95 uint8_t *dst2 = av_malloc(BUF_SIZE); in checkasm_check_blend()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_write/ |
D | 1-2.c | 44 #define BUF_SIZE 1024 in main() macro 45 char buf[BUF_SIZE]; in main() 46 char check[BUF_SIZE * 2]; in main() 66 memset(buf, 0x00, BUF_SIZE); in main() 68 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main() 73 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main() 78 memset(buf, 0xaa, BUF_SIZE); in main() 82 aiocb.aio_nbytes = BUF_SIZE; in main() 83 aiocb.aio_offset = BUF_SIZE / 2; in main() 104 if (ret != BUF_SIZE) { in main() [all …]
|
D | 1-1.c | 43 #define BUF_SIZE 512 in main() macro 44 char buf[BUF_SIZE]; in main() 45 char check[BUF_SIZE + 1]; in main() 65 memset(buf, 0xaa, BUF_SIZE); in main() 69 aiocb.aio_nbytes = BUF_SIZE; in main() 91 if (ret != BUF_SIZE) { in main() 107 check[BUF_SIZE] = 1; in main() 108 if (read(fd, check, BUF_SIZE + 1) != BUF_SIZE) { in main() 114 if (check[BUF_SIZE] != 1) { in main() 120 if (memcmp(buf, check, BUF_SIZE)) { in main()
|
D | 3-1.c | 43 #define BUF_SIZE 512 in main() macro 44 char buf[BUF_SIZE]; in main() 45 char check[BUF_SIZE]; in main() 65 memset(buf, 0xaa, BUF_SIZE); in main() 69 aiocb.aio_nbytes = BUF_SIZE; in main() 91 if (ret != BUF_SIZE) { in main() 104 if (read(fd, check, BUF_SIZE) != BUF_SIZE) { in main() 109 if (memcmp(buf, check, BUF_SIZE)) { in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/fortify/fortify_gtest/ |
D | fortify_snprintf_chk_test.cpp | 4 constexpr int BUF_SIZE = 1024; variable 24 char str[BUF_SIZE]; 27 ret = __snprintf_chk(str, BUF_SIZE, 0, BUF_SIZE, "test"); 31 ret = __snprintf_chk(str, BUF_SIZE, 0, BUF_SIZE, "%c", '1'); 35 ret = __snprintf_chk(str, BUF_SIZE, 0, BUF_SIZE, "%s,%s", "123", "456"); 39 ret = __snprintf_chk(str, BUF_SIZE, 0, BUF_SIZE, "%%test"); 43 ret = __snprintf_chk(str, BUF_SIZE, 0, BUF_SIZE, "%3$d,%2$s,%1$c", 'a', "bc", 0);
|
D | fortify_sprintf_chk_test.cpp | 5 constexpr int BUF_SIZE = 1024; variable 24 char str[BUF_SIZE]; 27 ret = __sprintf_chk(str, 0, BUF_SIZE, "test"); 31 ret = __sprintf_chk(str, 0, BUF_SIZE, "%c", '1'); 35 ret = __sprintf_chk(str, 0, BUF_SIZE, "%s,%s", "123", "456"); 39 ret = __sprintf_chk(str, 0, BUF_SIZE, "%%test"); 43 ret = __sprintf_chk(str, 0, BUF_SIZE, "%3$d,%2$s,%1$c", 'a', "bc", 0);
|
D | fortify_pwrite_chk_test.cpp | 7 constexpr int BUF_SIZE = 2; variable 26 EXPECT_EQ(BUF_SIZE, __pwrite_chk(fd, buf, BUF_SIZE, 0, BUF_SIZE)); 28 int ret = __pwrite_chk(fd, buf, BUF_SIZE, 0, BUF_SIZE);
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_read/ |
D | 4-1.c | 40 #define BUF_SIZE 512 in main() macro 41 unsigned char buf[BUF_SIZE * 2]; in main() 42 unsigned char check[BUF_SIZE]; in main() 61 memset(&buf[0], 1, BUF_SIZE); in main() 62 memset(&buf[BUF_SIZE], 2, BUF_SIZE); in main() 64 if (write(fd, buf, BUF_SIZE * 2) != BUF_SIZE * 2) { in main() 69 memset(check, 0xaa, BUF_SIZE); in main() 73 aiocb.aio_nbytes = BUF_SIZE; in main() 74 aiocb.aio_offset = BUF_SIZE; in main() 98 if (ret != BUF_SIZE) { in main() [all …]
|
D | 5-1.c | 41 #define BUF_SIZE 111 in main() macro 42 unsigned char buf[BUF_SIZE]; in main() 43 unsigned char check[BUF_SIZE]; in main() 62 for (i = 0; i < BUF_SIZE; i++) in main() 65 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main() 70 memset(check, 0xaa, BUF_SIZE); in main() 74 aiocb.aio_nbytes = BUF_SIZE; in main() 99 if (ret != BUF_SIZE) { in main() 107 for (i = 0; i < BUF_SIZE; i++) { in main()
|
/third_party/ltp/testcases/kernel/syscalls/writev/ |
D | writev03.c | 31 #define BUF_SIZE (2 * CHUNK_SIZE) macro 36 static unsigned char buf[BUF_SIZE], *map_ptr; 46 for (i = 0; i < BUF_SIZE; i++) in setup() 50 SAFE_WRITE(SAFE_WRITE_ALL, mapfd, buf, BUF_SIZE); in setup() 59 written = BUF_SIZE; in thread_run() 67 map_ptr = SAFE_MMAP(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, in thread_run() 79 SAFE_MUNMAP(map_ptr, BUF_SIZE); in thread_run() 90 unsigned char readbuf[BUF_SIZE + 1]; in run() 101 BUF_SIZE + 1 - total_read); in run() 107 if (total_read > BUF_SIZE) in run() [all …]
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/lio_listio/ |
D | 8-1.c | 41 #define BUF_SIZE 512 in main() macro 42 unsigned char buf[BUF_SIZE]; in main() 43 unsigned char check[BUF_SIZE]; in main() 64 for (i = 0; i < BUF_SIZE; i++) in main() 67 if (write(fd, buf, BUF_SIZE) != BUF_SIZE) { in main() 72 memset(check, 0xaa, BUF_SIZE); in main() 76 aiocb.aio_nbytes = BUF_SIZE; in main() 99 if (ret != BUF_SIZE) { in main() 107 for (i = 0; i < BUF_SIZE; i++) { in main()
|
D | 9-1.c | 42 #define BUF_SIZE 512 in main() macro 43 unsigned char buf[BUF_SIZE]; in main() 44 unsigned char check[BUF_SIZE]; in main() 65 for (i = 0; i < BUF_SIZE; i++) in main() 71 aiocb.aio_nbytes = BUF_SIZE; in main() 92 if (ret != BUF_SIZE) { in main() 99 memset(check, 0xaa, BUF_SIZE); in main() 101 if (read(fd, check, BUF_SIZE) != BUF_SIZE) { in main() 110 for (i = 0; i < BUF_SIZE; i++) { in main()
|