[libcxx-commits] [libcxx] [Support] Add KnownBits::computeForSubBorrow (PR #67788)

Simon Pilgrim via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 10 05:33:41 PDT 2023


================
@@ -332,6 +332,10 @@ struct KnownBits {
   static KnownBits computeForAddSub(bool Add, bool NSW, const KnownBits &LHS,
                                     KnownBits RHS);
 
+  /// Compute known bits results from subtracting RHS from LHS.
----------------
RKSimon wrote:

Add to comment "and a 1-bit borrow"

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


More information about the libcxx-commits mailing list