[llvm-commits] [llvm] r57384 - /llvm/trunk/lib/Support/APInt.cpp
Chris Lattner
sabre at nondot.org
Sat Oct 11 15:07:19 PDT 2008
Author: lattner
Date: Sat Oct 11 17:07:19 2008
New Revision: 57384
URL: http://llvm.org/viewvc/llvm-project?rev=57384&view=rev
Log:
rearrange some code.
Modified:
llvm/trunk/lib/Support/APInt.cpp
Modified: llvm/trunk/lib/Support/APInt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APInt.cpp?rev=57384&r1=57383&r2=57384&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APInt.cpp (original)
+++ llvm/trunk/lib/Support/APInt.cpp Sat Oct 11 17:07:19 2008
@@ -50,6 +50,12 @@
pVal[i] = -1ULL;
}
+void APInt::initSlowCase(const APInt& that) {
+ pVal = getMemory(getNumWords());
+ memcpy(pVal, that.pVal, getNumWords() * APINT_WORD_SIZE);
+}
+
+
APInt::APInt(uint32_t numBits, uint32_t numWords, const uint64_t bigVal[])
: BitWidth(numBits), VAL(0) {
assert(BitWidth && "bitwidth too small");
@@ -75,12 +81,6 @@
fromString(numbits, StrStart, slen, radix);
}
-void APInt::initSlowCase(const APInt& that)
-{
- pVal = getMemory(getNumWords());
- memcpy(pVal, that.pVal, getNumWords() * APINT_WORD_SIZE);
-}
-
APInt& APInt::AssignSlowCase(const APInt& RHS) {
// Don't do anything for X = X
if (this == &RHS)
More information about the llvm-commits
mailing list