| /xnu-11215/bsd/dev/arm64/ |
| H A D | cpu_memcmp_mask.s | 71 eor.16b v0, v0, v1 72 and.16b v0, v0, v2 73 umaxv b0, v0.16b 98 eor.16b v0, v0, v2 99 eor.16b v1, v1, v3 100 and.16b v0, v0, v4 101 and.16b v1, v1, v5 102 orr.16b v0, v0, v1 103 umaxv b0, v0.16b 128 eor.16b v0, v0, v3 [all …]
|
| /xnu-11215/tools/tests/perf_index/ |
| H A D | md5.c | 24 #define FF(a, b, c, d, M, s, t) \ argument 25 a = (a + F(b,c,d) + M + t); a = CC_ROLc(a, s) + b; 27 #define GG(a, b, c, d, M, s, t) \ argument 28 a = (a + G(b,c,d) + M + t); a = CC_ROLc(a, s) + b; 30 #define HH(a, b, c, d, M, s, t) \ argument 31 a = (a + H(b,c,d) + M + t); a = CC_ROLc(a, s) + b; 33 #define II(a, b, c, d, M, s, t) \ argument 34 a = (a + I(b,c,d) + M + t); a = CC_ROLc(a, s) + b; 39 uint32_t i, W[16], a, b, c, d; in md5_compress() local 51 b = s[1]; in md5_compress() [all …]
|
| /xnu-11215/bsd/netinet/ |
| H A D | tcp_seq.h | 72 #define SEQ_LT(a, b) ((int)((a)-(b)) < 0) argument 73 #define SEQ_LEQ(a, b) ((int)((a)-(b)) <= 0) argument 74 #define SEQ_GT(a, b) ((int)((a)-(b)) > 0) argument 75 #define SEQ_GEQ(a, b) ((int)((a)-(b)) >= 0) argument 77 #define SEQ_MIN(a, b) ((SEQ_LT(a, b)) ? (a) : (b)) argument 78 #define SEQ_MAX(a, b) ((SEQ_GT(a, b)) ? (a) : (b)) argument 81 #define TSTMP_LT(a, b) ((int)((a)-(b)) < 0) argument 82 #define TSTMP_GT(a, b) ((int)((a)-(b)) > 0) argument 83 #define TSTMP_LEQ(a, b) ((int)((a)-(b)) <= 0) argument 91 #define CC_LT(a, b) ((int)((a)-(b)) < 0) argument [all …]
|
| /xnu-11215/bsd/net/ |
| H A D | flowhash.c | 396 b -= a; b ^= ROTL32(a, 6); a += c; \ 397 c -= b; c ^= ROTL32(b, 8); b += a; \ 399 b -= a; b ^= ROTL32(a, 19); a += c; \ 400 c -= b; c ^= ROTL32(b, 4); b += a; \ 404 c ^= b; c -= ROTL32(b, 14); \ 406 b ^= a; b -= ROTL32(a, 25); \ 407 c ^= b; c -= ROTL32(b, 16); \ 409 b ^= a; b -= ROTL32(a, 14); \ 410 c ^= b; c -= ROTL32(b, 24); \ 801 b += k[4]; [all …]
|
| /xnu-11215/osfmk/arm64/ |
| H A D | strncmp.s | 79 b.eq L_s1aligned 86 b.ne 0b // continue loop if non-zero 115 b.eq 2f 131 uminv.16b b1, v0 135 b.ne 1b 149 b.ne 2b 154 b 0b 164 b.lo L_scalar 174 uminv.16b b1, v0 178 b.hi 0b [all …]
|
| H A D | lz4_encode_arm64.s | 82 b.lt L_done 126 b L_found_valid_match 147 b L_found_valid_match 255 b.lo L_done 261 b.lo L_done 283 b.lo L_done 289 b.lo L_done 319 b.lo L_hash_match 343 b.mi L_done 372 b L_done [all …]
|
| H A D | WKdmDecompress_16k.s | 167 b.ne 1b 177 b.ne 2b 178 b L_done 256 b.le 1f 302 b.eq 1f 324 b.eq 1f 338 b.eq 2f 340 b 1f 356 b L_next 373 b.eq L_MISS_TAG [all …]
|
| H A D | WKdmDecompress_4k.s | 167 b.ne 1b 177 b.ne 2b 178 b L_done 256 b.le 1f 302 b.eq 1f 324 b.eq 1f 338 b.eq 2f 340 b 1f 356 b L_next 373 b.eq L_MISS_TAG [all …]
|
| H A D | lz4_decode_arm64.s | 184 b L_expand_match 218 b L_decode_command 226 tbl v0.16b,{v0.16b},v1.16b // low 16 bytes of pattern 228 b L_decode_command 243 b.hi L_copy_long_match_32 253 tbl v0.16b,{v1.16b},v2.16b // low 16 bytes of pattern in q0 254 tbl v1.16b,{v1.16b},v3.16b // high 16 bytes of pattern in q1 267 b L_decode_command 277 b L_decode_command 287 b L_decode_command [all …]
|
| H A D | WKdmCompress_4k.s | 294 b L_loop 361 orr.8b v0, v0, v1 391 b.eq 1f 394 b.eq 1f 397 b.eq 2f 489 b.gt L_loop 506 b.gt L_loop 540 b.ne 1f 543 b.ne 1f 601 b.ne 1b [all …]
|
| H A D | WKdmCompress_16k.s | 296 b L_loop 363 orr.8b v0, v0, v1 393 b.eq 1f 396 b.eq 1f 399 b.eq 2f 491 b.gt L_loop 508 b.gt L_loop 542 b.ne 1f 545 b.ne 1f 603 b.ne 1b [all …]
|
| H A D | memcmp_zero.s | 79 b.lo L_sizeIsSmall 93 b.ls L_cleanup 99 orr.16b v5, v5, v1 100 orr.16b v6, v6, v2 101 orr.16b v7, v7, v3 104 b.hi L_loop 115 orr.16b v5, v5, v1 116 orr.16b v6, v6, v2 117 orr.16b v7, v7, v3 120 orr.16b v6, v6, v7 [all …]
|
| H A D | strnlen.s | 77 b.mi _strlen 78 b.eq L_maxlenIsZero 98 orr.16b v0, v0, v1 102 b 1f 109 1: uminv.16b b1, v0 113 b.hi 0b 133 uminv.16b b1, v0 167 b 1f 178 1: uminv.16b b1, v0 180 cbnz w2, 0b [all …]
|
| /xnu-11215/tests/bounded_ptr_src/ |
| H A D | compare.order.raw.cpp | 80 check_eq(a, b); in tests() 89 check_eq(a, b); in tests() 98 check_lt(a, b); in tests() 107 check_eq(a, b); in tests() 116 check_lt(a, b); in tests() 127 check_eq(a, b); in tests() 136 check_eq(a, b); in tests() 145 check_eq(a, b); in tests() 154 check_lt(a, b); in tests() 161 check_eq(a, b); in tests() [all …]
|
| H A D | compare.equal.raw.cpp | 58 check_eq(a, b); in tests() 67 check_eq(a, b); in tests() 76 check_ne(a, b); in tests() 85 check_eq(a, b); in tests() 94 check_ne(a, b); in tests() 105 check_eq(a, b); in tests() 114 check_eq(a, b); in tests() 123 check_eq(a, b); in tests() 132 check_ne(a, b); in tests() 139 check_eq(a, b); in tests() [all …]
|
| H A D | arith.difference.cpp | 30 std::ptrdiff_t diff = a - b; in tests() 36 std::ptrdiff_t diff = a - b; in tests() 42 std::ptrdiff_t diff = a - b; in tests() 48 std::ptrdiff_t diff = a - b; in tests() 54 std::ptrdiff_t diff = a - b; in tests() 60 std::ptrdiff_t diff = a - b; in tests() 68 std::ptrdiff_t diff = a - b; in tests() 100 _assert(a - b == -2); in tests() 101 _assert(b - a == 2); in tests() 108 _assert(a - b == -2); in tests() [all …]
|
| H A D | compare.equal.cpp | 61 check_eq(a, b); in tests() 66 check_ne(a, b); in tests() 71 check_ne(a, b); in tests() 76 check_ne(a, b); in tests() 81 check_eq(a, b); in tests() 88 check_ne(a, b); in tests() 93 check_eq(a, b); in tests() 101 check_eq(a, b); in tests() 107 check_ne(a, b); in tests() 113 check_eq(a, b); in tests() [all …]
|
| H A D | compare.order.cpp | 77 check_eq(a, b); in tests() 82 check_lt(a, b); in tests() 87 check_lt(a, b); in tests() 92 check_lt(a, b); in tests() 97 check_eq(a, b); in tests() 104 check_lt(a, b); in tests() 109 check_eq(a, b); in tests() 117 check_eq(a, b); in tests() 123 check_lt(a, b); in tests() 129 check_eq(a, b); in tests() [all …]
|
| /xnu-11215/tests/ |
| H A D | test_strings.c | 48 T_COMPARE(a, sizeof(a), b, sizeof(b), 0); 49 T_COMPARE(b, sizeof(b), a, sizeof(a), 0); 52 T_COMPARE(a, sizeof(a), b, sizeof(b), 0); 53 T_COMPARE(b, sizeof(b), a, sizeof(a), 0); 85 T_COMPARE(b, sizeof(b), a, 0); 89 T_COMPARE(b, sizeof(b), a, 0); 107 T_COMPARE(b, sizeof(b) - 1, a, 0); 121 T_COMPARE(a, sizeof(a), b, sizeof(b), 0); 159 T_COMPARE(b, sizeof(b), a, 0); 163 T_COMPARE(b, sizeof(b), a, 0); [all …]
|
| /xnu-11215/libkern/kxld/tests/ |
| H A D | kxld_dict_test.c | 49 void * b = NULL; in main() local 66 b = kxld_dict_find(&dict, "hi"); in main() 67 assert(b == NULL); in main() 73 assert(b && *(int*)b == a1); in main() 81 assert(b && *(int*)b == a2); in main() 90 assert(b == NULL); in main() 101 assert(b && *(int*)b == a1); in main() 103 assert(b && *(int*)b == a2); in main() 109 assert(b && *(int*)b == a1); in main() 111 assert(b == NULL); in main() [all …]
|
| /xnu-11215/bsd/libkern/ |
| H A D | libkern.h | 104 imax(int a, int b) in imax() argument 106 return a > b ? a : b; in imax() 109 imin(int a, int b) in imin() argument 111 return a < b ? a : b; in imin() 114 lmax(long a, long b) in lmax() argument 116 return a > b ? a : b; in lmax() 121 return a < b ? a : b; in lmin() 126 return a > b ? a : b; in max() 131 return a < b ? a : b; in min() 136 return a > b ? a : b; in ulmax() [all …]
|
| /xnu-11215/bsd/sys/ |
| H A D | kdebug_kernel.h | 235 #define KDBG_(f, x, a, b, c, d, n, ...) KDBG##n(f, x, a, b, c, d) argument 238 #define KDBG2(f, x, a, b, c, d) KERNEL_DEBUG_CONSTANT##f(x, a, b, 0, 0, 0) argument 239 #define KDBG3(f, x, a, b, c, d) KERNEL_DEBUG_CONSTANT##f(x, a, b, c, 0, 0) argument 240 #define KDBG4(f, x, a, b, c, d) KERNEL_DEBUG_CONSTANT##f(x, a, b, c, d, 0) argument 331 #define KERNEL_DEBUG_CONSTANT(x, a, b, c, d, e) do {} while (0) argument 343 #define KERNEL_DEBUG_CONSTANT_RELEASE(x, a, b, c, d, e) \ argument 372 #define KERNEL_DEBUG_EARLY(x, a, b, c, d) do {} while (0) argument 382 #define KERNEL_DEBUG_CONSTANT_DEBUG(x, a, b, c, d, e) \ argument 383 KERNEL_DEBUG(x, a, b, c, d, e) 412 #define KERNEL_DEBUG(x, a, b, c, d, e) do {} while (0) argument [all …]
|
| /xnu-11215/tests/safe_allocation_src/ |
| H A D | swap.cpp | 23 T* b_mem = b.data(); in tests() 26 swap(a, b); // ADL call in tests() 31 CHECK(b.data() == a_mem); in tests() 33 CHECK(b.size() == 10); in tests() 43 swap(a, b); // ADL call in tests() 50 CHECK(b.size() == 10); in tests() 57 T* b_mem = b.data(); in tests() 60 swap(a, b); // ADL call in tests() 67 CHECK(b.size() == 0); in tests() 76 swap(a, b); // ADL call in tests() [all …]
|
| /xnu-11215/libkern/os/ |
| H A D | refcnt_internal.h | 410 return os_ref_release_barrier_mask_internal(rc, 1u << b, grp) >> b; in os_ref_release_mask() 416 return os_ref_release_relaxed_mask_internal(rc, 1u << b, grp) >> b; in os_ref_release_relaxed_mask() 423 if (__improbable(val < 1u << b)) { in os_ref_release_live_raw_mask() 438 #define os_ref_retain_mask(rc, b, grp) (os_ref_retain_mask)((rc), (b), NULL) argument 439 #define os_ref_retain_acquire_mask(rc, b, grp) (os_ref_retain_acquire_mask)((rc), (b), NULL) argument 440 #define os_ref_retain_try_mask(rc, b, m, grp) (os_ref_retain_try_mask)((rc), (b), (m), NULL) argument 442 #define os_ref_release_mask(rc, b, grp) (os_ref_release_mask)((rc), (b), NULL) argument 443 #define os_ref_release_relaxed_mask(rc, b, grp) (os_ref_release_relaxed_mask)((rc), (b), NULL) argument 444 #define os_ref_release_raw_mask(rc, b, grp) (os_ref_release_raw_mask)((rc), (b), NULL) argument 446 #define os_ref_release_live_raw_mask(rc, b, grp) (os_ref_release_live_raw_mask)((rc), (b), NULL) argument [all …]
|
| /xnu-11215/libkern/libkern/ |
| H A D | OSAtomic.h | 85 #define OSCompareAndSwap64(a, b, c) \ argument 100 #define OSAddAtomic64(a, b) \ argument 147 #define OSAddAtomicLong(a, b) \ argument 202 #define OSCompareAndSwap8(a, b, c) \ argument 225 #define OSCompareAndSwap16(a, b, c) \ argument 250 #define OSCompareAndSwap(a, b, c) \ argument 272 #define OSCompareAndSwapPtr(a, b, c) \ argument 292 #define OSAddAtomic(a, b) \ argument 441 #define OSBitAndAtomic(a, b) \ argument 497 #define OSBitOrAtomic(a, b) \ argument [all …]
|