[llvm-commits] CVS: llvm/include/llvm/ADT/APInt.h
Reid Spencer
reid at x10sys.com
Tue Feb 20 00:43:59 PST 2007
Changes in directory llvm/include/llvm/ADT:
APInt.h updated: 1.14 -> 1.15
---
Log message:
Add an internal convenience method for division that urem and udiv use.
---
Diffs of the changes: (+5 -0)
APInt.h | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/include/llvm/ADT/APInt.h
diff -u llvm/include/llvm/ADT/APInt.h:1.14 llvm/include/llvm/ADT/APInt.h:1.15
--- llvm/include/llvm/ADT/APInt.h:1.14 Sun Feb 18 21:18:22 2007
+++ llvm/include/llvm/ADT/APInt.h Tue Feb 20 02:43:42 2007
@@ -128,6 +128,11 @@
void fromString(uint32_t numBits, const char *StrStart, uint32_t slen,
uint8_t radix);
+ /// @brief An internal division function for dividing APInts.
+ static void divide(const APInt LHS, uint32_t lhsWords,
+ const APInt &RHS, uint32_t rhsWords,
+ APInt *Quotient, APInt *Remainder);
+
public:
/// @brief Create a new APInt of numBits bit-width, and initialized as val.
APInt(uint32_t numBits, uint64_t val);
More information about the llvm-commits
mailing list