Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Redo 'Fixes GCC 4.9 compilation. It now supplies its own _mm_shuffle_…
…epi8 intrinsic.' This time with support for Windows.
  • Loading branch information
Sonicadvance1 committed Nov 12, 2013
1 parent 0f94652 commit 7c1ac44
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/Core/Common/Src/CommonFuncs.h
Expand Up @@ -31,7 +31,12 @@ struct ArraySizeImpl : public std::extent<T>
#define b32(x) (b16(x) | (b16(x) >>16) )
#define ROUND_UP_POW2(x) (b32(x - 1) + 1)

#if defined __GNUC__ && !defined __SSSE3__ && !defined _M_GENERIC
#ifndef __GNUC_PREREQ
#define __GNUC_PREREQ(a, b) 0
#endif

#if (defined __GNUC__ && !__GNUC_PREREQ(4,9)) \
&& !defined __SSSE3__ && !defined _M_GENERIC
#include <emmintrin.h>
static __inline __m128i __attribute__((__always_inline__))
_mm_shuffle_epi8(__m128i a, __m128i mask)
Expand Down

0 comments on commit 7c1ac44

Please sign in to comment.