Home
last modified time | relevance | path

Searched refs:cmp (Results 1 – 25 of 84) sorted by relevance

1234

/xnu-11215/bsd/kern/
H A Dqsort.c118 return cmp(a, b) < 0 ? in med3()
119 (cmp(b, c) < 0 ? b : (cmp(a, c) < 0 ? c : a)) in med3()
120 :(cmp(b, c) > 0 ? b : (cmp(a, c) < 0 ? a : c)); in med3()
135 for (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0; in qsort()
148 pl = med3(pl, pl + d, pl + 2 * d, cmp); in qsort()
149 pm = med3(pm - d, pm, pm + d, cmp); in qsort()
150 pn = med3(pn - 2 * d, pn - d, pn, cmp); in qsort()
152 pm = med3(pl, pm, pn, cmp); in qsort()
159 while (pb <= pc && (r = cmp(pb, a)) <= 0) { in qsort()
167 while (pb <= pc && (r = cmp(pc, a)) >= 0) { in qsort()
[all …]
/xnu-11215/osfmk/arm64/
H A Dlz4_encode_arm64.s120 cmp w15, w22
141 cmp w25, w24
162 cmp w15, w22
183 cmp w25, w24
195 cmp w15, w22
212 cmp x22, x23
231 cmp w22, w23
340 cmp x13, #15
347 cmp x15, #255
370 cmp x11, x12
[all …]
H A Dlz4_decode_arm64.s119 cmp src,src_end
125 cmp dst,dst_end
156 cmp n_literals,#14
165 cmp aux1,#255
182 cmp dst,copy_dst
205 cmp n_matches,#19
207 cmp n_matches,#16
235 cmp aux1,#255
265 cmp dst,copy_dst
275 cmp dst,copy_dst
[all …]
H A DWKdmCompress_4k.s372 cmp next_tag, rcx
386 cmp rcx, next_qp // endQPosArray vs next_qp
401 cmp rcx, tempQPosArray // endQPosArray vs tempQPosArray
410 cmp rcx, rdx // source_end vs src_next
539 cmp r11, #(256*PAGES_SIZE_IN_KBYTES - 1) // were there 1023 dictionary hits
542 cmp rax, #1 // was there exacly 1 dictionary miss?
546 cmp edx, #2 // was the very 1st tag a miss?
550 cmp r13, #1 // was there 1 partial hit?
553 cmp r11, #(256*PAGES_SIZE_IN_KBYTES) // were there 1024 dictionary hits
557 cmp edx, #1 // was the very 1st tag a partial?
[all …]
H A DWKdmCompress_16k.s374 cmp next_tag, rcx
388 cmp rcx, next_qp // endQPosArray vs next_qp
403 cmp rcx, tempQPosArray // endQPosArray vs tempQPosArray
412 cmp rcx, rdx // source_end vs src_next
541 cmp r11, #(256*PAGES_SIZE_IN_KBYTES - 1) // were there 1023 dictionary hits
544 cmp rax, #1 // was there exacly 1 dictionary miss?
548 cmp edx, #2 // was the very 1st tag a miss?
552 cmp r13, #1 // was there 1 partial hit?
555 cmp r11, #(256*PAGES_SIZE_IN_KBYTES) // were there 1024 dictionary hits
559 cmp edx, #1 // was the very 1st tag a partial?
[all …]
H A Dlocore.s55 cmp x26, xzr
142 cmp x4, x5
152 cmp x4, x5
363 cmp sp, x18
366 cmp sp, x18
618 cmp x0, x18
823 cmp x0, x1
947 cmp w6, w4
1658 cmp x0, x1
1932 cmp x0, x10
[all …]
H A Dproc_reg.h2603 cmp $1, $2
2644 cmp $3, $0
2650 cmp $3, $1
2656 cmp $3, $0
2662 cmp $3, $1
2668 cmp $3, $0
2674 cmp $3, $1
2687 cmp $2, $0
2695 cmp $2, $0
2703 cmp $2, $0
[all …]
H A Dpac_asm.h63 cmp \new_jop_key, \tmp
83 cmp \new_rop_key, \tmp
/xnu-11215/bsd/tests/
H A Dcopyio_tests.c135 int cmp = memcmp(out_buf, in_buf, copyio_test_buf_size); in copyin_test() local
136 T_EXPECT_EQ_INT(cmp, 0, "copyin() should correctly copy in data"); in copyin_test()
151 cmp = memcmp(data->kern_addr, in_buf, copyio_test_buf_size); in copyin_test()
182 int cmp = memcmp(data->kern_addr, out_buf, copyio_test_buf_size); in copyout_test() local
183 T_EXPECT_EQ_INT(cmp, 0, "copyout() should correctly copy out data"); in copyout_test()
199 cmp = memcmp(out_buf, data->kern_addr, copyio_test_buf_size); in copyout_test()
231 int cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test() local
233 cmp = memcmp(in_buf, copyio_test_string, sizeof(copyio_test_string)); in copyinstr_test()
241 cmp = memcmp(in_buf, copyio_test_string, trunc_size); in copyinstr_test()
260 cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test()
[all …]
H A Dptrauth_data_tests_sysctl.c56 decl cmp = ptrauth_sign_unauthenticated(ptr, key, \
58 if (cmp != raw) { \
59 …test: %s (%s) (discr=%s) is not signed as expected (%p vs %p)\n", #decl, #ptr, #discr, raw, cmp); \
/xnu-11215/osfmk/x86_64/
H A Dlz4_decode_x86_64.s156 cmp src,src_end
161 cmp dst,dst_end
193 cmp $15,n_literals
209 cmp $255,%rax
226 cmp copy_dst,dst
238 cmp copy_src,dst_begin
242 cmp $19,n_matches
245 cmp $16,n_matches
285 cmp %rbx,%rax
302 cmp copy_dst,dst
[all …]
/xnu-11215/libsyscall/custom/
H A D__getpid.s121 cmp r0, #0
128 cmp r2, #0 // we can't if there are any...
134 cmp r2, r1 // anyone else trying to look?
136 cmp r2, #0 // see if we can cache it
162 cmp w0, #0 // See if there's a cached value
H A D__vfork.s146 cmp r2, #0
152 cmp r1, r2 // anyone else trying to look?
163 cmp r1, #0 // parent (r1=0) or child(r1=1)
187 cmp r2, #0
191 cmp r1, r2 // anyone else trying to look?
H A D__gettimeofday.s64 cmp $0, %eax
86 cmp $0, %rax
/xnu-11215/osfmk/arm64/sptm/
H A Dstart_sptm.s78 cmp x0, x8
110 cmp x0, x20
217 cmp x0, x2
222 cmp x1, x3
249 cmp x2, x3
254 cmp x2, x3
/xnu-11215/bsd/sys/
H A Dtime.h167 #define timercmp(tvp, uvp, cmp) \ argument
169 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
170 ((tvp)->tv_sec cmp (uvp)->tv_sec))
190 #define timevalcmp(l, r, cmp) timercmp(l, r, cmp) /* freebsd */ argument
/xnu-11215/libsyscall/wrappers/
H A Dmach_absolute_time.s182 cmp r0, #USER_TIMEBASE_NONE // Are userspace reads supported?
194 cmp r1, r2 // Did the high bits change?
232 cmp x1, x2 // Compare our offset values...
258 cmp x2, #USER_TIMEBASE_NONE // Are userspace reads supported?
260 cmp x2, #USER_TIMEBASE_NOSPEC
262 cmp x2, #USER_TIMEBASE_NOSPEC_APPLE
H A Dmach_approximate_time.s42 cmp r0, #1 // check if approx time is supported
66 cmp r1, r3 // check that high1 == high2
/xnu-11215/libkern/libkern/
H A Dtree.h158 if ((cmp)(elm, (head)->sph_root) == 0) \
196 __comp = (cmp)(elm, (head)->sph_root); \
219 if ((cmp)(elm, (head)->sph_root) == 0) { \
242 while ((__comp = (cmp)(elm, (head)->sph_root)) != 0) { \
247 if ((cmp)(elm, __tmp) < 0){ \
257 if ((cmp)(elm, __tmp) > 0){ \
276 while ((__tmp != NULL) && ((__comp = (cmp)(elm, __tmp)) != 0)) { \
687 comp = (cmp)(elm, parent); \
715 comp = cmp(elm, tmp); \
735 comp = cmp(elm, tmp); \
[all …]
/xnu-11215/bsd/dev/arm/
H A Dcpu_in_cksum.s153 cmp r9, #0 /* length is 0? */
166 cmp ip, #0x00
183 cmp r9, r1
220 cmp r1, r7 /* Enough bytes left to make it? */
222 cmp r7, #0x02
248 cmp r1, #512 // do this if r1 is at least 512
346 cmp r1, #0x20
409 cmp r1, #0x02
435 cmp ip, #00
H A Dcpu_copy_in_cksum.s90 cmp len, #0
134 cmp len, #8*16
202 cmp len, #4*16
219 cmp len, #2*16
233 cmp len, #16
/xnu-11215/libkern/kxld/
H A Dkxld_dict.c79 kxld_dict_init(KXLDDict * dict, kxld_dict_hash hash, kxld_dict_cmp cmp, in kxld_dict_init() argument
88 check(cmp); in kxld_dict_init()
104 dict->cmp = cmp; in kxld_dict_init()
122 dict->cmp = NULL; in kxld_dict_clear()
203 while (!dict->cmp(entry->key, key)) { in get_locate_index()
332 while (entry->state == USED && !dict->cmp(entry->key, key)) { in get_insert_index()
/xnu-11215/osfmk/tests/
H A Dptrauth_data_tests.c56 decl cmp = ptrauth_sign_unauthenticated(ptr, key, \
58 if (cmp != raw) { \
59 …test: %s (%s) (discr=%s) is not signed as expected (%p vs %p)\n", #decl, #ptr, #discr, raw, cmp); \
/xnu-11215/bsd/dev/arm64/
H A Dcpu_in_cksum.s143 cmp mlen, off
179 cmp mlen, len
217 cmp mlen, #2
236 cmp mlen, #4
410 cmp len, #0
/xnu-11215/bsd/dev/dtrace/
H A Ddtrace_glue.c893 dtrace_cas32(uint32_t *target, uint32_t cmp, uint32_t new) in dtrace_cas32() argument
895 if (OSCompareAndSwap((UInt32)cmp, (UInt32)new, (volatile UInt32 *)target )) { in dtrace_cas32()
896 return cmp; in dtrace_cas32()
898 return ~cmp; /* Must return something *other* than cmp */ in dtrace_cas32()
903 dtrace_casptr(void *target, void *cmp, void *new) in dtrace_casptr() argument
905 if (OSCompareAndSwapPtr( cmp, new, (void**)target )) { in dtrace_casptr()
906 return cmp; in dtrace_casptr()
1269 int cmp; in bsearch() local
1273 cmp = (*compar)(key, p); in bsearch()
1274 if (cmp == 0) { in bsearch()
[all …]

1234