Searched refs:BIT (Results 1 – 12 of 12) sorted by relevance
| /xnu-12377.1.9/san/memory/ |
| H A D | kasan_internal.h | 39 #define BIT(x) (1U << (x)) macro 100 TYPE_LOAD = BIT(0), /* regular memory load */ 101 TYPE_STORE = BIT(1), /* regular store */ 102 TYPE_MEMR = BIT(2), /* memory intrinsic (read) */ 103 TYPE_MEMW = BIT(3), /* memory intrinsic (write) */ 104 TYPE_STRR = BIT(4), /* string intrinsic (read) */ 105 TYPE_STRW = BIT(5), /* string intrinsic (write) */ 108 TYPE_ZFREE = BIT(6), /* zfree() */ 109 TYPE_FSFREE = BIT(7), /* fakestack free */ 111 TYPE_UAF = BIT(12), [all …]
|
| /xnu-12377.1.9/osfmk/kern/ |
| H A D | bits.h | 53 #define BIT(b) (1ULL << (b)) macro 55 #define mask(width) (width >= 64 ? -1ULL : (BIT(width) - 1)) 59 #define bit_assign(x, b, e) ((x) = (((x) & ~BIT(b))) | ((((uint64_t) (!!(e)))) << (b))) 60 #define bit_set(x, b) ((x) |= BIT(b)) 61 #define bit_clear(x, b) ((x) &= ~BIT(b)) 62 #define bit_test(x, b) ((bool)((x) & BIT(b))) 182 prev = __c11_atomic_fetch_or(map, BIT(n), mem_order); in atomic_bit_set() 190 prev = __c11_atomic_fetch_and(map, ~BIT(n), mem_order); in atomic_bit_clear()
|
| H A D | sched_rt.c | 561 …psets_ordered(stealing_pset, &stealing_pset->sched_rt_steal_search_order, ~BIT(stealing_pset->pset… in sched_rt_steal_thread() 850 cpumap_t candidate_map = ~BIT(starting_pset->pset_id); /* exclude stealing_pset */ in rt_choose_next_processor_for_spill_IPI()
|
| H A D | sched_prim.c | 7208 online_cores_goal = BIT(lsb_first(pcs.pcs_managed_cores)); in sched_compute_requested_powered_cores() 7305 if ((pcs.pcs_recommended_cores & pcs.pcs_effective.pcs_online_cores) == BIT(processor->cpu_id)) { in sched_processor_exit_user() 8281 assertf(pcs.pcs_effective.pcs_online_cores != BIT(cpu_id), in sched_assert_not_last_online_cpu() 8480 if ((pcs.pcs_effective.pcs_online_cores & pcs.pcs_recommended_cores) == BIT(processor->cpu_id)) { in sched_mark_processor_offline() 8481 sched_update_recommended_cores_locked(REASON_SYSTEM, BIT(processor->cpu_id)); in sched_mark_processor_offline() 8485 if ((pcs.pcs_effective.pcs_online_cores & pcs.pcs_recommended_cores) == BIT(processor->cpu_id)) { in sched_mark_processor_offline()
|
| /xnu-12377.1.9/tests/unit/ |
| H A D | bits_test.c | 47 T_EXPECT_EQ(bit_first(BIT(i)), i, "bit_first"); 48 T_EXPECT_EQ(lsb_first(BIT(i)), i, "lsb_first");
|
| /xnu-12377.1.9/osfmk/arm64/ |
| H A D | lock_ticket_pv.c | 116 const cpumap_t kickmask = BIT(cpu_number()); in hw_lck_ticket_lock_wait_pv()
|
| H A D | copyio.c | 156 user_addr_t kaddr = addr | BIT(55); in copy_ensure_address_space_spec() 157 user_addr_t uaddr = addr & (~BIT(55)); in copy_ensure_address_space_spec()
|
| /xnu-12377.1.9/osfmk/arm/ |
| H A D | machine_routines.h | 1292 #define ONES(x) (BIT((x))-1) 1295 #define SIGN(p) ((p) & BIT(55))
|
| /xnu-12377.1.9/tests/sched/sched_test_harness/ |
| H A D | sched_clutch_harness_impl.c | 151 node->pset_map |= BIT(i); in clutch_impl_init_topology()
|
| /xnu-12377.1.9/tools/tests/zero-to-n/ |
| H A D | zero-to-n.c | 242 #define BIT(b) (1ULL << (b)) macro 243 #define mask(width) (width >= 64 ? -1ULL : (BIT(width) - 1))
|
| /xnu-12377.1.9/osfmk/vm/ |
| H A D | vm_resident.c | 167 BIT(VM_PAGE_ON_INACTIVE_INTERNAL_Q) | 168 BIT(VM_PAGE_ON_INACTIVE_EXTERNAL_Q) | 169 BIT(VM_PAGE_ON_INACTIVE_CLEANED_Q); 174 BIT(VM_PAGE_ON_SECLUDED_Q) | 176 BIT(VM_PAGE_ON_ACTIVE_Q); 180 BIT(VM_PAGE_ON_THROTTLED_Q); 184 BIT(VM_PAGE_ON_SPECULATIVE_Q);
|
| /xnu-12377.1.9/bsd/netinet/ |
| H A D | tcp_log.c | 84 #define TCP_LOG_THFLAGS_IF_FAMILY_DEFAULT (0xfffffffe & ~BIT(IFNET_FAMILY_LOOPBACK))
|