[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:39 PST 2024


================
@@ -43,13 +43,13 @@ LIBC_INLINE T remquo(T x, T y, int &q) {
     return x;
   }
 
-  bool result_sign = (xbits.get_sign() == ybits.get_sign() ? false : true);
+  bool result_sign = (xbits.is_neg() == ybits.is_neg() ? false : true);
----------------
legrosbuffle wrote:

This would be clearer with `xbits.sign() == ybits.sign()`.

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


More information about the libc-commits mailing list