Skip to content

Commit 475945d

Browse files
committed
chore: change count leading zeros to count leading sign bits
1 parent 632a6d8 commit 475945d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/fixed_point/fx_bits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ template <typename T> LIBC_INLINE constexpr T round(T x, int n) {
176176
return bit_and((x + round_bit), rounding_mask);
177177
}
178178

179-
// count leading zeros
179+
// count leading sign bits
180180
template <typename T>
181181
LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_fixed_point_v<T>, int>
182182
countls(T f) {

0 commit comments

Comments
 (0)