[libc-commits] [libc] [libc][stdfix] Implement `countlsfx` functions in libc. (PR #126597)
Krishna Pandey via libc-commits
libc-commits at lists.llvm.org
Tue Feb 11 14:16:28 PST 2025
================
@@ -185,9 +185,10 @@ countls(T f) {
using BitType = typename FXRep::StorageType;
using FXBits = FXBits<T>;
- if constexpr (FXRep::SIGN_LEN > 0)
+ if constexpr (FXRep::SIGN_LEN > 0) {
if (f < 0)
f = bit_not(f);
+ }
----------------
krishna2803 wrote:
sorry if im missing something, but the doc says:
```cpp
// Use braces on the outer `if` to avoid a potential dangling `else`
// situation.
if (isa<VarDecl>(D)) {
if (shouldProcessAttr(A))
handleAttr(A);
}
```
https://github.com/llvm/llvm-project/pull/126597
More information about the libc-commits
mailing list