[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:52 PST 2024
    
    
  
================
@@ -266,6 +266,16 @@ template <FPType fp_type> struct FPStorage : public FPLayout<fp_type> {
     LIBC_INLINE constexpr operator Exponent() const {
       return Exponent(UP::value - EXP_BIAS);
     }
+
+    LIBC_INLINE constexpr BiasedExponent &operator++() {
+      ++UP::value;
+      return *this;
+    }
+
+    LIBC_INLINE constexpr BiasedExponent &operator--() {
+      --UP::value;
----------------
legrosbuffle wrote:
ditto
https://github.com/llvm/llvm-project/pull/80654
    
    
More information about the libc-commits
mailing list