| ... | @@ -1119,6 +1119,7 @@ pub fn indexOfSentinel(comptime T: type, comptime sentinel: T, p: [*:sentinel]co | ... | @@ -1119,6 +1119,7 @@ pub fn indexOfSentinel(comptime T: type, comptime sentinel: T, p: [*:sentinel]co |
| 1119 | | 1119 | |
| 1120 | i += @divExact(std.mem.alignForward(usize, start_addr, block_size) - start_addr, @sizeOf(T)); | 1120 | i += @divExact(std.mem.alignForward(usize, start_addr, block_size) - start_addr, @sizeOf(T)); |
| 1121 | } else { | 1121 | } else { |
| | 1122 | @branchHint(.unlikely); |
| 1122 | // Would read over a page boundary. Per-byte at a time until aligned or found. | 1123 | // Would read over a page boundary. Per-byte at a time until aligned or found. |
| 1123 | // 0.39% chance this branch is taken for 4K pages at 16b block length. | 1124 | // 0.39% chance this branch is taken for 4K pages at 16b block length. |
| 1124 | // | 1125 | // |