/third_party/json/tests/thirdparty/Fuzzer/test/ |
H A D | FuzzerUnittest.cpp | 123 if (NewSize == 7 && !memcmp(REM0, T, 7)) FoundMask |= 1 << 0; in TestEraseBytes() 124 if (NewSize == 7 && !memcmp(REM1, T, 7)) FoundMask |= 1 << 1; in TestEraseBytes() 125 if (NewSize == 7 && !memcmp(REM2, T, 7)) FoundMask |= 1 << 2; in TestEraseBytes() 126 if (NewSize == 7 && !memcmp(REM3, T, 7)) FoundMask |= 1 << 3; in TestEraseBytes() 127 if (NewSize == 7 && !memcmp(REM4, T, 7)) FoundMask |= 1 << 4; in TestEraseBytes() 128 if (NewSize == 7 && !memcmp(REM5, T, 7)) FoundMask |= 1 << 5; in TestEraseBytes() 129 if (NewSize == 7 && !memcmp(REM6, T, 7)) FoundMask |= 1 << 6; in TestEraseBytes() 130 if (NewSize == 7 && !memcmp(REM7, T, 7)) FoundMask |= 1 << 7; in TestEraseBytes() 132 if (NewSize == 6 && !memcmp(REM8, T, 6)) FoundMask |= 1 << 8; in TestEraseBytes() 133 if (NewSize == 6 && !memcmp(REM in TestEraseBytes() [all...] |
H A D | MemcmpTest.cpp | 12 if (Size >= 8 && memcmp(Data, "01234567", 8) == 0) { in LLVMFuzzerTestOneInput() 13 if (Size >= 12 && memcmp(Data + 8, "ABCD", 4) == 0) { in LLVMFuzzerTestOneInput() 14 if (Size >= 14 && memcmp(Data + 12, "XY", 2) == 0) { in LLVMFuzzerTestOneInput() 15 if (Size >= 17 && memcmp(Data + 14, "KLM", 3) == 0) { in LLVMFuzzerTestOneInput() 16 if (Size >= 27 && memcmp(Data + 17, "ABCDE-GHIJ", 10) == 0){ in LLVMFuzzerTestOneInput()
|
/third_party/toybox/toys/posix/ |
H A D | file.c | 182 if (n_namesz==4 && !memcmp(note+12, "GNU", 4)) { in do_elf_file() 187 } else if (n_namesz==8 && !memcmp(note+12, "Android", 8)) { in do_elf_file() 250 else if (len>32 && !memcmp(toybuf, "\xff\xd8", 2)) xputs("JPEG image data"); in do_regular_file() 290 else if (len>32 && !memcmp(s+1, "\xfa\xed\xfe", 3)) { in do_regular_file() 309 } else if (len>36 && !memcmp(s, "OggS\x00\x02", 6)) { in do_regular_file() 312 if (!memcmp(s+28, "CELT ", 8)) xprintf(", celt audio"); in do_regular_file() 313 else if (!memcmp(s+28, "CMML ", 8)) xprintf(", cmml text"); in do_regular_file() 314 else if (!memcmp(s+28, "BBCD\0", 5)) xprintf(", dirac video"); in do_regular_file() 315 else if (!memcmp(s+28, "\177FLAC", 5)) xprintf(", flac audio"); in do_regular_file() 316 else if (!memcmp( in do_regular_file() [all...] |
/third_party/skia/third_party/externals/sfntly/cpp/src/test/ |
H A D | file_io_test.cc | 52 EXPECT_EQ(memcmp(&(b1[0]), &(b2[0]), length), 0); in TestFileInputStream() 59 EXPECT_EQ(memcmp(&(b1[89]), &(b2[0]), 100), 0); in TestFileInputStream() 65 EXPECT_EQ(memcmp(&(b1[100]), &(b2[0]), 100), 0); in TestFileInputStream() 69 EXPECT_EQ(memcmp(&(b1[300]), &(b2[0]), 100), 0); in TestFileInputStream() 76 EXPECT_EQ(memcmp(&(b1[0]), &(b2[0]), 200), 0); in TestFileInputStream() 82 EXPECT_EQ(memcmp(&(b3[0]), &(b2[0]), 200), 0); in TestFileInputStream() 114 EXPECT_EQ(memcmp(&(b1[0]), &(b2[0]), length), 0); in TestFontInputStreamBasic() 121 EXPECT_EQ(memcmp(&(b1[89]), &(b2[0]), 100), 0); in TestFontInputStreamBasic() 123 EXPECT_EQ(memcmp(&(b1[89]), &(b2[0]), 200), 0); in TestFontInputStreamBasic() 127 EXPECT_EQ(memcmp( in TestFontInputStreamBasic() [all...] |
H A D | memory_io_test.cc | 54 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + 3, 7), 0); in TestMemoryInputStream() 58 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + 3, 17), 0); in TestMemoryInputStream() 65 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + 50, 10), 0); in TestMemoryInputStream() 70 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + 40, 10), 0); in TestMemoryInputStream() 79 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + kTestBufferLen - 10, 10), 0); in TestMemoryInputStream() 92 EXPECT_EQ(memcmp(os.Get(), &(test_buffer[0]) + 50, kTestBufferLen - 50), 0); in TestMemoryOutputStream()
|
/third_party/libuv/test/ |
H A D | test-fs-poll.c | 114 ASSERT_OK(memcmp(prev, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb() 115 ASSERT_OK(memcmp(curr, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb() 121 ASSERT_OK(memcmp(prev, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb() 122 ASSERT_NE(0, memcmp(curr, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb() 128 ASSERT_NE(0, memcmp(prev, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb() 129 ASSERT_NE(0, memcmp(curr, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb() 135 ASSERT_NE(0, memcmp(prev, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb() 136 ASSERT_NE(0, memcmp(curr, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb() 142 ASSERT_NE(0, memcmp(prev, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb() 143 ASSERT_OK(memcmp(cur in poll_cb() [all...] |
H A D | test-strscpy.c | 37 ASSERT_OK(memcmp(d, "x\0\0", sizeof(d))); in TEST_IMPL() 41 ASSERT_OK(memcmp(d, "xy\0", sizeof(d))); in TEST_IMPL() 44 ASSERT_OK(memcmp(d, "xyz", sizeof(d))); in TEST_IMPL() 47 ASSERT_OK(memcmp(d, "xyz", sizeof(d))); in TEST_IMPL() 50 ASSERT_OK(memcmp(d, "xyz", sizeof(d))); in TEST_IMPL()
|
/third_party/libcoap/tests/ |
H A D | test_pdu.c | 54 CU_ASSERT(memcmp(pdu->token, teststr + 4, 5) == 0); in t_parse_pdu2() 101 CU_ASSERT(memcmp(pdu->token, teststr + 4, 5) == 0); in t_parse_pdu5() 136 CU_ASSERT(memcmp(pdu->token, teststr + 4, 5) == 0); in t_parse_pdu7() 141 CU_ASSERT(memcmp(pdu->data, teststr + 13, 7) == 0); in t_parse_pdu7() 165 CU_ASSERT(memcmp(pdu->data, teststr + 5, 7) == 0); in t_parse_pdu8() 351 CU_ASSERT(memcmp(pdu->token - 4, teststr, sizeof(teststr)) == 0); in t_encode_pdu1() 441 CU_ASSERT(memcmp(pdu->token - 4, teststr, sizeof(teststr)) == 0); in t_encode_pdu4() 482 CU_ASSERT(memcmp(pdu->token - 4, teststr, sizeof(teststr)) == 0); in t_encode_pdu5() 504 CU_ASSERT(memcmp(pdu->token - 4, teststr, sizeof(teststr)) == 0); in t_encode_pdu6() 527 CU_ASSERT(memcmp(pd in t_encode_pdu7() [all...] |
/third_party/ltp/testcases/kernel/syscalls/memcmp/ |
H A D | memcmp01.c | 57 if (memcmp(p, q, len)) { in verify_memcmp() 58 tst_res(TFAIL, "memcmp fails - should have succeeded."); in verify_memcmp() 64 if (memcmp(p, q, len) >= 0) { in verify_memcmp() 65 tst_res(TFAIL, "memcmp succeeded - should have failed."); in verify_memcmp() 72 if (memcmp(p, q, len) >= 0) { in verify_memcmp() 73 tst_res(TFAIL, "memcmp succeeded - should have failed."); in verify_memcmp() 80 if (memcmp(p, q, len) <= 0) { in verify_memcmp() 81 tst_res(TFAIL, "memcmp succeeded - should have failed."); in verify_memcmp() 88 if (memcmp(p, q, len) <= 0) { in verify_memcmp() 89 tst_res(TFAIL, "memcmp succeede in verify_memcmp() [all...] |
/third_party/lwip/test/unit/ip6/ |
H A D | test_ip6.c | 161 fail_unless(memcmp(&addr6, &addr_expected, 16) == 0); in START_TEST() 165 fail_unless(memcmp(&addr, &addr_expected, 16) == 0); in START_TEST() 171 fail_unless(memcmp(&addr6, &addr_expected, 16) == 0); in START_TEST() 175 fail_unless(memcmp(&addr, &addr_expected, 16) == 0); in START_TEST() 181 fail_unless(memcmp(&addr6, &addr_expected, 16) == 0); in START_TEST() 185 fail_unless(memcmp(&addr, &addr_expected, 16) == 0); in START_TEST() 191 fail_unless(memcmp(&addr6, &addr_expected, 16) == 0); in START_TEST() 195 fail_unless(memcmp(&addr, &addr_expected, 16) == 0); in START_TEST() 255 fail_unless(!memcmp(test_netif6.hwaddr, zeros, 6)); in START_TEST() 258 fail_unless(!memcmp(netif_ip6_add in START_TEST() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | nistspheredec.c | 60 if (!memcmp(buffer, "end_head", 8)) { in nist_read_header() 92 } else if (!memcmp(buffer, "channel_count", 13)) { in nist_read_header() 96 } else if (!memcmp(buffer, "sample_byte_format", 18)) { in nist_read_header() 109 } else if (!memcmp(buffer, "sample_coding", 13)) { in nist_read_header() 111 } else if (!memcmp(buffer, "sample_count", 12)) { in nist_read_header() 113 } else if (!memcmp(buffer, "sample_n_bytes", 14)) { in nist_read_header() 117 } else if (!memcmp(buffer, "sample_rate", 11)) { in nist_read_header() 119 } else if (!memcmp(buffer, "sample_sig_bits", 15)) { in nist_read_header()
|
H A D | rtpenc_jpeg.c | 104 && !memcmp(buf + i + 2, ff_mjpeg_bits_dc_luminance + 1, 16) in ff_rtp_send_jpeg() 105 && !memcmp(buf + i + 18, ff_mjpeg_val_dc, 12)) { in ff_rtp_send_jpeg() 116 && !memcmp(buf + i + 2, ff_mjpeg_bits_dc_chrominance + 1, 16) in ff_rtp_send_jpeg() 117 && !memcmp(buf + i + 18, ff_mjpeg_val_dc, 12)) { in ff_rtp_send_jpeg() 128 && !memcmp(buf + i + 2, ff_mjpeg_bits_ac_luminance + 1, 16) in ff_rtp_send_jpeg() 129 && !memcmp(buf + i + 18, ff_mjpeg_val_ac_luminance, 162)) { in ff_rtp_send_jpeg() 140 && !memcmp(buf + i + 2, ff_mjpeg_bits_ac_chrominance + 1, 16) in ff_rtp_send_jpeg() 141 && !memcmp(buf + i + 18, ff_mjpeg_val_ac_chrominance, 162)) { in ff_rtp_send_jpeg()
|
H A D | mms.c | 62 memcmp(p, ff_asf_header, sizeof(ff_asf_guid))) { in ff_mms_asf_header_parser() 74 if (!memcmp(p, ff_asf_data_header, sizeof(ff_asf_guid))) { in ff_mms_asf_header_parser() 85 if (!memcmp(p, ff_asf_file_header, sizeof(ff_asf_guid))) { in ff_mms_asf_header_parser() 96 } else if (!memcmp(p, ff_asf_stream_header, sizeof(ff_asf_guid))) { in ff_mms_asf_header_parser() 118 } else if (!memcmp(p, ff_asf_ext_stream_header, sizeof(ff_asf_guid))) { in ff_mms_asf_header_parser() 146 } else if (!memcmp(p, ff_asf_head1_guid, sizeof(ff_asf_guid))) { in ff_mms_asf_header_parser()
|
/third_party/lz4/ossfuzz/ |
H A D | round_trip_fuzzer.c | 42 FUZZ_ASSERT_MSG(!memcmp(data, rt, size), "Corruption!"); in LLVMFuzzerTestOneInput() 52 FUZZ_ASSERT_MSG(!memcmp(data, partial, partialSize), "Corruption!"); in LLVMFuzzerTestOneInput() 63 FUZZ_ASSERT_MSG(!memcmp(data, partial, partialSize), "Corruption!"); in LLVMFuzzerTestOneInput() 74 FUZZ_ASSERT_MSG(!memcmp(data, partial, partialSize), "Corruption!"); in LLVMFuzzerTestOneInput() 85 FUZZ_ASSERT_MSG(!memcmp(data, partial, partialSize), "Corruption!"); in LLVMFuzzerTestOneInput() 96 FUZZ_ASSERT_MSG(!memcmp(data, partial, partialSize), "Corruption!"); in LLVMFuzzerTestOneInput() 107 FUZZ_ASSERT_MSG(!memcmp(data, partial, partialSize), "Corruption!"); in LLVMFuzzerTestOneInput()
|
/third_party/libwebsockets/minimal-examples/api-tests/api-test-lws_map/ |
H A D | main.c | 72 memcmp(lws_map_item_value(item), "def", 3)) { in main() 84 memcmp(lws_map_item_value(item), "4567", 4)) { in main() 128 memcmp(lws_map_item_value(item), "def", 3)) { in main() 140 memcmp(lws_map_item_value(item), "4567", 4)) { in main() 188 memcmp(lws_map_item_value(item), "def", 3)) { in main() 202 memcmp(lws_map_item_value(item), "4567", 4)) { in main() 244 memcmp(lws_map_item_value(item), "4567", 4)) { in main()
|
/third_party/skia/tests/ |
H A D | StreamBufferTest.cpp | 23 REPORTER_ASSERT(r, !memcmp(data->data(), gText + position, length)); in test_get_data_at_position() 38 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText, buffered)); in test_buffer_from_beginning() 45 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText, length)); in test_buffer_from_beginning() 61 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText + position, step)); in test_flushing() 123 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText, 5)); in DEF_TEST() 128 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText, 14)); in DEF_TEST() 147 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText + 27, remaining)); in DEF_TEST()
|
/third_party/ltp/testcases/kernel/fs/doio/ |
H A D | pattern.c | 60 return (memcmp(cp, pat + patshift, nleft) ? -1 : 0); in pattern_check() 62 if (memcmp(cp, pat + patshift, nb)) in pattern_check() 72 return (memcmp(cp, pat, nleft) ? -1 : 0); in pattern_check() 74 if (memcmp(cp, pat, nb)) in pattern_check() 90 if (memcmp(buf, cp, nb)) in pattern_check()
|
/third_party/musl/libc-test/src/functionalext/supplement/string/string_gtest/ |
H A D | string_memcmp_test.cpp | 13 * @tc.desc: Validate the behavior of the memcmp function when comparing two identical strings, ensuring that memcmp 21 int result = memcmp(str1, str2, strlen(str1)); in HWTEST_F() 27 * @tc.desc: Validate the behavior of the memcmp function when comparing two strings of different lengths, ensuring 28 * that memcmp correctly compares the strings and returns a result greater than 0. 35 int result = memcmp(str1, str2, strlen(str1)); in HWTEST_F() 41 * @tc.desc: Validate the behavior of the memcmp function when comparing strings of different lengths, ensuring that it 49 int result = memcmp(str1, str2, strlen(str2)); in HWTEST_F() 55 * @tc.desc: Validate the behavior of the memcmp function when comparing null pointers or strings with a length of 0, 56 * ensuring that memcmp correctl [all...] |
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/ |
H A D | span.cc | 13 const int r = min_size == 0 ? 0 : memcmp(x.data(), y.data(), min_size); 22 std::memcmp(x.data(), y.data(), len) == 0; 27 const int r = min_size == 0 ? 0 : memcmp(x.data(), y.data(), min_size); 36 std::memcmp(x.data(), y.data(), len) == 0;
|
/third_party/jerryscript/jerry-core/lit/ |
H A D | lit-magic-strings.c | 189 JERRY_ASSERT (memcmp (prev_ex_string_p, curr_ex_string_p, string_size) < 0); in lit_magic_strings_ex_set() 218 int compare = memcmp (lit_get_magic_string_utf8 ((lit_magic_string_id_t) middle), string_p, string_size); in lit_is_utf8_string_magic() 265 int compare = memcmp (middle_string_p, string1_p, string1_size); in lit_is_utf8_string_pair_magic() 269 compare = memcmp (middle_string_p + string1_size, string2_p, string2_size); in lit_is_utf8_string_pair_magic() 318 const int string_compare = memcmp (ext_string_p, string_p, string_size); in lit_is_ex_utf8_string_magic() 378 int string_compare = memcmp (ext_string_p, string1_p, string1_size); in lit_is_ex_utf8_string_pair_magic() 382 string_compare = memcmp (ext_string_p + string1_size, string2_p, string2_size); in lit_is_ex_utf8_string_pair_magic()
|
/third_party/musl/porting/liteos_a/user/src/string/arm/ |
H A D | memcmp.S | 34 .globl memcmp @ -- Begin function memcmp 36 .type memcmp,%function 37 .code 32 @memcmp 38 memcmp: label 205 .size memcmp, Lfunc_end - memcmp
|
/third_party/musl/src/string/arm/liteos_a/ |
H A D | memcmp.S | 34 .globl memcmp @ -- Begin function memcmp 36 .type memcmp,%function 37 .code 32 @memcmp 38 memcmp: label 205 .size memcmp, Lfunc_end - memcmp
|
/third_party/ffmpeg/tests/checkasm/ |
H A D | vf_colorspace.c | 109 if (memcmp(dst0[0], dst1[0], y_dst_stride * H) || in check_yuv2yuv() 110 memcmp(dst0[1], dst1[1], uv_dst_stride * H >> ss_h) || in check_yuv2yuv() 111 memcmp(dst0[2], dst1[2], uv_dst_stride * H >> ss_h)) { in check_yuv2yuv() 172 if (memcmp(dst0[0], dst1[0], W * H * sizeof(int16_t)) || in check_yuv2rgb() 173 memcmp(dst0[1], dst1[1], W * H * sizeof(int16_t)) || in check_yuv2rgb() 174 memcmp(dst0[2], dst1[2], W * H * sizeof(int16_t))) { in check_yuv2rgb() 251 if (memcmp(dst0[0], dst1[0], H * y_dst_stride) || in check_rgb2yuv() 252 memcmp(dst0[1], dst1[1], H * uv_dst_stride >> ss_h) || in check_rgb2yuv() 253 memcmp(dst0[2], dst1[2], H * uv_dst_stride >> ss_h)) { in check_rgb2yuv() 299 if (memcmp(dst in check_multiply3x3() [all...] |
H A D | pixblockdsp.c | 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_SIZE)) \
|
/third_party/libevdev/test/ |
H A D | test-int-queue.c | 101 rc = memcmp(&tmp, &ev, sizeof(tmp)); in START_TEST() 131 rc = memcmp(&tmp, &ev, sizeof(tmp)); in START_TEST() 141 rc = memcmp(&tmp, &ev, sizeof(tmp)); in START_TEST() 147 rc = memcmp(&tmp, &ev, sizeof(tmp)); in START_TEST() 181 rc = memcmp(&ev, &e1, sizeof(ev)); in START_TEST() 186 rc = memcmp(&ev, &e2, sizeof(ev)); in START_TEST() 221 rc = memcmp(&events[0], &e1, sizeof(ev)); in START_TEST() 223 rc = memcmp(&events[1], &e2, sizeof(ev)); in START_TEST() 238 rc = memcmp(&events[0], &e1, sizeof(ev)); in START_TEST() 243 rc = memcmp( in START_TEST() [all...] |