From 2deb71eec900051390e486198ae2ba05d3a10434 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Wed, 6 Mar 2013 17:23:17 -0500 Subject: [PATCH] Generalize the ALIGN macro --- BPTCEncoder/src/BC7Compressor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BPTCEncoder/src/BC7Compressor.cpp b/BPTCEncoder/src/BC7Compressor.cpp index b03c875..72f3391 100755 --- a/BPTCEncoder/src/BC7Compressor.cpp +++ b/BPTCEncoder/src/BC7Compressor.cpp @@ -80,10 +80,11 @@ #include #ifdef _MSC_VER -#define ALIGN_SSE __declspec( align(16) ) +#define ALIGN(x) __declspec( align(x) ) #else -#define ALIGN_SSE __attribute__((aligned(16))) +#define ALIGN(x) __attribute__((aligned(x))) #endif +#define ALIGN_SSE ALIGN(16) // #define USE_PCA_FOR_SHAPE_ESTIMATION