1
0
Fork 0

Codechange: Replace ALIGN macro with C++11 alignas specifier.

pull/14031/head
frosch 2025-04-17 12:57:55 +02:00 committed by frosch
parent f82e172610
commit d97936e77a
1 changed files with 1 additions and 9 deletions

View File

@ -31,15 +31,7 @@
#define MARGIN_NORMAL_THRESHOLD (zoom == ZOOM_LVL_OUT_8X ? 8 : 4) ///< Minimum width to use margins with BlitterMode::Normal.
#define MARGIN_REMAP_THRESHOLD 4 ///< Minimum width to use margins with BlitterMode::ColourRemap.
#undef ALIGN
#ifdef _MSC_VER
#define ALIGN(n) __declspec(align(n))
#else
#define ALIGN(n) __attribute__ ((aligned (n)))
#endif
typedef union ALIGN(16) um128i {
typedef union alignas(16) um128i {
__m128i m128i;
uint8_t m128i_u8[16];
uint16_t m128i_u16[8];