[libc-commits] [libc] [libc] Add `next_toward_inf` fo `FPBits` (PR #80654)

Clement Courbet via libc-commits libc-commits at lists.llvm.org
Mon Feb 5 01:53:53 PST 2024


================
@@ -435,6 +445,13 @@ struct FPRepSem : public FPStorage<fp_type> {
   LIBC_INLINE constexpr bool is_normal() const {
     return is_finite() && !is_subnormal();
   }
+
+  // Modifiers
+  LIBC_INLINE constexpr void next_toward_inf() {
----------------
legrosbuffle wrote:

How is this going to be used ? It would maybe make sense to return a new value rather than modify ?

https://github.com/llvm/llvm-project/pull/80654


More information about the libc-commits mailing list