HomeSort by: relevance | last modified time | path
    Searched defs:cmp (Results 1 - 25 of 71) sorted by relevancy

1 2 3

  /src/common/lib/libc/string/
strchr.c 57 const char cmp = ch; local in function:__strong_alias
60 if (*p == cmp) {
strchrnul.c 52 const char cmp = ch; local in function:strchrnul
56 if (*p == cmp || !*p) {
memchr.c 57 const unsigned char cmp = c; local in function:memchr
60 if (*p++ == cmp)
  /src/lib/libc/string/
memrchr.c 46 const unsigned char cmp = c; local in function:memrchr
49 if (*--p == cmp)
  /src/sys/arch/i386/stand/efiboot/
efidev.c 42 int i, cmp; local in function:efi_device_path_ncmp
48 cmp = DevicePathNodeLength(dpa) - DevicePathNodeLength(dpb);
49 if (cmp)
50 return (cmp);
51 cmp = memcmp(dpa, dpb, DevicePathNodeLength(dpa));
52 if (cmp)
53 return (cmp);
  /src/lib/libc/stdlib/
bsearch.c 67 int cmp; local in function:bsearch
76 cmp = (*compar)(key, p);
77 if (cmp == 0)
79 if (cmp > 0) { /* key > p: move right */
tdelete.c 32 int cmp; local in function:tdelete
40 while ((cmp = (*compar)(vkey, (*rootp)->key)) != 0) {
42 rootp = (cmp < 0) ?
qsort.c 92 int (*cmp)(const void *, const void *, void *), void *cookie)
95 return cmp(a, b, cookie) < 0 ?
96 (cmp(b, c, cookie) < 0 ? b : (cmp(a, c, cookie) < 0 ? c : a ))
97 :(cmp(b, c, cookie) > 0 ? b : (cmp(a, c, cookie) < 0 ? a : c ));
102 int (*cmp)(const void *, const void *, void *), void *cookie)
109 _DIAGASSERT(cmp != NULL);
115 pl > (char *) a && cmp(pl - es, pl, cookie) > 0;
126 pl = med3(pl, pl + d, pl + 2 * d, cmp, cookie)
192 int (*cmp)(const void *, const void *) = cookie; local in function:cmpnocookie
    [all...]
  /src/sys/stand/efiboot/
efidev.c 55 int i, cmp; local in function:efi_device_path_ncmp
61 cmp = DevicePathNodeLength(dpa) - DevicePathNodeLength(dpb);
62 if (cmp)
63 return (cmp);
64 cmp = memcmp(dpa, dpb, DevicePathNodeLength(dpa));
65 if (cmp)
66 return (cmp);
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
sanitizer_atomic_clang_other.h 85 typename T::Type cmp = a->val_dont_use; local in function:__sanitizer::atomic_store
88 cur = __sync_val_compare_and_swap(&a->val_dont_use, cmp, v);
89 if (cur == cmp || cur == v)
91 cmp = cur;
sanitizer_persistent_allocator.h 38 uptr cmp = atomic_load(&region_pos, memory_order_acquire); local in function:__sanitizer::PersistentAllocator::tryAlloc
40 if (cmp == 0 || cmp + size > end) return nullptr;
41 if (atomic_compare_exchange_weak(&region_pos, &cmp, cmp + size,
43 return (void *)cmp;
sanitizer_lfstack.h 37 u64 cmp = atomic_load(&head_, memory_order_relaxed); local in function:__sanitizer::LFStack::Push
39 u64 cnt = (cmp & kCounterMask) + kCounterInc;
41 p->next = (T*)(uptr)(cmp & kPtrMask);
42 if (atomic_compare_exchange_weak(&head_, &cmp, xch,
49 u64 cmp = atomic_load(&head_, memory_order_acquire); local in function:__sanitizer::LFStack::Pop
51 T *cur = (T*)(uptr)(cmp & kPtrMask);
55 u64 cnt = (cmp & kCounterMask);
57 if (atomic_compare_exchange_weak(&head_, &cmp, xch,
sanitizer_mutex.h 109 u32 cmp = kUnlocked; local in function:__sanitizer::RWMutex::Lock
110 if (atomic_compare_exchange_strong(&state_, &cmp, kWriteLock,
155 u32 cmp = atomic_load(&state_, memory_order_relaxed); local in function:__sanitizer::RWMutex::LockSlow
156 if (cmp == kUnlocked &&
157 atomic_compare_exchange_weak(&state_, &cmp, kWriteLock,
sanitizer_stackdepotbase.h 78 uptr cmp = atomic_load(p, memory_order_relaxed); local in function:__sanitizer::StackDepotBase::lock
79 if ((cmp & 1) == 0 &&
80 atomic_compare_exchange_weak(p, &cmp, cmp | 1, memory_order_acquire))
81 return (Node *)cmp;
  /src/lib/libc/db/btree/
bt_search.c 74 int cmp; local in function:__bt_search
85 if ((cmp = __bt_cmp(t, key, &t->bt_cur)) == 0) {
92 if (cmp > 0) {
bt_put.c 272 int cmp; local in function:bt_fast
294 if ((cmp = __bt_cmp(t, key, &t->bt_cur)) < 0)
296 t->bt_last.index = cmp ? ++t->bt_cur.index : t->bt_cur.index;
302 if ((cmp = __bt_cmp(t, key, &t->bt_cur)) > 0)
306 *exactp = cmp == 0;
  /src/sys/external/isc/libsodium/dist/src/libsodium/crypto_scalarmult/curve25519/sandy2x/
fe51_nsquare.S 157 cmp $0,%rsi label
fe51_pack.S 66 cmp %r10,%rdx label
68 cmp %rax,%rcx label
70 cmp %rax,%r8 label
72 cmp %rax,%r9 label
74 cmp %rax,%rsi label
ladder.S 1421 cmp $0,%rdx label
  /src/tests/include/sys/
t_socket.c 32 struct cmsghdr *cmp; local in function:ATF_TC_BODY
43 cmp = malloc(CMSG_SPACE(sizeof(int)));
48 cmp->cmsg_level = SOL_SOCKET;
49 cmp->cmsg_type = SCM_RIGHTS;
50 cmp->cmsg_len = CMSG_LEN(sizeof(int));
56 msg.msg_control = cmp;
64 *(int *)CMSG_DATA(cmp) = 0x12345678;
83 struct cmsghdr *cmp; local in function:ATF_TC_BODY
132 cmp = malloc(CMSG_SPACE(sizeof(int)));
137 cmp->cmsg_level = SOL_SOCKET
    [all...]
  /src/sys/arch/m68k/fpe/
fpu_rem.c 108 int cmp; local in function:__fpu_modrem
149 cmp = abscmp3(r, y);
152 if (cmp == 0)
156 if (cmp > 0) {
193 cmp = abscmp3(r, y);
197 if (cmp > 0 || (cmp == 0 && q % 2)) {
  /src/regress/sys/fs/ffs/
Makefile 66 cmp: target
90 ${MAKECMD} cmp
94 ${MAKECMD} cmp
98 ${MAKECMD} cmp
102 ${MAKECMD} cmp
116 ${MAKECMD} cmp
  /src/common/lib/libc/stdlib/
heapsort.c 240 int (*cmp)(const void *, const void *) = cookie; local in function:cmpnocookie
242 return cmp(a, b);
248 int (*cmp)(const void *, const void *),
252 int (*cmp)(const void *, const void *))
257 return kheapsort_r(a, n, es, cmpnocookie, cmp, k);
259 return heapsort_r(a, n, es, cmpnocookie, cmp);
  /src/tests/lib/libc/stdlib/
h_sort.c 42 int (*cmp)(const void *, const void *, void *), void *cookie)
45 if (heapsort_r(a, n, sz, cmp, cookie) == -1)
51 int (*cmp)(const void *, const void *, void *), void *cookie)
54 if (mergesort_r(a, n, sz, cmp, cookie) == -1)
64 cmp(const void *va, const void *vb, void *cookie) function in typeref:typename:int
209 (*sortfn)(permutation, nlines, sizeof(permutation[0]), &cmp,
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
tsan_mutex.cc 231 uptr cmp = kUnlocked; local in function:__tsan::Mutex::Lock
232 if (atomic_compare_exchange_strong(&state_, &cmp, kWriteLock,
237 cmp = kUnlocked;
238 if (atomic_compare_exchange_weak(&state_, &cmp, kWriteLock,

Completed in 34 milliseconds

1 2 3