summaryrefslogtreecommitdiffstats
path: root/libmpeg2/cpu_accel.c
diff options
context:
space:
mode:
authornplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-15 20:11:34 +0000
committernplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-15 20:11:34 +0000
commitf5f234c94e3c914bc76a33d892aef4e45be5fa6c (patch)
tree40c9e27c8ff007ccb07e233e68c2b689f047f58e /libmpeg2/cpu_accel.c
parentf781d5bc30586161c243a4ae71b50292c4b9facf (diff)
downloadmpv-f5f234c94e3c914bc76a33d892aef4e45be5fa6c.tar.bz2
mpv-f5f234c94e3c914bc76a33d892aef4e45be5fa6c.tar.xz
set define for apple gcc altivec
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15484 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpeg2/cpu_accel.c')
-rw-r--r--libmpeg2/cpu_accel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpeg2/cpu_accel.c b/libmpeg2/cpu_accel.c
index 62fa7b8dc5..715b126642 100644
--- a/libmpeg2/cpu_accel.c
+++ b/libmpeg2/cpu_accel.c
@@ -143,10 +143,10 @@ static inline uint32_t arch_accel (void)
canjump = 1;
-#ifdef HAVE_ALTIVEC_H /* gnu */
-#define VAND(a,b,c) "vand " #a "," #b "," #c "\n\t"
-#else /* apple */
+#if defined( __APPLE_CC__ ) && defined( __APPLE_ALTIVEC__ ) /* apple */
#define VAND(a,b,c) "vand v" #a ",v" #b ",v" #c "\n\t"
+#else /* gnu */
+#define VAND(a,b,c) "vand " #a "," #b "," #c "\n\t"
#endif
asm volatile ("mtspr 256, %0\n\t"
VAND (0, 0, 0)