treap: zig fmt

This commit is contained in:
kprotty 2022-04-15 17:01:01 -05:00
parent 4d0303b992
commit 33952dad12

View File

@ -30,9 +30,9 @@ pub fn Treap(comptime Key: type, comptime compareFn: anytype) type {
// Since we're using usize, decide the shifts by the integer's bit width. // Since we're using usize, decide the shifts by the integer's bit width.
const shifts = switch (@bitSizeOf(usize)) { const shifts = switch (@bitSizeOf(usize)) {
64 => .{13, 7, 17}, 64 => .{ 13, 7, 17 },
32 => .{13, 17, 5}, 32 => .{ 13, 17, 5 },
16 => .{7, 9, 8}, 16 => .{ 7, 9, 8 },
else => @compileError("platform not supported"), else => @compileError("platform not supported"),
}; };