Skip to content

Commit fa056f4

Browse files
committed
comments
1 parent ed74ca7 commit fa056f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/iso_alloc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,8 @@ INTERNAL_HIDDEN void fill_free_bit_slots(iso_alloc_zone_t *zone) {
603603
}
604604
}
605605
} else {
606-
/* Use ctzll to skip directly to each free slot instead of
607-
* iterating all 32 even-bit positions (Agner Fog §14.3). */
606+
/* Use ctzll to skip directly to each free slot instead
607+
* of iterating all 32 even-bit positions */
608608
uint64_t free_mask = ~(uint64_t)bts & USED_BIT_VECTOR;
609609

610610
while(free_mask) {
@@ -737,7 +737,7 @@ INTERNAL_HIDDEN bit_slot_t iso_scan_zone_free_slot_slow(iso_alloc_zone_t *zone)
737737
/* Use ctzll to find the first free slot in O(1) instead of
738738
* scanning bit-by-bit. USED_BIT_VECTOR selects even-position
739739
* bits (one per chunk); inverting gives 1s where chunks are
740-
* free (Agner Fog §14.3 - use bitwise ops on multiple values). */
740+
* free (use bitwise ops on multiple values) */
741741
uint64_t free_mask0 = ~(uint64_t)vgetq_lane_s64(im, 0) & USED_BIT_VECTOR;
742742
if(free_mask0) {
743743
return ((i << BITS_PER_QWORD_SHIFT) + __builtin_ctzll(free_mask0));

0 commit comments

Comments
 (0)