| /xnu-11215/bsd/netinet6/ |
| H A D | in6.h | 285 #define IN6_ARE_ADDR_EQUAL(a, b) \ argument 290 #define IN6_ARE_ADDR_EQUAL(a, b) \ argument 371 (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0x80)) 373 (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0xc0)) 378 #define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) argument 380 #define IPV6_ADDR_MC_FLAGS(a) ((a)->s6_addr[1] & 0xf0) argument 394 (((a)->s6_addr[0] == 0xfc) || ((a)->s6_addr[0] == 0xfd)) 397 #define IPV6_ADDR_MC_SCOPE(a) ((a)->s6_addr[1] & 0x0f) argument 399 #define __IPV6_ADDR_MC_SCOPE(a) ((a)->s6_addr[1] & 0x0f) argument 454 (IN6_IS_ADDR_MC_LINKLOCAL(a))) [all …]
|
| /xnu-11215/tests/ |
| H A D | test_strings.c | 57 T_COMPARE(a, sizeof(a), c, sizeof(c), a[0] - c[0]); 58 T_COMPARE(c, sizeof(c), a, sizeof(a), c[0] - a[0]); 84 T_COMPARE(a, sizeof(a), b, 0); 88 T_COMPARE(a, sizeof(a), b, 0); 93 T_COMPARE(a, sizeof(a), c, a[0] - c[0]); 106 T_COMPARE(a, sizeof(a) - 1, b, 0); 130 T_COMPARE(a, sizeof(a), c, sizeof(c), a[0] - c[0]); 131 T_COMPARE(c, sizeof(c), a, sizeof(a), c[0] - a[0]); 158 T_COMPARE(a, sizeof(a), b, 0); 162 T_COMPARE(a, sizeof(a), b, 0); [all …]
|
| H A D | lockf_basic.c | 252 int a, a_confined, b, b_confined; variable 290 LOCK_AND_CHECK("Coalesce: equal", a, 340 LOCK_AND_CHECK("Coalesce: extend high", a, 350 LOCK_AND_CHECK("Coalesce: extend low", a, 370 LOCK_AND_CHECK("Coalesce: overlap end", a, 428 LOCK_AND_CHECK("Upgrade: 3-way split", a, 477 UNLOCK_AND_CHECK("Unlock: overlap end", a, 508 UNLOCK_AND_CHECK("Unlock: equal range", a, 544 UNLOCK_AND_CHECK("Unlock: end-aligned", a, 556 UNLOCK_AND_CHECK("Unlock: split", a, [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 50 a = s[0]; in md5_compress() [all …]
|
| /xnu-11215/libkern/zlib/ |
| H A D | adler32.c | 65 if (a >= (BASE << 9)) a -= (BASE << 9); \ 66 if (a >= (BASE << 8)) a -= (BASE << 8); \ 67 if (a >= (BASE << 7)) a -= (BASE << 7); \ 68 if (a >= (BASE << 6)) a -= (BASE << 6); \ 69 if (a >= (BASE << 5)) a -= (BASE << 5); \ 70 if (a >= (BASE << 4)) a -= (BASE << 4); \ 71 if (a >= (BASE << 3)) a -= (BASE << 3); \ 74 if (a >= BASE) a -= BASE; \ 82 if (a >= BASE) a -= BASE; \ 85 # define MOD(a) a %= BASE argument [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 …]
|
| H A D | ip_compat.h | 67 # define bzero(a, b) memset(a,0,b) 69 # define bcopy(a, b, c) memmove(b,a,c) 139 #define MAX(a, b) (((a) > (b)) ? (a) : (b)) 214 # define IRCOPY(a, b, c) copyin((a), (b), (c)) 272 # define IRCOPY(a, b, c) bcopy((a), (b), (c)) 273 # define IWCOPY(a, b, c) bcopy((a), (b), (c)) 359 # define IRCOPY(a, b, c) bcopy((a), (b), (c)) 360 # define IWCOPY(a, b, c) bcopy((a), (b), (c)) 668 # define bcmp(a, b, c) memcmp(a,b,c) 669 # define bcopy(a, b, c) memcpy(b,a,c) [all …]
|
| /xnu-11215/bsd/kern/ |
| H A D | qsort.c | 77 #define min(a, b) ((a) < (b) ? (a) : (b)) argument 113 #define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype) argument 118 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() 134 for (pm = (char *)a + es; pm < (char *) a + n * es; pm += es) { in qsort() 144 pl = a; in qsort() 154 swap(a, pm); in qsort() 184 for (pm = (char *)a + es; pm < (char *) a + n * es; pm += es) { in qsort() 195 vecswap(a, pb - r, r); in qsort() [all …]
|
| /xnu-11215/bsd/net/ |
| H A D | flowhash.c | 395 a -= c; a ^= ROTL32(c, 4); c += b; \ 396 b -= a; b ^= ROTL32(a, 6); a += c; \ 398 a -= c; a ^= ROTL32(c, 16); c += b; \ 399 b -= a; b ^= ROTL32(a, 19); a += c; \ 405 a ^= c; a -= ROTL32(c, 11); \ 406 b ^= a; b -= ROTL32(a, 25); \ 408 a ^= c; a -= ROTL32(c, 4); \ 409 b ^= a; b -= ROTL32(a, 14); \ 574 a += k[3]; in net_flowhash_jhash() 797 a += k[0]; [all …]
|
| /xnu-11215/bsd/vfs/ |
| H A D | kpi_vfs.c | 3670 a.a_vp = vp; in VNOP_OPEN() 3703 a.a_vp = vp; in VNOP_CLOSE() 3736 a.a_vp = vp; in VNOP_ACCESS() 3766 a.a_vp = vp; in VNOP_GETATTR() 3796 a.a_vp = vp; in VNOP_SETATTR() 3903 a.a_vp = vp; in VNOP_READ() 3944 a.a_vp = vp; in VNOP_WRITE() 4010 a.a_vp = vp; in VNOP_IOCTL() 4048 a.a_vp = vp; in VNOP_SELECT() 4119 a.a_vp = vp; in VNOP_REVOKE() [all …]
|
| /xnu-11215/tests/safe_allocation_src/ |
| H A D | swap.cpp | 22 T* a_mem = a.data(); in tests() 26 swap(a, b); // ADL call in tests() 30 CHECK(a.data() == b_mem); in tests() 32 CHECK(a.size() == 20); in tests() 40 T* a_mem = a.data(); in tests() 43 swap(a, b); // ADL call in tests() 49 CHECK(a.size() == 0); in tests() 66 CHECK(a.size() == 20); in tests() 82 CHECK(a.size() == 0); in tests() 89 T* a_mem = a.data(); in tests() [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/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 250 #define OSCompareAndSwap(a, b, c) \ argument 292 #define OSAddAtomic(a, b) \ argument 344 #define OSIncrementAtomic(a) \ argument 391 #define OSDecrementAtomic(a) \ argument 441 #define OSBitAndAtomic(a, b) \ argument 497 #define OSBitOrAtomic(a, b) \ argument [all …]
|
| /xnu-11215/tests/intrusive_shared_ptr_src/ |
| H A D | swap.cpp | 23 T* a_raw = a.get(); in tests() 27 swap(a, b); // ADL call in tests() 31 CHECK(a.get() == b_raw); in tests() 39 T* a_raw = a.get(); in tests() 42 swap(a, b); // ADL call in tests() 57 swap(a, b); // ADL call in tests() 61 CHECK(a.get() == b_raw); in tests() 71 swap(a, b); // ADL call in tests() 82 T* a_raw = a.get(); in tests() 85 swap(a, a); // ADL call in tests() [all …]
|
| H A D | compare.equal.raw.cpp | 53 test_shared_ptr<TQual> const a(&obj1, libkern::no_retain); in tests() local 55 check_ne(a, b); in tests() 61 check_eq(a, b); in tests() 65 test_shared_ptr<TQual> const a = nullptr; in tests() local 67 check_ne(a, b); in tests() 73 check_ne(a, b); in tests() 77 test_shared_ptr<TQual> const a = nullptr; in tests() local 79 check_eq(a, b); in tests() 90 test_shared_ptr<T> const a(&obj, libkern::no_retain); in tests_convert() local 92 check_eq(a, b); in tests_convert() [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 237 #define KDBG1(f, x, a, b, c, d) KERNEL_DEBUG_CONSTANT##f(x, a, 0, 0, 0, 0) 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 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 …]
|
| H A D | param.h | 210 #define setbit(a, i) (((unsigned char *)(a))[(i)/NBBY] |= 1u<<((i)%NBBY)) argument 211 #define clrbit(a, i) (((unsigned char *)(a))[(i)/NBBY] &= ~(1u<<((i)%NBBY))) argument 212 #define isset(a, i) (((unsigned char *)(a))[(i)/NBBY] & (1u<<((i)%NBBY))) argument 213 #define isclr(a, i) ((((unsigned char *)(a))[(i)/NBBY] & (1u<<((i)%NBBY))) == 0) argument 225 #define MIN(a, b) (((a)<(b))?(a):(b)) argument 228 #define MAX(a, b) (((a)>(b))?(a):(b)) argument
|
| /xnu-11215/libkern/os/ |
| H A D | overflow.h | 58 #define os_add_overflow(a, b, res) __os_warn_unused(__builtin_add_overflow((a), (b), (res))) argument 59 #define os_sub_overflow(a, b, res) __os_warn_unused(__builtin_sub_overflow((a), (b), (res))) argument 60 #define os_mul_overflow(a, b, res) __os_warn_unused(__builtin_mul_overflow((a), (b), (res))) argument 67 #define os_add3_overflow(a, b, c, res) __os_warn_unused(__extension__({ \ argument 70 _s = os_add_overflow((a), (b), &_tmp); \ 76 #define os_sub3_overflow(a, b, c, res) __os_warn_unused(__extension__({ \ argument 79 _s = os_sub_overflow((a), (b), &_tmp); \ 88 _s = os_mul_overflow((a), (b), &_tmp); \ 97 _s = os_add_overflow((a), (b), &_tmp); \ 106 _s = os_mul_overflow((a), (x), &_tmp); \ [all …]
|
| /xnu-11215/osfmk/mach/ |
| H A D | ndr.h | 92 #define __NDR_convert__SINGLE(a, f, r) do { r((a), (f)); } while (0) argument 93 #define __NDR_convert__ARRAY(a, f, c, r) \ argument 96 r(&(a)[__i__], f); } while (0) 100 r(&(a)[__i__ * __S__], f, __S__); } while (0) 104 #define __NDR_READSWAP_assign(a, rs) do { *(a) = rs(a); } while (0) argument 106 #define __NDR_READSWAP__uint16_t(a) OSReadSwapInt16((void *)a, 0) argument 107 #define __NDR_READSWAP__int16_t(a) (int16_t)OSReadSwapInt16((void *)a, 0) argument 108 #define __NDR_READSWAP__uint32_t(a) OSReadSwapInt32((void *)a, 0) argument 109 #define __NDR_READSWAP__int32_t(a) (int32_t)OSReadSwapInt32((void *)a, 0) argument 110 #define __NDR_READSWAP__uint64_t(a) OSReadSwapInt64((void *)a, 0) argument [all …]
|
| /xnu-11215/osfmk/kern/ |
| H A D | socd_client_kern.h | 64 #define SOCD_TRACE_(x, a, b, c, d, n, ...) SOCD_TRACE##n(x, a, b, c, d) argument 65 #define SOCD_TRACE0(x, a, b, c, d) SOCD_TRACE_IMPL(x, 0, 0, 0, … argument 66 #define SOCD_TRACE1(x, a, b, c, d) SOCD_TRACE_IMPL(x, SOCD_##a, 0, 0, … argument 67 #define SOCD_TRACE2(x, a, b, c, d) SOCD_TRACE_IMPL(x, SOCD_##a, SOCD_##b, 0, … argument 68 #define SOCD_TRACE3(x, a, b, c, d) SOCD_TRACE_IMPL(x, SOCD_##a, SOCD_##b, SOCD_##c, … argument 69 #define SOCD_TRACE4(x, a, b, c, d) SOCD_TRACE_IMPL(x, SOCD_##a, SOCD_##b, SOCD_##c, SOCD_##… argument 76 #define SOCD_TRACE_IMPL(x, a, b, c, d) \ argument 78 socd_client_trace((x), (socd_client_trace_arg_t)(a), (socd_client_trace_arg_t)(b), \ 83 #define SOCD_TRACE_IMPL(x, a, b, c, d)
|