From: Reid Spencer Date: Tue, 20 Feb 2007 08:43:42 +0000 (+0000) Subject: Add an internal convenience method for division that urem and udiv use. X-Git-Tag: android-x86-6.0-r1~1003^2~37083 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e91f7847e6126b266fb01de1f05da5655c359da8;p=android-x86%2Fexternal-llvm.git Add an internal convenience method for division that urem and udiv use. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34448 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index e38b7bc996c..f5e6df61830 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -128,6 +128,11 @@ public: 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);