[libc-commits] [libc] [libc][math][c23] Add {frexp, ilogb, llogb, logb, modf}f16 C23 math functions (PR #94758)
via libc-commits
libc-commits at lists.llvm.org
Fri Jun 7 21:14:20 PDT 2024
================
@@ -102,7 +103,7 @@ intlogb(U x) {
return IntLogbConstants<T>::T_MAX;
}
- DyadicFloat<FPBits<U>::STORAGE_LEN> normal(bits.get_val());
+ DyadicFloat<cpp::max(FPBits<U>::STORAGE_LEN, 32)> normal(bits.get_val());
----------------
lntue wrote:
Maybe update `DyadicFloat` to accept `Bits` to also accept 16?
https://github.com/llvm/llvm-project/pull/94758
More information about the libc-commits
mailing list