Skip to content

Commit ea58888

Browse files
author
git apple-llvm automerger
committed
Merge commit 'c6a93fe80b3c' from llvm.org/main into next
2 parents baa384c + c6a93fe commit ea58888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/GPU/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace LIBC_NAMESPACE {
2323
namespace gpu {
2424
/// Get the first active thread inside the lane.
2525
LIBC_INLINE uint64_t get_first_lane_id(uint64_t lane_mask) {
26-
return __builtin_ffsl(lane_mask) - 1;
26+
return __builtin_ffsll(lane_mask) - 1;
2727
}
2828

2929
/// Conditional that is only true for a single thread in a lane.

0 commit comments

Comments
 (0)