aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-10-11 22:07:19 +0000
committerChris Lattner <sabre@nondot.org>2008-10-11 22:07:19 +0000
commit119c30b95545c223b7111a4a03100470387f76fc (patch)
treec74b24a749fbff2d8f29e021fb0eedef82569f18 /lib
parent71f95b8531183d4a2f7c84d66d5aec17bc41b316 (diff)
downloadexternal_llvm-119c30b95545c223b7111a4a03100470387f76fc.zip
external_llvm-119c30b95545c223b7111a4a03100470387f76fc.tar.gz
external_llvm-119c30b95545c223b7111a4a03100470387f76fc.tar.bz2
rearrange some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/APInt.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp
index 8f506bc..462d3ed 100644
--- a/lib/Support/APInt.cpp
+++ b/lib/Support/APInt.cpp
@@ -50,6 +50,12 @@ void APInt::initSlowCase(uint32_t numBits, uint64_t val, bool isSigned) {
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 @@ APInt::APInt(uint32_t numbits, const char StrStart[], uint32_t slen,
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)