diff options
Diffstat (limited to 'compiler/utils/x86_64')
-rw-r--r-- | compiler/utils/x86_64/assembler_x86_64.cc | 8 | ||||
-rw-r--r-- | compiler/utils/x86_64/assembler_x86_64.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/compiler/utils/x86_64/assembler_x86_64.cc b/compiler/utils/x86_64/assembler_x86_64.cc index 705b639..75823e3 100644 --- a/compiler/utils/x86_64/assembler_x86_64.cc +++ b/compiler/utils/x86_64/assembler_x86_64.cc @@ -1490,7 +1490,7 @@ void X86_64Assembler::LoadDoubleConstant(XmmRegister dst, double value) { pushq(Immediate(High32Bits(constant))); pushq(Immediate(Low32Bits(constant))); movsd(dst, Address(CpuRegister(RSP), 0)); - addq(CpuRegister(RSP), Immediate(2 * kWordSize)); + addq(CpuRegister(RSP), Immediate(2 * sizeof(intptr_t))); } @@ -1502,7 +1502,7 @@ void X86_64Assembler::FloatNegate(XmmRegister f) { uint32_t d; } float_negate_constant __attribute__((aligned(16))) = { 0x80000000, 0x00000000, 0x80000000, 0x00000000 }; - xorps(f, Address::Absolute(reinterpret_cast<uword>(&float_negate_constant))); + xorps(f, Address::Absolute(reinterpret_cast<uintptr_t>(&float_negate_constant))); } @@ -1512,7 +1512,7 @@ void X86_64Assembler::DoubleNegate(XmmRegister d) { uint64_t b; } double_negate_constant __attribute__((aligned(16))) = {0x8000000000000000LL, 0x8000000000000000LL}; - xorpd(d, Address::Absolute(reinterpret_cast<uword>(&double_negate_constant))); + xorpd(d, Address::Absolute(reinterpret_cast<uintptr_t>(&double_negate_constant))); } @@ -1522,7 +1522,7 @@ void X86_64Assembler::DoubleAbs(XmmRegister reg) { uint64_t b; } double_abs_constant __attribute__((aligned(16))) = {0x7FFFFFFFFFFFFFFFLL, 0x7FFFFFFFFFFFFFFFLL}; - andpd(reg, Address::Absolute(reinterpret_cast<uword>(&double_abs_constant))); + andpd(reg, Address::Absolute(reinterpret_cast<uintptr_t>(&double_abs_constant))); } diff --git a/compiler/utils/x86_64/assembler_x86_64.h b/compiler/utils/x86_64/assembler_x86_64.h index 268f72b..1d9eba4 100644 --- a/compiler/utils/x86_64/assembler_x86_64.h +++ b/compiler/utils/x86_64/assembler_x86_64.h @@ -227,7 +227,7 @@ class Address : public Operand { } // If no_rip is true then the Absolute address isn't RIP relative. - static Address Absolute(uword addr, bool no_rip = false) { + static Address Absolute(uintptr_t addr, bool no_rip = false) { Address result; if (no_rip) { result.SetModRM(0, CpuRegister(RSP)); |