diff options
| author | flacs <tilkax@gmail.com> | 2015-09-11 17:00:13 +0000 |
|---|---|---|
| committer | flacs <tilkax@gmail.com> | 2015-09-11 17:00:13 +0000 |
| commit | c5685ba53a6866cce5c32bf0c3bbbd7aa52dbf6c (patch) | |
| tree | 7886e61f016f7835a7aadf2bb670c82787b94064 /Source/Core/VideoCommon/TextureDecoder_x64.cpp | |
| parent | d7acf065059ae84eda86e3feb27e0d5c2283be0b (diff) | |
| parent | 8ce04f9a65612b7553015428e617ba7c53913175 (diff) | |
Merge pull request #2972 from lioncash/align
General: Replace GC_ALIGN macros with alignas
Diffstat (limited to 'Source/Core/VideoCommon/TextureDecoder_x64.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureDecoder_x64.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/TextureDecoder_x64.cpp b/Source/Core/VideoCommon/TextureDecoder_x64.cpp index f68d35f842..3064b0f3c1 100644 --- a/Source/Core/VideoCommon/TextureDecoder_x64.cpp +++ b/Source/Core/VideoCommon/TextureDecoder_x64.cpp @@ -1065,8 +1065,8 @@ void _TexDecoder_DecodeImpl(u32 * dst, const u8 * src, int width, int height, in const __m128i dxt = _mm_loadu_si128((__m128i *)(src + sizeof(struct DXTBlock) * 2 * xStep)); // Copy the 2-bit indices from each DXT block: - GC_ALIGNED16( u32 dxttmp[4] ); - _mm_store_si128((__m128i *)dxttmp, dxt); + alignas(16) u32 dxttmp[4]; + _mm_store_si128((__m128i*)dxttmp, dxt); u32 dxt0sel = dxttmp[1]; u32 dxt1sel = dxttmp[3]; @@ -1204,10 +1204,10 @@ void _TexDecoder_DecodeImpl(u32 * dst, const u8 * src, int width, int height, in u32 *dst32 = ( dst + (y + z*4) * width + x ); // Copy the colors here: - GC_ALIGNED16( u32 colors0[4] ); - GC_ALIGNED16( u32 colors1[4] ); - _mm_store_si128((__m128i *)colors0, mmcolors0); - _mm_store_si128((__m128i *)colors1, mmcolors1); + alignas(16) u32 colors0[4]; + alignas(16) u32 colors1[4]; + _mm_store_si128((__m128i*)colors0, mmcolors0); + _mm_store_si128((__m128i*)colors1, mmcolors1); // Row 0: dst32[(width * 0) + 0] = colors0[(dxt0sel >> ((0*8)+6)) & 3]; |
