MSVC prefers the attrib at the beginning

This commit is contained in:
Matthew Barr 2016-09-07 11:50:00 +10:00
parent 2e5a2ab2a9
commit 7849b9d611
2 changed files with 4 additions and 4 deletions

View File

@ -864,7 +864,7 @@ m128 getData128(const struct core_info *ci, s64a offset, u16 *valid_data_mask) {
*valid_data_mask = 0xffff; *valid_data_mask = 0xffff;
return loadu128(ci->buf + offset); return loadu128(ci->buf + offset);
} }
u8 data[sizeof(m128)] ALIGN_DIRECTIVE; ALIGN_DIRECTIVE u8 data[sizeof(m128)];
*valid_data_mask = (u16)getBufferDataComplex(ci, offset, data, 16); *valid_data_mask = (u16)getBufferDataComplex(ci, offset, data, 16);
return *(m128 *)data; return *(m128 *)data;
} }
@ -875,7 +875,7 @@ m256 getData256(const struct core_info *ci, s64a offset, u32 *valid_data_mask) {
*valid_data_mask = ~0u; *valid_data_mask = ~0u;
return loadu256(ci->buf + offset); return loadu256(ci->buf + offset);
} }
u8 data[sizeof(m256)] ALIGN_DIRECTIVE; ALIGN_DIRECTIVE u8 data[sizeof(m256)];
*valid_data_mask = getBufferDataComplex(ci, offset, data, 32); *valid_data_mask = getBufferDataComplex(ci, offset, data, 32);
return *(m256 *)data; return *(m256 *)data;
} }

View File

@ -32,7 +32,7 @@
#include "simd_utils.h" #include "simd_utils.h"
const char vbs_mask_data[] ALIGN_CL_DIRECTIVE = { ALIGN_CL_DIRECTIVE const char vbs_mask_data[] = {
0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0,
0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0,
@ -48,7 +48,7 @@ const char vbs_mask_data[] ALIGN_CL_DIRECTIVE = {
#define ZEROES_32 ZEROES_8, ZEROES_8, ZEROES_8, ZEROES_8 #define ZEROES_32 ZEROES_8, ZEROES_8, ZEROES_8, ZEROES_8
/** \brief LUT for the mask1bit functions. */ /** \brief LUT for the mask1bit functions. */
const u8 simd_onebit_masks[] ALIGN_CL_DIRECTIVE = { ALIGN_CL_DIRECTIVE const u8 simd_onebit_masks[] = {
ZEROES_31, 0x01, ZEROES_32, ZEROES_31, 0x01, ZEROES_32,
ZEROES_31, 0x02, ZEROES_32, ZEROES_31, 0x02, ZEROES_32,
ZEROES_31, 0x04, ZEROES_32, ZEROES_31, 0x04, ZEROES_32,