/third_party/ffmpeg/libavformat/ |
H A D | wvedec.c | 27 if (memcmp(p->buf, "ALawSoundFile**\0\017\020", 18) || in wve_probe() 28 memcmp(p->buf + 22, "\0\0\0\1\0\0\0\0\0\0", 10)) in wve_probe()
|
H A D | wavdec.c | 153 if (!memcmp(p->buf + 8, "WAVE", 4)) { in wav_probe() 154 if (!memcmp(p->buf, "RIFF", 4) || !memcmp(p->buf, "RIFX", 4)) in wav_probe() 159 else if ((!memcmp(p->buf, "RF64", 4) || in wav_probe() 160 !memcmp(p->buf, "BW64", 4)) && in wav_probe() 161 !memcmp(p->buf + 12, "ds64", 4)) in wav_probe() 698 if (!memcmp(guid, guid1, 16)) in find_guid() 858 if (!memcmp(p->buf, ff_w64_guid_riff, 16) && in w64_probe() 859 !memcmp(p->buf + 24, ff_w64_guid_wave, 16)) in w64_probe() 874 if (avio_read(pb, guid, 16) != 16 || memcmp(gui in w64_read_header() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/network/ |
H A D | res_mkquery.c | 44 result = memcmp(buf + 12, qname, sizeof(qname) - 1); in res_mkquery_0100() 49 result = memcmp(buf + 4, qbuf, sizeof(qbuf) - 1); in res_mkquery_0100()
|
/third_party/skia/src/pdf/ |
H A D | SkPDFGraphicState.h | 56 bool operator==(const SkPDFStrokeGraphicState& o) const { return !memcmp(this, &o, sizeof(o)); } in operator ==() 66 bool operator==(const SkPDFFillGraphicState& o) const { return !memcmp(this, &o, sizeof(o)); } in operator ==()
|
/kernel/linux/linux-5.10/arch/x86/boot/ |
H A D | string.c | 30 #undef memcmp macro 32 int memcmp(const void *s1, const void *s2, size_t len) in memcmp() function 41 * Clang may lower `memcmp == 0` to `bcmp == 0`. 45 return memcmp(s1, s2, len); in bcmp() 181 if (!memcmp(s1, s2, l2)) in strstr()
|
/kernel/linux/linux-6.6/arch/x86/boot/ |
H A D | string.c | 30 #undef memcmp macro 32 int memcmp(const void *s1, const void *s2, size_t len) in memcmp() function 41 * Clang may lower `memcmp == 0` to `bcmp == 0`. 45 return memcmp(s1, s2, len); in bcmp() 181 if (!memcmp(s1, s2, l2)) in strstr()
|
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/ |
H A D | sta_rx.c | 49 if (!memcmp(arp->ar_sip, arp->ar_tip, 4)) in mwifiex_discard_gratuitous_arp() 58 if (!memcmp(&ipv6->saddr, &ipv6->daddr, in mwifiex_discard_gratuitous_arp() 112 ((!memcmp(&rx_pkt_hdr->rfc1042_hdr, bridge_tunnel_header, in mwifiex_process_rx_packet() 114 (!memcmp(&rx_pkt_hdr->rfc1042_hdr, rfc1042_header, in mwifiex_process_rx_packet()
|
/kernel/linux/linux-6.6/drivers/net/wireless/marvell/mwifiex/ |
H A D | sta_rx.c | 37 if (!memcmp(arp->ar_sip, arp->ar_tip, 4)) in mwifiex_discard_gratuitous_arp() 46 if (!memcmp(&ipv6->saddr, &ipv6->daddr, in mwifiex_discard_gratuitous_arp() 100 ((!memcmp(&rx_pkt_hdr->rfc1042_hdr, bridge_tunnel_header, in mwifiex_process_rx_packet() 102 (!memcmp(&rx_pkt_hdr->rfc1042_hdr, rfc1042_header, in mwifiex_process_rx_packet()
|
/third_party/ffmpeg/tests/checkasm/ |
H A D | sw_rgb.c | 64 if (memcmp(dst0, dst1, MAX_STRIDE)) in check_shuffle_bytes() 104 if (memcmp(dst_y_0, dst_y_1, MAX_STRIDE * MAX_HEIGHT) || in check_uyvy_to_422p() 105 memcmp(dst_u_0, dst_u_1, (MAX_STRIDE/2) * MAX_HEIGHT) || in check_uyvy_to_422p() 106 memcmp(dst_v_0, dst_v_1, (MAX_STRIDE/2) * MAX_HEIGHT)) in check_uyvy_to_422p()
|
H A D | h264pred.c | 155 if (memcmp(buf0, buf1, BUF_SIZE)) in check_pred4x4() 175 if (memcmp(buf0, buf1, BUF_SIZE)) in check_pred8x8() 194 if (memcmp(buf0, buf1, BUF_SIZE)) in check_pred16x16() 222 if (memcmp(buf0, buf1, BUF_SIZE)) in check_pred8x8l()
|
/third_party/libcoap/tests/ |
H A D | test_wellknown.c | 61 CU_ASSERT(memcmp(buf, teststr + offset, sizeof(teststr) - offset) == 0); in t_wellknown1() 109 CU_ASSERT(memcmp(buf, teststr + offset, sizeof(buf)) == 0); in t_wellknown2() 121 CU_ASSERT(memcmp(buf, teststr + offset, in t_wellknown2() 186 CU_ASSERT(memcmp(buf, teststr, buflen) == 0); in t_wellknown4()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
H A D | FramebufferMixedSamplesTest.cpp | 218 EXPECT_NE(0, memcmp(results[0].get(), results[1].get(), kResultSize)); in TEST_P() 221 EXPECT_EQ(0, memcmp(results[0].get(), results[2].get(), kResultSize)); in TEST_P() 263 EXPECT_NE(0, memcmp(results[0].get(), results[1].get(), kResultSize)); in TEST_P() 266 EXPECT_EQ(0, memcmp(results[0].get(), results[2].get(), kResultSize)); in TEST_P()
|
/third_party/skia/tests/ |
H A D | ClipperTest.cpp | 127 if (!valid || 0 != memcmp(&gFull[i], dst, sizeof(dst))) { in test_intersectline() 131 REPORTER_ASSERT(reporter, valid && !memcmp(&gFull[i], dst, sizeof(dst))); in test_intersectline() 147 if (!valid || 0 != memcmp(&gPartial[i+2], dst, sizeof(dst))) { in test_intersectline() 152 !memcmp(&gPartial[i+2], dst, sizeof(dst))); in test_intersectline()
|
/test/testfwk/arkxtest/uitest/test/ |
H A D | extension_test.cpp | 204 ASSERT_EQ(0, memcmp(VERSION.data(), buf, VERSION.length())); in TEST_F() 228 ASSERT_EQ(0, memcmp(expMsg.data(), buf, expMsg.length())); in TEST_F() 363 ASSERT_EQ(0, memcmp(errBuf, "Illegal capture type: haha", msgSizeRecv)); in TEST_F() 366 ASSERT_EQ(0, memcmp(errBuf, "Illegal name/callback", msgSizeRecv)); in TEST_F() 369 ASSERT_EQ(0, memcmp(errBuf, "Illegal optJson format", msgSizeRecv)); in TEST_F() 372 ASSERT_EQ(0, memcmp(errBuf, "Illegal capture type: haha", msgSizeRecv)); in TEST_F() 379 ASSERT_EQ(0, memcmp(errBuf, "Capture already running: recordUiAction", msgSizeRecv)); in TEST_F()
|
/test/xts/acts/security/crypto_framework_napi_BasicTest/src/ |
H A D | crypto_framework_sym_key_test.cpp | 121 EXPECT_TRUE(memcmp((const char *)symKeyData.algName, algoName1, strlen(algoName1)) == 0); in HWTEST_P() 123 EXPECT_TRUE(memcmp((const char *)symKeyData.getAlgName, algoName2, strlen(algoName2)) == 0); in HWTEST_P() 130 EXPECT_TRUE(memcmp(out.data, convertOut.data, out.len) == 0); in HWTEST_P() 168 EXPECT_TRUE(memcmp((const char *)symKeyData.getAlgName, algoName, strlen(algoName)) == 0); in HWTEST_P() 171 EXPECT_TRUE(memcmp(in.data, convertOut.data, in.len) == 0); in HWTEST_P() 329 EXPECT_TRUE(memcmp(convertBlob.data, convertOut.data, convertBlob.len) == 0); in HWTEST_F() 428 EXPECT_TRUE(memcmp(out.data, convertOut.data, out.len) == 0); in HWTEST_F()
|
/third_party/mbedtls/library/ |
H A D | pem.c | 328 if (s2 - s1 >= 22 && memcmp(s1, "Proc-Type: 4,ENCRYPTED", 22) == 0) { in mbedtls_pem_read_buffer() 344 if (s2 - s1 >= 23 && memcmp(s1, "DEK-Info: DES-EDE3-CBC,", 23) == 0) { in mbedtls_pem_read_buffer() 353 } else if (s2 - s1 >= 18 && memcmp(s1, "DEK-Info: DES-CBC,", 18) == 0) { in mbedtls_pem_read_buffer() 366 if (s2 - s1 >= 14 && memcmp(s1, "DEK-Info: AES-", 14) == 0) { in mbedtls_pem_read_buffer() 369 } else if (memcmp(s1, "DEK-Info: AES-128-CBC,", 22) == 0) { in mbedtls_pem_read_buffer() 371 } else if (memcmp(s1, "DEK-Info: AES-192-CBC,", 22) == 0) { in mbedtls_pem_read_buffer() 373 } else if (memcmp(s1, "DEK-Info: AES-256-CBC,", 22) == 0) { in mbedtls_pem_read_buffer()
|
/kernel/linux/linux-5.10/lib/ |
H A D | test_user_copy.c | 136 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() 149 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() 171 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() 219 ret |= test(memcmp(kmem, kmem + PAGE_SIZE, PAGE_SIZE), in test_user_copy_init() 266 ret |= test(memcmp(kmem + PAGE_SIZE, kmem, PAGE_SIZE), in test_user_copy_init()
|
/kernel/linux/linux-6.6/tools/testing/crypto/chacha20-s390/ |
H A D | test-cipher.c | 286 if (memcmp(plain, revert, data_size)) { in chacha_s390_test_init() 301 if (memcmp(plain, revert, data_size)) { in chacha_s390_test_init() 309 if (memcmp(cipher_generic, cipher_s390, data_size)) { in chacha_s390_test_init() 323 if (memcmp(plain, revert, data_size)) { in chacha_s390_test_init() 331 if (memcmp(cipher_generic, cipher_s390, data_size)) { in chacha_s390_test_init()
|
/kernel/linux/linux-6.6/lib/ |
H A D | test_user_copy.c | 136 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() 149 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() 171 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() 219 ret |= test(memcmp(kmem, kmem + PAGE_SIZE, PAGE_SIZE), in test_user_copy_init() 266 ret |= test(memcmp(kmem + PAGE_SIZE, kmem, PAGE_SIZE), in test_user_copy_init()
|
/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | stringpiece.h | 296 int r = memcmp(ptr_, x.ptr_, static_cast<size_t>(min_size)); in compare() 322 (memcmp(ptr_, x.ptr_, static_cast<size_t>(x.length_)) == 0); 327 (memcmp(ptr_ + (length_-x.length_), x.ptr_, in ends_with() 400 memcmp(x.data(), y.data(), static_cast<size_t>(len)) == 0; in operator ==() 410 const int r = memcmp(x.data(), y.data(), static_cast<size_t>(min_size)); in operator <()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/core/ |
H A D | rtw_recv.c | 643 if (!memcmp(myhwaddr, pattrib->src, ETH_ALEN)) { in sta2sta_data_frame() 649 if (memcmp(myhwaddr, pattrib->dst, ETH_ALEN) && !mcast) { in sta2sta_data_frame() 654 if (!memcmp(pattrib->bssid, "\x0\x0\x0\x0\x0\x0", ETH_ALEN) || in sta2sta_data_frame() 655 !memcmp(mybssid, "\x0\x0\x0\x0\x0\x0", ETH_ALEN) || in sta2sta_data_frame() 656 memcmp(pattrib->bssid, mybssid, ETH_ALEN)) { in sta2sta_data_frame() 664 if (memcmp(pattrib->bssid, pattrib->src, ETH_ALEN)) { in sta2sta_data_frame() 679 if (memcmp(pattrib->bssid, pattrib->dst, ETH_ALEN)) { in sta2sta_data_frame() 722 if (!memcmp(myhwaddr, pattrib->src, ETH_ALEN)) { in ap2sta_data_frame() 729 if (memcmp(myhwaddr, pattrib->dst, ETH_ALEN) && !mcast) { in ap2sta_data_frame() 737 if (!memcmp(pattri in ap2sta_data_frame() [all...] |
H A D | rtw_wlan_util.c | 811 if (memcmp(cur_network->network.MacAddress, pbssid, 6)) { in rtw_check_bcn_info() 900 if (memcmp(bssid->ssid.ssid, cur_network->network.ssid.ssid, 32) || in rtw_check_bcn_info() 1026 if ((!memcmp(pIE->data, RTW_WPA_OUI, 4)) && (!memcmp((pIE->data + 12), WPA_TKIP_CIPHER, 4))) in is_ap_in_tkip() 1030 if (!memcmp((pIE->data + 8), RSN_TKIP_CIPHER, 4)) in is_ap_in_tkip() 1192 if ((!memcmp(pIE->data, ARTHEROS_OUI1, 3)) || in check_assoc_AP() 1193 (!memcmp(pIE->data, ARTHEROS_OUI2, 3))) { in check_assoc_AP() 1196 } else if ((!memcmp(pIE->data, BROADCOM_OUI1, 3)) || in check_assoc_AP() 1197 (!memcmp(pIE->data, BROADCOM_OUI2, 3))) { in check_assoc_AP() 1200 } else if (!memcmp(pI in check_assoc_AP() [all...] |
/third_party/nghttp2/tests/ |
H A D | nghttp2_frame_test.c | 372 CU_ASSERT(memcmp(opaque_data, oframe.opaque_data, sizeof(opaque_data) - 1) == in test_nghttp2_frame_pack_ping() 406 CU_ASSERT(memcmp(opaque_data, oframe.opaque_data, opaque_data_len) == 0); in test_nghttp2_frame_pack_goaway() 491 CU_ASSERT(0 == memcmp(origin, oaltsvc.origin, sizeof(origin) - 1)); in test_nghttp2_frame_pack_altsvc() 494 memcmp(field_value, oaltsvc.field_value, sizeof(field_value) - 1)); in test_nghttp2_frame_pack_altsvc() 551 CU_ASSERT(0 == memcmp(example, oorigin.ov[0].origin, sizeof(example) - 1)); in test_nghttp2_frame_pack_origin() 553 CU_ASSERT(0 == memcmp(nghttp2, oorigin.ov[1].origin, sizeof(nghttp2) - 1)); in test_nghttp2_frame_pack_origin() 623 CU_ASSERT(0 == memcmp(field_value, opriority_update.field_value, in test_nghttp2_frame_pack_priority_update() 662 CU_ASSERT(0 == memcmp("alpha", nva[0].name, 5)); in test_nghttp2_nv_array_copy() 664 CU_ASSERT(0 == memcmp("bravo", nva[0].value, 5)); in test_nghttp2_nv_array_copy() 666 CU_ASSERT(0 == memcmp("charli in test_nghttp2_nv_array_copy() [all...] |
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/ |
H A D | rtw_wlan_util.c | 621 if (addr && memcmp(dvobj->cam_cache[i].mac, addr, ETH_ALEN)) in _rtw_camid_search() 780 if (!memcmp(&(pmlmeinfo->WMM_param), (pIE->data + 6), sizeof(struct WMM_para_element))) in WMM_param_handler() 1253 if (memcmp(cur_network->network.MacAddress, pbssid, 6)) { in rtw_check_bcn_info() 1349 if (memcmp(bssid->Ssid.Ssid, cur_network->network.Ssid.Ssid, 32) || in rtw_check_bcn_info() 1462 if (!memcmp(pIE->data, WMM_PARA_OUI, 6) && pIE->Length == WLAN_WMM_LEN) /* WMM */ in update_beacon_info() 1500 if ((!memcmp(pIE->data, RTW_WPA_OUI, 4)) && (!memcmp((pIE->data + 12), WPA_TKIP_CIPHER, 4))) in is_ap_in_tkip() 1506 if (!memcmp((pIE->data + 8), RSN_TKIP_CIPHER, 4)) in is_ap_in_tkip() 1574 if ((!memcmp(pIE->data, ARTHEROS_OUI1, 3)) || (!memcmp(pI in check_assoc_AP() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | probe_read_user_str.c | 31 err = memcmp(skel->bss->buf, str, len); in test_one_str() 32 if (CHECK(err, "memcmp", "prog copied wrong string")) in test_one_str() 37 err = memcmp(skel->bss->buf + len, buf, sizeof(buf) - len); in test_one_str() 38 if (CHECK(err, "memcmp", "trailing bytes were not stripped")) in test_one_str()
|