mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-10 08:40:41 +00:00
rearrange some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57384 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
71f95b8531
commit
119c30b955
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user