Skip to content

Commit

Permalink
just try
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev committed Jan 30, 2025
1 parent 42dd180 commit e6772d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Conversion/TritonGPUToLLVM/Utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
static int __builtin_clz(unsigned x) {
unsigned long r;
_BitScanReverse(&r, x);
return static_cast<int>(r);
return static_cast<int>(r ^ 31);
}

static int __builtin_ctz(unsigned x) {
Expand Down

0 comments on commit e6772d8

Please sign in to comment.