| ... | ... | @@ -7,11 +7,11 @@ fn ctz(x: anytype) usize { |
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | test "fixed" { |
| 10 | | try testClz(); |
| 11 | | comptime try testClz(); |
| 10 | try testCtz(); |
| 11 | comptime try testCtz(); |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | | fn testClz() !void { |
| 14 | fn testCtz() !void { |
| 15 | 15 | try expect(ctz(@as(u128, 0x40000000000000000000000000000000)) == 126); |
| 16 | 16 | try expect(math.rotl(u128, @as(u128, 0x40000000000000000000000000000000), @as(u8, 1)) == @as(u128, 0x80000000000000000000000000000000)); |
| 17 | 17 | try expect(ctz(@as(u128, 0x80000000000000000000000000000000)) == 127); |