OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f543f74
)
Add an internal convenience method for division that urem and udiv use.
author
Reid Spencer
<rspencer@reidspencer.com>
Tue, 20 Feb 2007 08:43:42 +0000
(08:43 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Tue, 20 Feb 2007 08:43:42 +0000
(08:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34448
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/APInt.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/APInt.h
b/include/llvm/ADT/APInt.h
index
e38b7bc
..
f5e6df6
100644
(file)
--- 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);