diff options
author | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-11 08:35:49 +0000 |
---|---|---|
committer | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-11 08:35:49 +0000 |
commit | ecd6df1c72aca4fd3d2494eb5b4dd47dc62a07d2 (patch) | |
tree | 3d22f0dd6ffb43f27ed93a20466a842e670e8269 /libmpeg2/cpu_state.c | |
parent | cbb2590c883ed93f0b26885d840572dbadb2fbd1 (diff) | |
download | mpv-ecd6df1c72aca4fd3d2494eb5b4dd47dc62a07d2.tar.bz2 mpv-ecd6df1c72aca4fd3d2494eb5b4dd47dc62a07d2.tar.xz |
(hopefully) the rest of PPC modifications
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21587 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpeg2/cpu_state.c')
-rw-r--r-- | libmpeg2/cpu_state.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libmpeg2/cpu_state.c b/libmpeg2/cpu_state.c index 07b9ebf354..819f693e32 100644 --- a/libmpeg2/cpu_state.c +++ b/libmpeg2/cpu_state.c @@ -47,19 +47,19 @@ static void state_restore_mmx (cpu_state_t * state) } #endif -#ifdef ARCH_PPC -#ifdef HAVE_ALTIVEC_H /* gnu */ -#define LI(a,b) "li " #a "," #b "\n\t" -#define STVX0(a,b,c) "stvx " #a ",0," #c "\n\t" -#define STVX(a,b,c) "stvx " #a "," #b "," #c "\n\t" -#define LVX0(a,b,c) "lvx " #a ",0," #c "\n\t" -#define LVX(a,b,c) "lvx " #a "," #b "," #c "\n\t" -#else /* apple */ +#if defined(ARCH_PPC) && defined(HAVE_ALTIVEC) +#if defined( __APPLE_CC__ ) && defined( __APPLE_ALTIVEC__ ) /* apple */ #define LI(a,b) "li r" #a "," #b "\n\t" #define STVX0(a,b,c) "stvx v" #a ",0,r" #c "\n\t" #define STVX(a,b,c) "stvx v" #a ",r" #b ",r" #c "\n\t" #define LVX0(a,b,c) "lvx v" #a ",0,r" #c "\n\t" #define LVX(a,b,c) "lvx v" #a ",r" #b ",r" #c "\n\t" +#else /* gnu */ +#define LI(a,b) "li " #a "," #b "\n\t" +#define STVX0(a,b,c) "stvx " #a ",0," #c "\n\t" +#define STVX(a,b,c) "stvx " #a "," #b "," #c "\n\t" +#define LVX0(a,b,c) "lvx " #a ",0," #c "\n\t" +#define LVX(a,b,c) "lvx " #a "," #b "," #c "\n\t" #endif static void state_save_altivec (cpu_state_t * state) |