diff options
| author | degasus <wickmarkus@web.de> | 2016-09-13 21:45:23 +0200 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2016-09-26 22:17:25 +0200 |
| commit | 7c9bba2213ffd2bcbc9d298c7f8699ac32c8a423 (patch) | |
| tree | dd7d28337b4d790cd68c8ad2866441e9b7e6fcf8 /Source/Core/Common/Arm64Emitter.cpp | |
| parent | 11bfc7fe77066174011df40ff81fde52e9cbe97a (diff) | |
Arm64Emitter: Fix std::array initializer.
Diffstat (limited to 'Source/Core/Common/Arm64Emitter.cpp')
| -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; |
