| ... | @@ -1156,10 +1156,10 @@ pub fn indexOfSentinel(comptime T: type, comptime sentinel: T, p: [*:sentinel]co | ... | @@ -1156,10 +1156,10 @@ pub fn indexOfSentinel(comptime T: type, comptime sentinel: T, p: [*:sentinel]co |
| 1156 | } | 1156 | } |
| 1157 | } | 1157 | } |
| 1158 | | 1158 | |
| 1159 | assert(std.mem.isAligned(@intFromPtr(&p[i]), block_size)); | 1159 | std.debug.assertAligned(&p[i], .fromByteUnits(block_size)); |
| 1160 | while (true) { | 1160 | while (true) { |
| 1161 | const block: *const Block = @ptrCast(@alignCast(p[i..][0..block_len])); | 1161 | const block: Block = p[i..][0..block_len].*; |
| 1162 | const matches = block.* == mask; | 1162 | const matches = block == mask; |
| 1163 | if (@reduce(.Or, matches)) { | 1163 | if (@reduce(.Or, matches)) { |
| 1164 | return i + std.simd.firstTrue(matches).?; | 1164 | return i + std.simd.firstTrue(matches).?; |
| 1165 | } | 1165 | } |