diff --git a/avx_mathfun.h b/avx_mathfun.h index 4c6c181..037d618 100644 --- a/avx_mathfun.h +++ b/avx_mathfun.h @@ -32,8 +32,13 @@ #include /* yes I know, the top of this file is quite ugly */ +#ifdef _MSC_VER /* visual c++ */ +# define ALIGN32_BEG __declspec(align(32)) +# define ALIGN32_END +#else /* gcc/clang/icc */ # define ALIGN32_BEG # define ALIGN32_END __attribute__((aligned(32))) +#endif /* __m128 is ugly to write */ typedef __m256 v8sf; // vector of 8 float (avx)