Skip to content

Commit

Permalink
chore(base): add function comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ashjeong committed Oct 23, 2024
1 parent 7bf9c56 commit dd5c51a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tachyon/base/bits.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ constexpr T LeftmostBit() {

TACHYON_EXPORT uint64_t BitRev(uint64_t n);

// Reverses the |bit_len| least significant bits of |x|.
inline size_t ReverseBitsLen(size_t x, size_t bit_len) {
return BitRev(x) >> (sizeof(size_t) * 8 - bit_len);
}
Expand Down

0 comments on commit dd5c51a

Please sign in to comment.