Lines 1-22
Link Here
|
1 |
--- src/wavpack_local.h.orig 2009-12-01 04:24:50 UTC |
|
|
2 |
+++ src/wavpack_local.h |
3 |
@@ -11,6 +11,10 @@ |
4 |
#ifndef WAVPACK_LOCAL_H |
5 |
#define WAVPACK_LOCAL_H |
6 |
|
7 |
+#ifndef __has_builtin |
8 |
+#define __has_builtin(x) 0 |
9 |
+#endif |
10 |
+ |
11 |
#if defined(WIN32) |
12 |
#define FASTCALL __fastcall |
13 |
#else |
14 |
@@ -768,7 +772,7 @@ typedef short __m64_16 __attribute__ ((_ |
15 |
#define _m_paddd(m1, m2) __builtin_ia32_paddd (m1, m2) |
16 |
#define _m_pcmpeqd(m1, m2) __builtin_ia32_pcmpeqd (m1, m2) |
17 |
|
18 |
-#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) || __GNUC__ > 4 |
19 |
+#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) || __GNUC__ > 4 || __has_builtin(__builtin_ia32_pslldi) |
20 |
# define _m_pslldi(m1, m2) __builtin_ia32_pslldi ((__m64)m1, m2) |
21 |
# define _m_psradi(m1, m2) __builtin_ia32_psradi ((__m64)m1, m2) |
22 |
# define _m_psrldi(m1, m2) __builtin_ia32_psrldi ((__m64)m1, m2) |