Arm64Emitter: Remove unnecessary V8_UINT64_C preprocessor macro

UINT64_C is provided via <cstdint>, so we can just use that instead.
This commit is contained in:
Lioncash 2018-03-23 10:13:50 -04:00
parent 03671a5534
commit b11c237c43
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7
1 changed files with 2 additions and 4 deletions

View File

@ -38,8 +38,6 @@ static uint64_t LargestPowerOf2Divisor(uint64_t value)
return value & -(int64_t)value;
}
#define V8_UINT64_C(x) ((uint64_t)(x))
bool IsImmArithmetic(uint64_t input, u32* val, bool* shift)
{
if (input < 4096)
@ -151,7 +149,7 @@ bool IsImmLogical(uint64_t value, unsigned int width, unsigned int* n, unsigned
clz_a = CountLeadingZeros(a, kXRegSizeInBits);
int clz_c = CountLeadingZeros(c, kXRegSizeInBits);
d = clz_a - clz_c;
mask = ((V8_UINT64_C(1) << d) - 1);
mask = ((UINT64_C(1) << d) - 1);
out_n = 0;
}
else
@ -177,7 +175,7 @@ bool IsImmLogical(uint64_t value, unsigned int width, unsigned int* n, unsigned
// the general case above, and set the N bit in the output.
clz_a = CountLeadingZeros(a, kXRegSizeInBits);
d = 64;
mask = ~V8_UINT64_C(0);
mask = ~UINT64_C(0);
out_n = 1;
}
}