[libc-commits] [libc] [libc][NFC] Introduce a Sign type for FPBits	(PR #78500)
    Clement Courbet via libc-commits 
    libc-commits at lists.llvm.org
       
    Thu Jan 18 02:12:40 PST 2024
    
    
  
================
@@ -31,6 +31,32 @@ enum class FPType {
   X86_Binary80,
 };
 
+// A type to interact with floating point type signs.
+// This may be moved outside of 'fputil' if useful.
+struct Sign {
+  LIBC_INLINE constexpr explicit Sign(bool is_negative)
----------------
legrosbuffle wrote:
We probably don;t need this in the long term, we shouls always be using `POS` or `NEG`. I think this should at least be a factory function.
https://github.com/llvm/llvm-project/pull/78500
    
    
More information about the libc-commits
mailing list