/third_party/ltp/testcases/kernel/syscalls/times/ |
D | times03.c | 81 struct tms buf1, buf2, buf3; in verify_times() local 99 if (times(&buf2) == -1) in verify_times() 102 if (buf2.tms_utime == 0) in verify_times() 105 tst_res(TPASS, "buf2.tms_utime = %li", buf2.tms_utime); in verify_times() 107 if (buf1.tms_utime >= buf2.tms_utime) { in verify_times() 109 buf1.tms_utime, buf2.tms_utime); in verify_times() 112 buf1.tms_utime, buf2.tms_utime); in verify_times() 115 if (buf2.tms_stime == 0) in verify_times() 118 tst_res(TPASS, "buf2.tms_stime = %li", buf2.tms_stime); in verify_times() 120 if (buf1.tms_stime >= buf2.tms_stime) { in verify_times() [all …]
|
/third_party/grpc/third_party/upb/tests/pb/ |
D | test_varint.c | 20 char buf2[16]; in test_varint_for_num() local 23 memset(buf2, 0, sizeof(buf2)); in test_varint_for_num() 24 memcpy(&buf2, &encoded, 8); in test_varint_for_num() 27 swap[0] = buf2[7]; in test_varint_for_num() 28 swap[1] = buf2[6]; in test_varint_for_num() 29 swap[2] = buf2[5]; in test_varint_for_num() 30 swap[3] = buf2[4]; in test_varint_for_num() 31 swap[4] = buf2[3]; in test_varint_for_num() 32 swap[5] = buf2[2]; in test_varint_for_num() 33 swap[6] = buf2[1]; in test_varint_for_num() [all …]
|
/third_party/boost/boost/sort/common/util/ |
D | merge.hpp | 85 static Iter3_t merge(Iter1_t buf1, const Iter1_t end_buf1, Iter2_t buf2, in merge() argument 104 if (size_t((end_buf1 - buf1) + (end_buf2 - buf2)) >= MIN_CHECK) in merge() 106 if (buf1 == end_buf1) return move_forward(buf_out, buf2, end_buf2); in merge() 107 if (buf2 == end_buf2) return move_forward(buf_out, buf1, end_buf1); in merge() 109 if (not comp(*buf2, *(end_buf1 - 1))) in merge() 112 return move_forward(mid, buf2, end_buf2); in merge() 117 Iter3_t mid = move_forward(buf_out, buf2, end_buf2); in merge() 121 while ((buf1 != end_buf1) and (buf2 != end_buf2)) in merge() 123 *(buf_out++) = (not comp(*buf2, *buf1)) ? in merge() 124 std::move(*(buf1++)) : std::move(*(buf2++)); in merge() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/ |
D | mem_intrin.cpp | 43 int memcpy_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length) { in memcpy_test() argument 45 memcpy((void *)buf2, (void *)buf, length); in memcpy_test() 46 return fletcher_checksum(buf2, length); in memcpy_test() 49 int memmove_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length) { in memmove_test() argument 63 memmove((void *)buf2, (void *)buf, length); in memmove_test() 64 sum2 = fletcher_checksum(buf2, length); in memmove_test() 68 int memset_test(uint8_t *buf, uint8_t *buf2, uint8_t init, SizeT length) { in memset_test() argument 70 memset((void *)buf2, init + 4, length); in memset_test() 71 return fletcher_checksum(buf, length) + fletcher_checksum(buf2, length); in memset_test() 77 uint8_t buf2[NBYTES]; \ [all …]
|
/third_party/ffmpeg/libavformat/ |
D | ac3dec.c | 31 const uint8_t *buf, *buf2, *end; in ac3_eac3_probe() local 42 buf2 = buf; in ac3_eac3_probe() 44 for(frames = 0; buf2 < end; frames++) { in ac3_eac3_probe() 50 if(!memcmp(buf2, "\x1\x10", 2)) { in ac3_eac3_probe() 51 if (buf2 + 16 > end) in ac3_eac3_probe() 53 buf2+=16; in ac3_eac3_probe() 57 buf3[i ] = buf2[i+1]; in ac3_eac3_probe() 58 buf3[i+1] = buf2[i ]; in ac3_eac3_probe() 63 ret = av_ac3_parse_header(buf2, end - buf2, &bitstream_id, in ac3_eac3_probe() 67 if(buf2 + frame_size > end) in ac3_eac3_probe() [all …]
|
D | loasdec.c | 35 const uint8_t *buf2; in loas_probe() local 40 for (; buf < end; buf = buf2 + 1) { in loas_probe() 41 buf2 = buf; in loas_probe() 43 for (frames = 0; buf2 < end; frames++) { in loas_probe() 44 uint32_t header = AV_RB24(buf2); in loas_probe() 50 fsize = FFMIN(fsize, end - buf2); in loas_probe() 51 buf2 += fsize; in loas_probe()
|
/third_party/ffmpeg/libavutil/tests/ |
D | pixelutils.c | 77 uint8_t *buf2 = av_malloc(W2*H2); in main() local 80 if (!buf1 || !buf2) { in main() 98 RANDOM_INIT(buf2, W2*H2); in main() 99 ret = run_test("random", buf1, buf2); in main() 105 memset(buf2, 0x00, W2*H2); in main() 106 ret = run_test("max", buf1, buf2); in main() 112 memset(buf2, 0x90, W2*H2); in main() 113 ret = run_test("min", buf1, buf2); in main() 123 av_freep(&buf2); in main() 134 buf2 = av_malloc(size2); in main() [all …]
|
/third_party/gstreamer/gstreamer/tests/check/gst/ |
D | gstbufferlist.c | 49 GstBuffer *buf2; in GST_START_TEST() local 66 buf2 = gst_buffer_new (); in GST_START_TEST() 67 gst_buffer_list_add (list, buf2); in GST_START_TEST() 68 ASSERT_BUFFER_REFCOUNT (buf2, "buf2", 1); in GST_START_TEST() 105 GstBuffer *buf2; in GST_START_TEST() local 113 buf2 = gst_buffer_new_allocate (NULL, 2, NULL); in GST_START_TEST() 115 gst_buffer_list_add (list, gst_buffer_append (buf2, buf3)); in GST_START_TEST() 126 fail_unless (buf == buf2); in GST_START_TEST() 127 ASSERT_BUFFER_REFCOUNT (buf2, "buf2", 1); in GST_START_TEST() 145 fail_unless (buf == buf2); in GST_START_TEST() [all …]
|
D | gstbufferpool.c | 111 GstBuffer *buf1 = NULL, *buf2 = NULL, *prev; in GST_START_TEST() local 117 gst_buffer_pool_acquire_buffer (pool, &buf2, NULL); in GST_START_TEST() 118 buffer_track_destroy (buf2, &dcount2); in GST_START_TEST() 119 prev = buf2; in GST_START_TEST() 120 gst_buffer_unref (buf2); in GST_START_TEST() 125 gst_buffer_pool_acquire_buffer (pool, &buf2, NULL); in GST_START_TEST() 126 fail_unless (buf2 == prev, "got a fresh buffer instead of previous"); in GST_START_TEST() 129 gst_buffer_unref (buf2); in GST_START_TEST() 317 GstBuffer *buf1, *buf2; in GST_START_TEST() local 329 fail_unless (gst_buffer_pool_acquire_buffer (pool, &buf2, in GST_START_TEST() [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
D | readv.c | 36 char buf2[] = "world"; in readv_0100() local 37 struct iovec ios[] = {{buf1, strlen(buf1)}, {buf2, strlen(buf2)}}; in readv_0100() 40 if (result != strlen(buf1) + strlen(buf2)) { in readv_0100() 47 memset(buf2, 0, sizeof(buf2)); in readv_0100() 50 if (result != strlen(buf1) + strlen(buf2)) { in readv_0100() 58 if (strcmp(buf2, "world")) { in readv_0100() 59 t_error("%s failed: buf2 = %s\n", __func__, buf2); in readv_0100()
|
D | pwritev.c | 29 char buf2[] = "and pwritev"; in pwritev_0100() local 34 iov[1].iov_base = buf2; in pwritev_0100() 35 iov[1].iov_len = sizeof(buf2) / sizeof(char); in pwritev_0100() 58 char buf2[] = "pwritev2"; in pwritev_0200() local 63 iov[1].iov_base = buf2; in pwritev_0200() 64 iov[1].iov_len = sizeof(buf2) / sizeof(char); in pwritev_0200() 91 char buf2[] = "pwritev2"; in pwritev_0300() local 96 iov[1].iov_base = buf2; in pwritev_0300() 97 iov[1].iov_len = sizeof(buf2) / sizeof(char); in pwritev_0300()
|
D | preadv.c | 32 char buf2[BUFFER_SIZE]; in preadv_0100() local 36 memset(buf2, '\0', BUFFER_SIZE); in preadv_0100() 40 iov[1].iov_base = buf2; in preadv_0100() 41 iov[1].iov_len = sizeof(buf2) / sizeof(char); in preadv_0100() 75 char buf2[8]; in preadv_0200() local 80 iov[1].iov_base = buf2; in preadv_0200() 81 iov[1].iov_len = sizeof(buf2) / sizeof(char); in preadv_0200()
|
/third_party/gstreamer/gstplugins_bad/gst/debugutils/ |
D | gstcompare.c | 241 GstBuffer * buf2, GstCaps * caps2) in gst_compare_meta() argument 246 if (GST_BUFFER_FLAGS (buf1) != GST_BUFFER_FLAGS (buf2)) { in gst_compare_meta() 249 GST_BUFFER_FLAGS (buf2)); in gst_compare_meta() 253 if (GST_BUFFER_TIMESTAMP (buf1) != GST_BUFFER_TIMESTAMP (buf2)) { in gst_compare_meta() 258 GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf2))); in gst_compare_meta() 260 if (GST_BUFFER_DURATION (buf1) != GST_BUFFER_DURATION (buf2)) { in gst_compare_meta() 265 GST_TIME_ARGS (GST_BUFFER_DURATION (buf2))); in gst_compare_meta() 268 if (GST_BUFFER_OFFSET (buf1) != GST_BUFFER_OFFSET (buf2)) { in gst_compare_meta() 272 GST_BUFFER_OFFSET (buf1), GST_BUFFER_OFFSET (buf2)); in gst_compare_meta() 274 if (GST_BUFFER_OFFSET_END (buf1) != GST_BUFFER_OFFSET_END (buf2)) { in gst_compare_meta() [all …]
|
/third_party/openssl/test/ |
D | rc5test.c | 182 unsigned char buf[8], buf2[8]; in test_rc5_ecb() local 190 RC5_32_ecb_encrypt(buf, buf2, &key, RC5_DECRYPT); in test_rc5_ecb() 191 if (!TEST_mem_eq(&RC5plain[n][0], sizeof(RC5cipher[0]), buf2, sizeof(buf2))) in test_rc5_ecb() 202 unsigned char buf[8], buf2[8], ivb[8]; in test_rc5_cbc() local 217 RC5_32_cbc_encrypt(buf, buf2, 8, &key, &ivb[0], RC5_DECRYPT); in test_rc5_cbc() 219 buf2, sizeof(buf2))) in test_rc5_cbc()
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/ |
D | cpuset_sched_domains_check.c | 54 char buf1[128], buf2[128]; in check_sched_domains() local 93 bitmask_displaylist(buf2, sizeof(buf2), in check_sched_domains() 100 cpu, buf1, buf2); in check_sched_domains() 108 bitmask_displaylist(buf2, sizeof(buf2), in check_sched_domains() 112 cpu, buf1, buf2); in check_sched_domains()
|
/third_party/gstreamer/gstreamer/tests/check/libs/ |
D | transform2.c | 32 GstBuffer *buf1, *buf2; variable 63 fail_unless (buf1 == NULL || buf2 == NULL); in collate_submit_input_buffer() 68 } else if (buf2 == NULL) { in collate_submit_input_buffer() 69 buf2 = trans->queued_buf; in collate_submit_input_buffer() 80 if (buf1 == NULL || buf2 == NULL) in collate_generate_output() 83 fail_unless (buf1 != NULL && buf2 != NULL); in collate_generate_output() 87 gst_buffer_unref (buf2); in collate_generate_output() 89 buf2 = NULL; in collate_generate_output()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
D | utimes.c | 41 struct stat buf2; in utimes_0100() local 51 stat(path, &buf2); in utimes_0100() 52 t_new = buf2.st_mtime; in utimes_0100() 104 struct stat buf2; in utimes_time64_0100() local 114 stat(path, &buf2); in utimes_time64_0100() 115 t_new = buf2.st_mtime; in utimes_time64_0100()
|
/third_party/openssl/crypto/err/ |
D | err_prn.c | 21 char buf2[4096]; in ERR_print_errors_cb() local 38 BIO_snprintf(buf2, sizeof(buf2), "%lu:%s:%s:%d:%s\n", tid.ltid, buf, in ERR_print_errors_cb() 40 if (cb(buf2, strlen(buf2), u) <= 0) in ERR_print_errors_cb()
|
/third_party/gettext/gettext-runtime/intl/ |
D | langprefs.c | 263 char buf2[256]; in _nl_language_preferences_default() local 276 strcpy (buf2, buf); in _nl_language_preferences_default() 293 char *last_minus = strrchr (buf2, '-'); in _nl_language_preferences_default() 297 _nl_locale_name_canonicalize (buf2); in _nl_language_preferences_default() 298 size += strlen (buf2) + 1; in _nl_language_preferences_default() 331 strcpy (buf2, buf); in _nl_language_preferences_default() 337 char *last_minus = strrchr (buf2, '-'); in _nl_language_preferences_default() 341 _nl_locale_name_canonicalize (buf2); in _nl_language_preferences_default() 342 strcpy (p, buf2); in _nl_language_preferences_default() 343 p += strlen (buf2); in _nl_language_preferences_default()
|
/third_party/ltp/testcases/kernel/syscalls/rename/ |
D | rename05.c | 75 struct stat buf1, buf2; variable 150 if (stat(mdir, &buf2) != -1) { in setup() 156 SAFE_STAT(cleanup, mdir, &buf2); in setup() 159 olddev1 = buf2.st_dev; in setup() 160 oldino1 = buf2.st_ino; in setup()
|
D | rename06.c | 76 struct stat buf1, buf2; variable 150 if (stat(mdir, &buf2) != -1) { in setup() 155 SAFE_STAT(cleanup, mdir, &buf2); in setup() 158 olddev1 = buf2.st_dev; in setup() 159 oldino1 = buf2.st_ino; in setup()
|
/third_party/grpc/third_party/upb/tests/ |
D | test_util.h | 113 char *buf2 = NULL; in ParseBuffer() local 118 buf2 = (char*)malloc(bytes); in ParseBuffer() 119 UPB_ASSERT(buf2); in ParseBuffer() 120 memcpy(buf2, buf_ + ofs_, bytes); in ParseBuffer() 123 if (buf2 == NULL && bytes == 0) { in ParseBuffer() 133 int parsed = (int)sink_.PutBuffer(subc_, buf2, bytes, &global_handle); in ParseBuffer() 134 free(buf2); in ParseBuffer()
|
/third_party/ltp/testcases/kernel/io/direct_io/ |
D | diotest4.c | 201 char *buf0, *buf1, *buf2; in main() local 237 if ((buf2 = valloc(bufsize)) == NULL) { in main() 267 if (write(fd, buf2, 4096) == -1) { in main() 278 ret = runtest_f(fd, buf2, offset, count, EINVAL, 3, "odd count"); in main() 295 ret = read(fd, buf2, count); in main() 311 ret = runtest_f(newfd, buf2, offset, count, EBADF, 5, "negative fd"); in main() 323 ret = runtest_f(newfd, buf2, offset, count, EBADF, 6, in main() 335 ret = runtest_f(fd, buf2, offset, count, EBADF, 7, "closed fd"); in main() 348 ret = runtest_s(newfd, buf2, offset, count, 9, "/dev/null"); in main() 368 ret = runtest_s(fd, buf2, offset, count, 10, "mmapped file"); in main() [all …]
|
/third_party/ffmpeg/libavformat/tests/ |
D | url.c | 52 char buf[200], buf2[200], buf_dos[200], buf_native[200]; in test() local 74 snprintf(buf2, sizeof(buf2), "%s", base); in test() 75 ff_make_absolute_url2(buf2, sizeof(buf2), buf2, rel, 0); in test() 76 if (strcmp(buf, buf2)) { in test()
|
/third_party/node/test/parallel/ |
D | test-dgram-send-callback-multi-buffer-empty-address.js | 10 assert.strictEqual(bytes, buf1.length + buf2.length); 14 const buf2 = Buffer.alloc(256, 'y'); constant 18 client.send([buf1, buf2], port, messageSent); 22 const expected = Buffer.concat([buf1, buf2]);
|