[PATCH] D140611: [APInt] Move a comment from urem to srem where it belongs.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 23 10:47:48 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG08d1d74289f4: [APInt] Move a comment from urem to srem where it belongs. (authored by craig.topper).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140611/new/
https://reviews.llvm.org/D140611
Files:
llvm/include/llvm/ADT/APInt.h
Index: llvm/include/llvm/ADT/APInt.h
===================================================================
--- llvm/include/llvm/ADT/APInt.h
+++ llvm/include/llvm/ADT/APInt.h
@@ -955,9 +955,7 @@
///
/// Perform an unsigned remainder operation on this APInt with RHS being the
/// divisor. Both this and RHS are treated as unsigned quantities for purposes
- /// of this operation. Note that this is a true remainder operation and not a
- /// modulo operation because the sign follows the sign of the dividend which
- /// is *this.
+ /// of this operation.
///
/// \returns a new APInt value containing the remainder result
APInt urem(const APInt &RHS) const;
@@ -966,6 +964,9 @@
/// Function for signed remainder operation.
///
/// Signed remainder operation on APInt.
+ ///
+ /// Note that this is a true remainder operation and not a modulo operation
+ /// because the sign follows the sign of the dividend which is *this.
APInt srem(const APInt &RHS) const;
int64_t srem(int64_t RHS) const;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140611.485145.patch
Type: text/x-patch
Size: 1033 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221223/e0351b15/attachment.bin>
More information about the llvm-commits
mailing list