[libc-commits] [libc] [libc][NFC] Make FPRep more testable (PR #80453)
Clement Courbet via libc-commits
libc-commits at lists.llvm.org
Sun Feb 4 22:55:03 PST 2024
================
@@ -220,10 +242,11 @@ template <FPType fp_type> struct FPStorage : public FPLayout<fp_type> {
struct Exponent : public TypedInt<int32_t> {
using UP = TypedInt<int32_t>;
using UP::UP;
- LIBC_INLINE
- static constexpr auto MIN() { return Exponent(1 - EXP_BIAS); }
+ LIBC_INLINE static constexpr auto SUB() { return Exponent(-EXP_BIAS); }
----------------
legrosbuffle wrote:
`SUB` is not immediately obvious. Maybe use `SUBNORMAL` ?
https://github.com/llvm/llvm-project/pull/80453
More information about the libc-commits
mailing list