Skip to content

Commit

Permalink
Revert "[libc][rpc] Land helpers from D148943"
Browse files Browse the repository at this point in the history
This reverts commit 09ceb47.
  • Loading branch information
JonChesterfield committed May 4, 2023
1 parent 1b05e74 commit 5cba771
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions libc/src/__support/RPC/rpc_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@ LIBC_INLINE void sleep_briefly() {
#endif
}

/// Get the first active thread inside the lane.
LIBC_INLINE uint64_t get_first_lane_id(uint64_t lane_mask) {
return __builtin_ffsl(lane_mask) - 1;
}

/// Conditional that is only true for a single thread in a lane.
LIBC_INLINE bool is_first_lane(uint64_t lane_mask) {
return gpu::get_lane_id() == get_first_lane_id(lane_mask);
}

} // namespace rpc
} // namespace __llvm_libc

Expand Down

0 comments on commit 5cba771

Please sign in to comment.