stage2+stage1: remove type parameter from bit builtins
Closes #12529 Closes #12511 Closes #6835
This commit is contained in:
@@ -140,7 +140,7 @@ const FutexImpl = struct {
|
||||
// - they both seem to mark the cache-line as modified regardless: https://stackoverflow.com/a/63350048
|
||||
// - `lock bts` is smaller instruction-wise which makes it better for inlining
|
||||
if (comptime builtin.target.cpu.arch.isX86()) {
|
||||
const locked_bit = @ctz(u32, @as(u32, locked));
|
||||
const locked_bit = @ctz(@as(u32, locked));
|
||||
return self.state.bitSet(locked_bit, .Acquire) == 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user