diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2016-09-27 18:45:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-27 18:45:14 +0200 |
| commit | 3696c2b022527ebf96d6e7830d336ee6d95f69cd (patch) | |
| tree | 1418920059437da2228a601e75fcad02e120ea59 /Source/Core/Common | |
| parent | 0cb09eef426ea124b68406e89531042d75a886d4 (diff) | |
| parent | 732e0ff03a46a0b58acb683f94e8b9904aca3212 (diff) | |
Merge pull request #4210 from degasus/arm
JitArm64: Small cleanup + speedups.
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Arm64Emitter.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/Common/Arm64Emitter.cpp b/Source/Core/Common/Arm64Emitter.cpp index d49c799744..b2f546d448 100644 --- a/Source/Core/Common/Arm64Emitter.cpp +++ b/Source/Core/Common/Arm64Emitter.cpp @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include <algorithm> +#include <array> #include <cstring> #include <vector> @@ -200,10 +201,10 @@ bool IsImmLogical(uint64_t value, unsigned int width, unsigned int* n, unsigned // To repeat a value every d bits, we multiply it by a number of the form // (1 + 2^d + 2^(2d) + ...), i.e. 0x0001000100010001 or similar. These can // be derived using a table lookup on CLZ(d). - static const std::array<uint64_t, 6> multipliers = { - 0x0000000000000001UL, 0x0000000100000001UL, 0x0001000100010001UL, - 0x0101010101010101UL, 0x1111111111111111UL, 0x5555555555555555UL, - }; + static const std::array<uint64_t, 6> multipliers = {{ + 0x0000000000000001UL, 0x0000000100000001UL, 0x0001000100010001UL, 0x0101010101010101UL, + 0x1111111111111111UL, 0x5555555555555555UL, + }}; int multiplier_idx = CountLeadingZeros(d, kXRegSizeInBits) - 57; |
