Skip to content

Commit

Permalink
MSVC: compiler refuses over-alignment > 32
Browse files Browse the repository at this point in the history
Refs: gh-119
Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Sep 20, 2016
1 parent 94fa07d commit 1de23e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common/utility.h
Expand Up @@ -55,9 +55,11 @@ struct NextPowerOfTwo<x, false>
*/
template <size_t A>
struct BoundedAlignment : public std::integral_constant<size_t,
#ifdef Vc_GCC
#if defined Vc_MSVC || defined Vc_GCC
((A - 1) &
#ifdef __AVX__
#ifdef Vc_MSVC
31
#elif defined __AVX__
255
#else
127
Expand Down

0 comments on commit 1de23e9

Please sign in to comment.