/external/llvm/lib/Fuzzer/test/ |
D | FuzzerUnittest.cpp | 96 if (NewSize == 7 && !memcmp(REM0, T, 7)) FoundMask |= 1 << 0; in TestEraseByte() 97 if (NewSize == 7 && !memcmp(REM1, T, 7)) FoundMask |= 1 << 1; in TestEraseByte() 98 if (NewSize == 7 && !memcmp(REM2, T, 7)) FoundMask |= 1 << 2; in TestEraseByte() 99 if (NewSize == 7 && !memcmp(REM3, T, 7)) FoundMask |= 1 << 3; in TestEraseByte() 100 if (NewSize == 7 && !memcmp(REM4, T, 7)) FoundMask |= 1 << 4; in TestEraseByte() 101 if (NewSize == 7 && !memcmp(REM5, T, 7)) FoundMask |= 1 << 5; in TestEraseByte() 102 if (NewSize == 7 && !memcmp(REM6, T, 7)) FoundMask |= 1 << 6; in TestEraseByte() 103 if (NewSize == 7 && !memcmp(REM7, T, 7)) FoundMask |= 1 << 7; in TestEraseByte() 130 if (NewSize == 8 && !memcmp(INS0, T, 8)) FoundMask |= 1 << 0; in TestInsertByte() 131 if (NewSize == 8 && !memcmp(INS1, T, 8)) FoundMask |= 1 << 1; in TestInsertByte() [all …]
|
D | MemcmpTest.cpp | 9 if (Size >= 8 && memcmp(Data, "01234567", 8) == 0) { in LLVMFuzzerTestOneInput() 10 if (Size >= 12 && memcmp(Data + 8, "ABCD", 4) == 0) { in LLVMFuzzerTestOneInput() 11 if (Size >= 14 && memcmp(Data + 12, "XY", 2) == 0) { in LLVMFuzzerTestOneInput() 12 if (Size >= 16 && memcmp(Data + 14, "KLM", 3) == 0) { in LLVMFuzzerTestOneInput()
|
/external/llvm/include/llvm/ADT/ |
D | StringSwitch.h | 60 (std::memcmp(S, Str.data(), N-1) == 0)) { in Case() 71 std::memcmp(S, Str.data() + Str.size() + 1 - N, N-1) == 0) { in EndsWith() 82 std::memcmp(S, Str.data(), N-1) == 0) { in StartsWith() 94 (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) || in Cases() 95 (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0))) { in Cases() 107 (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) || in Cases() 108 (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0) || in Cases() 109 (N2-1 == Str.size() && std::memcmp(S2, Str.data(), N2-1) == 0))) { in Cases() 122 (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) || in Cases() 123 (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0) || in Cases() [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | memcmp-1.ll | 1 ; Test that the memcmp library call simplifier works correctly. 11 declare i32 @memcmp(i8*, i8*, i32) 13 ; Check memcmp(mem, mem, size) -> 0. 17 %ret = call i32 @memcmp(i8* %mem, i8* %mem, i32 %size) 22 ; Check memcmp(mem1, mem2, 0) -> 0. 26 %ret = call i32 @memcmp(i8* %mem1, i8* %mem2, i32 0) 31 ;; Check memcmp(mem1, mem2, 1) -> *(unsigned char*)mem1 - *(unsigned char*)mem2. 35 %ret = call i32 @memcmp(i8* %mem1, i8* %mem2, i32 1) 45 ; Check memcmp(mem1, mem2, size) -> cnst, where all arguments are constants. 51 %ret = call i32 @memcmp(i8* %mem1, i8* %mem2, i32 3) [all …]
|
D | memcmp-2.ll | 1 ; Test that the memcmp library call simplifier works correctly. 7 declare i32* @memcmp(i8*, i8*, i32) 9 ; Check that memcmp functions with the wrong prototype aren't simplified. 13 %ret = call i32* @memcmp(i8* %mem, i8* %mem, i32 %size) 14 ; CHECK-NEXT: call i32* @memcmp
|
/external/sfntly/cpp/src/test/ |
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(&(b1[89]), &(b2[0]), 100), 0); in TestFontInputStreamBasic() [all …]
|
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()
|
/external/clang/test/Analysis/ |
D | bstring.c | 366 #define memcmp bcmp macro 370 #define memcmp BUILTIN(memcmp) macro 371 int memcmp(const void *s1, const void *s2, size_t n); 380 memcmp(a, b, 4); // no-warning in memcmp0() 387 memcmp(a, b, 5); // expected-warning{{out-of-bound}} in memcmp1() 394 memcmp(a, b, 4); // expected-warning{{out-of-bound}} in memcmp2() 400 clang_analyzer_eval(memcmp(a, a, 4) == 0); // expected-warning{{TRUE}} in memcmp3() 406 clang_analyzer_eval(memcmp(a, input, 4) == 0); // expected-warning{{UNKNOWN}} in memcmp4() 412 clang_analyzer_eval(memcmp(a, 0, 0) == 0); // expected-warning{{TRUE}} in memcmp5() 413 clang_analyzer_eval(memcmp(0, a, 0) == 0); // expected-warning{{TRUE}} in memcmp5() [all …]
|
/external/google-breakpad/src/processor/ |
D | map_serializers_unittest.cc | 77 EXPECT_EQ(memcmp(correct_data, serialized_data_, correct_size), 0); in TEST_F() 99 EXPECT_EQ(memcmp(correct_data, serialized_data_, correct_size), 0); in TEST_F() 121 EXPECT_EQ(memcmp(correct_data, serialized_data_, correct_size), 0); in TEST_F() 149 EXPECT_EQ(memcmp(correct_data, serialized_data_, correct_size), 0); in TEST_F() 171 EXPECT_EQ(memcmp(correct_data, serialized_data_, correct_size), 0); in TEST_F() 195 EXPECT_EQ(memcmp(correct_data, serialized_data_, correct_size), 0); in TEST_F() 224 EXPECT_EQ(memcmp(correct_data, serialized_data_, correct_size), 0); in TEST_F() 245 EXPECT_EQ(memcmp(correct_data, serialized_data_, correct_size), 0); in TEST_F() 268 EXPECT_EQ(memcmp(correct_data, serialized_data_, correct_size), 0); in TEST_F() 302 EXPECT_EQ(memcmp(correct_data, serialized_data_, correct_size), 0); in TEST_F() [all …]
|
/external/webrtc/webrtc/base/ |
D | stream_unittest.cc | 127 EXPECT_EQ(0, memcmp(in, out, kSize)); in TEST() 139 EXPECT_EQ(0, memcmp(in, out, kSize)); in TEST() 146 EXPECT_EQ(0, memcmp(in, out, kSize / 2)); in TEST() 153 EXPECT_EQ(0, memcmp(in, out, kSize / 2)); in TEST() 156 EXPECT_EQ(0, memcmp(in, out, kSize / 2)); in TEST() 170 EXPECT_EQ(0, memcmp(in, out, kSize / 2)); in TEST() 175 EXPECT_EQ(0, memcmp(in + kSize / 2, out, kSize / 4)); in TEST() 180 EXPECT_EQ(0, memcmp(in, out, kSize / 2)); in TEST() 183 EXPECT_EQ(0, memcmp(in, out, kSize / 2)); in TEST() 194 EXPECT_EQ(0, memcmp(q, in, kSize)); in TEST() [all …]
|
D | bufferqueue_unittest.cc | 40 EXPECT_EQ(0, memcmp(in, out, kSize)); in TEST() 52 EXPECT_EQ(0, memcmp(in, out, kSize)); in TEST() 62 EXPECT_EQ(0, memcmp(in, out, kSize / 2)); in TEST() 66 EXPECT_EQ(0, memcmp(in + kSize / 2, out, kSize / 2)); in TEST() 77 EXPECT_EQ(0, memcmp(in, out, kSize / 4)); in TEST() 82 EXPECT_EQ(0, memcmp(in + kSize / 2, out, kSize / 2)); in TEST()
|
/external/webrtc/webrtc/modules/video_processing/test/ |
D | denoiser_test.cc | 32 EXPECT_EQ(0, memcmp(src, dst, 8 * 8)); in TEST_F() 36 EXPECT_EQ(0, memcmp(src, dst, 16 * 16)); in TEST_F() 40 EXPECT_EQ(0, memcmp(src, dst, 8 * 8)); in TEST_F() 44 EXPECT_EQ(0, memcmp(src, dst, 16 * 16)); in TEST_F() 85 EXPECT_EQ(0, memcmp(dst, dst_ref, 16 * 16)); in TEST_F() 97 EXPECT_EQ(0, memcmp(dst, dst_ref, 16 * 16)); in TEST_F() 100 EXPECT_EQ(0, memcmp(dst, dst_ref, 16 * 16)); in TEST_F() 112 EXPECT_EQ(0, memcmp(dst, dst_ref, 16 * 16)); in TEST_F() 115 EXPECT_EQ(0, memcmp(dst, dst_ref, 16 * 16)); in TEST_F()
|
/external/compiler-rt/lib/asan/tests/ |
D | asan_mem_test.cc | 214 Ident(memcmp(s1, s2, size)); in TEST() 215 Ident(memcmp(s1 + size - 1, s2 + size - 1, 1)); in TEST() 216 Ident(memcmp(s1 - 1, s2 - 1, 0)); in TEST() 218 EXPECT_DEATH(Ident(memcmp)(s1 - 1, s2, 1), LeftOOBReadMessage(1)); in TEST() 219 EXPECT_DEATH(Ident(memcmp)(s1, s2 - 1, 1), LeftOOBReadMessage(1)); in TEST() 220 EXPECT_DEATH(Ident(memcmp)(s1 + size, s2, 1), RightOOBReadMessage(0)); in TEST() 221 EXPECT_DEATH(Ident(memcmp)(s1, s2 + size, 1), RightOOBReadMessage(0)); in TEST() 223 EXPECT_DEATH(Ident(memcmp)(s1 + 1, s2 + 1, size), RightOOBReadMessage(0)); in TEST() 224 EXPECT_DEATH(Ident(memcmp)(s1 + size - 1, s2, 2), RightOOBReadMessage(0)); in TEST() 228 EXPECT_DEATH(Ident(memcmp)(s1, s2, size + 1), RightOOBReadMessage(0)); in TEST() [all …]
|
/external/llvm/test/CodeGen/SystemZ/ |
D | memcmp-01.ll | 1 ; Test memcmp using CLC, with i32 results. 5 declare signext i32 @memcmp(i8 *%src1, i8 *%src2, i64 %size) 12 %res = call i32 @memcmp(i8 *%src1, i8 *%src2, i64 0) 24 %res = call i32 @memcmp(i8 *%src1, i8 *%src2, i64 2) 34 %res = call i32 @memcmp(i8 *%src1, i8 *%src2, i64 3) 53 %res = call i32 @memcmp(i8 *%src1, i8 *%src2, i64 4) 72 %res = call i32 @memcmp(i8 *%src1, i8 *%src2, i64 5) 91 %res = call i32 @memcmp(i8 *%src1, i8 *%src2, i64 6) 114 %res = call i32 @memcmp(i8 *%src1, i8 *%src2, i64 256) 135 %res = call i32 @memcmp(i8 *%src1, i8 *%src2, i64 257) [all …]
|
D | memcmp-02.ll | 1 ; Test memcmp using CLC, with i64 results. 5 declare i64 @memcmp(i8 *%src1, i8 *%src2, i64 %size) 12 %res = call i64 @memcmp(i8 *%src1, i8 *%src2, i64 0) 25 %res = call i64 @memcmp(i8 *%src1, i8 *%src2, i64 2) 35 %res = call i64 @memcmp(i8 *%src1, i8 *%src2, i64 3) 54 %res = call i64 @memcmp(i8 *%src1, i8 *%src2, i64 4) 73 %res = call i64 @memcmp(i8 *%src1, i8 *%src2, i64 5) 92 %res = call i64 @memcmp(i8 *%src1, i8 *%src2, i64 6) 116 %res = call i64 @memcmp(i8 *%src1, i8 *%src2, i64 256) 137 %res = call i64 @memcmp(i8 *%src1, i8 *%src2, i64 257)
|
/external/skia/tests/ |
D | InterpolatorTest.cpp | 29 REPORTER_ASSERT(reporter, memcmp(v, v1, sizeof(v)) == 0); in DEF_TEST() 33 REPORTER_ASSERT(reporter, memcmp(v, v1, sizeof(v)) == 0); in DEF_TEST() 37 REPORTER_ASSERT(reporter, memcmp(v, v1, sizeof(v)) == 0); in DEF_TEST() 41 REPORTER_ASSERT(reporter, memcmp(v, v2, sizeof(v)) == 0); in DEF_TEST() 45 REPORTER_ASSERT(reporter, memcmp(v, v2, sizeof(v)) == 0); in DEF_TEST() 53 REPORTER_ASSERT(reporter, memcmp(v, iset(vv, 60, 120, 180), sizeof(v)) == 0); in DEF_TEST()
|
/external/bison/lib/ |
D | mbchar.h | 195 ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \ 197 ? (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) > 0 ? 1 : -1) \ 198 : (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc2).bytes) >= 0 ? 1 : -1))) 207 ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \ 209 ? (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) > 0 ? 1 : -1) \ 210 : (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc2).bytes) >= 0 ? 1 : -1))) 215 && memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) == 0) 220 && memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) == 0)
|
/external/libcap/progs/ |
D | capsh.c | 54 if (!memcmp("--drop=", argv[i], 4)) { in main() 125 } else if (!memcmp("--inh=", argv[i], 6)) { in main() 194 } else if (!memcmp("--caps=", argv[i], 7)) { in main() 237 } else if (!memcmp("--keep=", argv[i], 7)) { in main() 248 } else if (!memcmp("--chroot=", argv[i], 9)) { in main() 293 } else if (!memcmp("--secbits=", argv[i], 10)) { in main() 304 } else if (!memcmp("--forkfor=", argv[i], 10)) { in main() 318 } else if (!memcmp("--killit=", argv[i], 9)) { in main() 344 } else if (!memcmp("--uid=", argv[i], 6)) { in main() 355 } else if (!memcmp("--gid=", argv[i], 6)) { in main() [all …]
|
/external/google-breakpad/src/common/linux/ |
D | memory_mapped_file_unittest.cc | 116 EXPECT_EQ(0, memcmp(data, mapped_file.data(), data_size)); in TEST_F() 124 EXPECT_EQ(0, memcmp(data, mapped_file.data(), data_size)); in TEST_F() 152 EXPECT_EQ(0, memcmp(data1, mapped_file.data(), data1_size)); in TEST_F() 158 EXPECT_EQ(0, memcmp(data2, mapped_file.data(), data2_size)); in TEST_F() 166 EXPECT_EQ(0, memcmp(data1, mapped_file.data(), data1_size)); in TEST_F() 172 EXPECT_EQ(0, memcmp(data2, mapped_file.data(), data2_size)); in TEST_F() 196 memcmp(data1 + page_size, mapped_file.data(), data1_size - page_size)); in TEST_F() 206 memcmp(data1 + page_size, mapped_file.data(), data1_size - page_size)); in TEST_F()
|
D | linux_libc_support_unittest.cc | 110 ASSERT_EQ(0, memcmp(buf, "0", 1)); in TEST() 113 ASSERT_EQ(0, memcmp(buf, "1", 1)); in TEST() 116 ASSERT_EQ(0, memcmp(buf, "10", 2)); in TEST() 119 ASSERT_EQ(0, memcmp(buf, "63", 2)); in TEST() 122 ASSERT_EQ(0, memcmp(buf, "101", 2)); in TEST() 126 ASSERT_EQ(0, memcmp(buf, "18446744073709551615", 20)); in TEST()
|
/external/boringssl/src/crypto/bytestring/ |
D | bytestring_test.cc | 132 memcmp(CBS_data(&contents), "\x01\x02", 2) != 0) { in TestGetASN1() 193 memcmp(CBS_data(&contents), "\x04\x01\x01", 3) != 0) { in TestGetASN1() 292 return buf_len == sizeof(kExpected) && memcmp(buf, kExpected, buf_len) == 0; in TestCBBBasic() 370 return buf_len == sizeof(kExpected) && memcmp(buf, kExpected, buf_len) == 0; in TestCBBPrefixed() 419 return buf_len == sizeof(kExpected) && memcmp(buf, kExpected, buf_len) == 0; in TestCBBDiscardChild() 458 memcmp(buf, "\x01\x01\x02", 3) != 0) { in TestCBBMisuse() 481 if (buf_len != sizeof(kExpected) || memcmp(buf, kExpected, buf_len) != 0) { in TestCBBASN1() 499 memcmp(buf, "\x30\x81\x82", 3) != 0 || in TestCBBASN1() 500 memcmp(buf + 3, test_data.data(), 130) != 0) { in TestCBBASN1() 516 memcmp(buf, "\x30\x82\x03\xe8", 4) != 0 || in TestCBBASN1() [all …]
|
/external/vboot_reference/tests/ |
D | stateful_util_tests.c | 109 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemset_r(all) contents"); in StatefulMemset_rTest() 116 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemset_r(0) contents"); in StatefulMemset_rTest() 123 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemset_r(+1) contents"); in StatefulMemset_rTest() 134 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemset_r(+1) contents"); in StatefulMemset_rTest() 141 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemset_r(+1) contents"); in StatefulMemset_rTest() 179 TEST_EQ(0, memcmp(src3, buf, 10), "StatefulMemcpy_r(all) contents"); in StatefulMemcpy_rTest() 207 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemcpy_r(+1) contents"); in StatefulMemcpy_rTest() 214 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemcpy_r(+1) contents"); in StatefulMemcpy_rTest() 277 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemcpy(+1) contents"); in StatefulMemcpyTest() 283 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemcpy(+1) contents"); in StatefulMemcpyTest()
|
/external/boringssl/src/crypto/aes/ |
D | aes_test.cc | 34 if (memcmp(block, ciphertext, AES_BLOCK_SIZE) != 0) { in TestAES() 42 if (memcmp(block, ciphertext, AES_BLOCK_SIZE) != 0) { in TestAES() 54 if (memcmp(block, plaintext, AES_BLOCK_SIZE) != 0) { in TestAES() 62 if (memcmp(block, plaintext, AES_BLOCK_SIZE) != 0) { in TestAES()
|
/external/llvm/test/CodeGen/X86/ |
D | memcmp.ll | 5 ; This tests codegen time inlining/optimization of memcmp 10 declare i32 @memcmp(...) 14 %0 = tail call i32 (...) @memcmp(i8* %X, i8* %Y, i32 2) nounwind ; <i32> [#uses=1] 34 …%0 = tail call i32 (...) @memcmp(i8* %X, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, … 52 %0 = tail call i32 (...) @memcmp(i8* %X, i8* %Y, i32 4) nounwind ; <i32> [#uses=1] 69 …%0 = tail call i32 (...) @memcmp(i8* %X, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, … 85 %0 = tail call i32 (...) @memcmp(i8* %X, i8* %Y, i32 8) nounwind ; <i32> [#uses=1] 102 …%0 = tail call i32 (...) @memcmp(i8* %X, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, …
|
/external/libchrome/crypto/ |
D | hmac_unittest.cc | 85 EXPECT_EQ(0, memcmp(kReceivedHmac, calculated_hmac, kSHA1DigestSize)); in TEST() 155 EXPECT_EQ(0, memcmp(cases[i].digest, digest, kSHA1DigestSize)); in TEST() 181 EXPECT_EQ(0, memcmp(kKnownHMACSHA256, calculated_hmac, kSHA256DigestSize)); in TEST() 222 EXPECT_EQ(0, memcmp(kKnownHMACSHA1, calculated_hmac, kSHA1DigestSize)); in TEST() 237 EXPECT_EQ(0, memcmp(kKnownHMACSHA256, calculated_hmac2, kSHA256DigestSize)); in TEST() 250 EXPECT_EQ(0, memcmp(kSimpleHmacCases[i].digest, digest, kSHA1DigestSize)); in TEST() 294 EXPECT_EQ(0, memcmp(kExpectedDigest, digest, kSHA1DigestSize)); in TEST()
|