Searched refs:memcmp (Results 1 - 25 of 1064) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/unbound/compat/
H A Dmemcmp.h2 * memcmp.h: undef memcmp for compat.
11 #ifdef memcmp
13 # undef memcmp macro
H A Dmemcmp.c2 * memcmp.c: memcmp compat implementation.
11 int memcmp(const void *x, const void *y, size_t n);
13 int memcmp(const void *x, const void *y, size_t n) function
/freebsd-13-stable/lib/libc/tests/string/
H A Dmemcmp_test.c41 assert(memcmp("a", "b", 0) == 0);
42 assert(memcmp("", "", 0) == 0);
54 assert(memcmp(data1, data2, i) == 0);
56 assert(memcmp(data1 + i, data2 + i, 256 - i) == 0);
70 assert(memcmp(data1, data2, i) != 0);
72 assert(memcmp(data1 + i, data2 + i, 256 - i) != 0);
86 assert(memcmp(data1 + 128, data2 + 128, i) == 255);
87 assert(memcmp(data2 + 128, data1 + 128, i) == -255);
88 assert(memcmp(data1 + 129 - i, data2 + 129 - i, i) == 255);
89 assert(memcmp(data
[all...]
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/builtins/arm/
H A Daeabi_memcmp.S1 //===-- aeabi_memcmp.S - EABI memcmp implementation -----------------------===//
11 // void __aeabi_memcmp(void *dest, void *src, size_t n) { memcmp(dest, src, n); }
18 bl memcmp
21 b memcmp
/freebsd-13-stable/lib/msun/tests/
H A Dnan_test.c60 * so we need to initialize the memory for the memcmp()
73 ATF_REQUIRE(memcmp(&af[0], &af[1], sizeof(float)) == 0);
74 ATF_REQUIRE(memcmp(&af[1], &af[2], sizeof(float)) == 0);
78 ATF_REQUIRE(memcmp(&af[2], &af[3], sizeof(float)) == 0);
86 ATF_REQUIRE(memcmp(&ad[0], &ad[1], sizeof(double)) == 0);
87 ATF_REQUIRE(memcmp(&ad[1], &ad[2], sizeof(double)) == 0);
91 ATF_REQUIRE(memcmp(&ad[2], &ad[3], sizeof(double)) == 0);
99 ATF_REQUIRE(memcmp(&ald[0], &ald[1], sizeof(long double)) == 0);
100 ATF_REQUIRE(memcmp(&ald[1], &ald[2], sizeof(long double)) == 0);
104 ATF_REQUIRE(memcmp(
[all...]
/freebsd-13-stable/lib/libc/amd64/string/
H A DMakefile.inc5 memcmp.S \
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DGUID.h26 return 0 == ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid));
30 return ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid)) < 0;
34 return ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid)) <= 0;
/freebsd-13-stable/usr.sbin/bluetooth/sdpd/
H A Dprovider.h57 (memcmp(b, NG_HCI_BDADDR_ANY, sizeof(bdaddr_t)) == 0 || \
58 memcmp(&(p)->bdaddr, NG_HCI_BDADDR_ANY, sizeof(bdaddr_t)) == 0 || \
59 memcmp(&(p)->bdaddr, b, sizeof(bdaddr_t)) == 0)
/freebsd-13-stable/lib/libc/arm/string/
H A DMakefile.inc7 memcmp.S \
/freebsd-13-stable/crypto/heimdal/lib/gssapi/mech/
H A Dgss_oid_equal.c57 return memcmp(a->elements, b->elements, a->length) == 0;
/freebsd-13-stable/lib/libc/string/
H A Dmemcmp.c36 static char sccsid[] = "@(#)memcmp.c 8.1 (Berkeley) 6/4/93";
47 memcmp(const void *s1, const void *s2, size_t n) function
/freebsd-13-stable/lib/libc/uuid/
H A Duuid_equal.c56 return ((memcmp(a, b, sizeof(uuid_t))) ? 0 : 1);
/freebsd-13-stable/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dstrings.h28 #define bcmp(src, dest, size) memcmp((src), (dest), (size_t)(size))
/freebsd-13-stable/sys/libkern/
H A Dmemcmp.c44 (memcmp)(const void *s1, const void *s2, size_t n) function
/freebsd-13-stable/sys/contrib/libsodium/test/default/
H A Dsecretbox_easy2.c33 printf("%d\n", memcmp(m, m2, mlen));
51 printf("%d\n", memcmp(m, m2, mlen));
55 printf("%d\n", memcmp(m, c, mlen) == 0);
56 printf("%d\n", memcmp(m, c + crypto_secretbox_MACBYTES, mlen) == 0);
62 printf("%d\n", memcmp(m, c, mlen));
H A Dkx.c60 if (memcmp(server_rx, client_tx, crypto_kx_SESSIONKEYBYTES) != 0 ||
61 memcmp(server_tx, client_rx, crypto_kx_SESSIONKEYBYTES) != 0) {
70 if (memcmp(server_rx, client_tx, crypto_kx_SESSIONKEYBYTES) == 0 &&
71 memcmp(server_tx, client_rx, crypto_kx_SESSIONKEYBYTES) == 0) {
80 if (memcmp(server_rx, client_tx, crypto_kx_SESSIONKEYBYTES) == 0 ||
81 memcmp(server_tx, client_rx, crypto_kx_SESSIONKEYBYTES) == 0) {
120 assert(memcmp(client_rx, client_tx, crypto_kx_SESSIONKEYBYTES) == 0);
121 assert(memcmp(client_tx, server_rx, crypto_kx_SESSIONKEYBYTES) == 0);
122 assert(memcmp(server_rx, server_tx, crypto_kx_SESSIONKEYBYTES) == 0);
/freebsd-13-stable/crypto/heimdal/lib/asn1/
H A Dder_cmp.c41 return memcmp(p->components,
52 return memcmp(p->data, q->data, p->length);
76 i = memcmp(p->data, q->data, p->length / 8);
98 return memcmp(p->data, q->data, p->length);
106 return memcmp(p->data, q->data, q->length * sizeof(q->data[0]));
115 return memcmp(p->data, q->data, q->length * sizeof(q->data[0]));
/freebsd-13-stable/lib/libc/aarch64/string/
H A DMakefile.inc11 memcmp.S \
/freebsd-13-stable/lib/libc/i386/string/
H A DMakefile.inc8 memcmp.S \
H A Dmemcmp.S35 * memcmp (void *b1, void *b2, size_t len)
41 ENTRY(memcmp)
76 END(memcmp)
/freebsd-13-stable/contrib/apr-util/test/
H A Dtestuuid.c32 memcmp(&uuid, &uuid2, sizeof(uuid)) == 0);
45 memcmp(&uuid, &uuid2, sizeof(uuid)) != 0);
/freebsd-13-stable/contrib/opie/
H A Dopietest.c44 if (memcmp(&key, testout, sizeof(testout)))
61 if (memcmp(buffer, testout, sizeof(testout)))
78 if (memcmp(buffer, testout, sizeof(testout)))
93 if (memcmp(&key, testout, sizeof(testout)))
109 if (memcmp(buffer, testout, sizeof(testout)))
136 if (memcmp(&testin_aligned, testout, sizeof(struct opie_otpkey)))
152 if (memcmp(&testin_aligned, testout, sizeof(struct opie_otpkey)))
175 if (memcmp(&opie_otpkey, testout, sizeof(struct opie_otpkey)))
/freebsd-13-stable/bin/sh/
H A Dmystring.c97 (q - p == 10 && memcmp(p, "2147483647", 10) > 0))
/freebsd-13-stable/sys/contrib/dev/acpica/components/tables/
H A Dtbfind.c219 if (memcmp (&(AcpiGbl_RootTableList.Tables[i].Signature),
247 if (!memcmp (AcpiGbl_RootTableList.Tables[i].Pointer->Signature,
250 !memcmp (AcpiGbl_RootTableList.Tables[i].Pointer->OemId,
253 !memcmp (AcpiGbl_RootTableList.Tables[i].Pointer->OemTableId,
/freebsd-13-stable/tools/regression/netinet6/icmp6_filter/
H A Dicmp6_filter.c73 if (memcmp(&ic6f, &ic6f_passall, sizeof(ic6f)) != 0)
90 if (memcmp(&ic6f, &ic6f_passall, sizeof(ic6f)) != 0)
107 if (memcmp(&ic6f, &ic6f_blockall, sizeof(ic6f)) != 0)
124 if (memcmp(&ic6f, &ic6f_passall, sizeof(ic6f)) != 0)

Completed in 289 milliseconds

1234567891011>>