stage2+stage1: remove type parameter from bit builtins
Closes #12529 Closes #12511 Closes #6835
This commit is contained in:
@@ -69,7 +69,7 @@ pub fn PriorityDequeue(comptime T: type, comptime Context: type, comptime compar
|
||||
// The first element is on a min layer;
|
||||
// next two are on a max layer;
|
||||
// next four are on a min layer, and so on.
|
||||
const leading_zeros = @clz(usize, index + 1);
|
||||
const leading_zeros = @clz(index + 1);
|
||||
const highest_set_bit = @bitSizeOf(usize) - 1 - leading_zeros;
|
||||
return (highest_set_bit & 1) == 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user