summaryrefslogtreecommitdiffstats
path: root/libmpeg2/cpu_accel.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-07-27 22:55:25 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-07-27 22:55:25 +0000
commitb4547c12fc16e4b2fcb4c547beeeee5d8a427615 (patch)
treecbe5a296a00c80b448c8e8bae397d5ddd8be2cd5 /libmpeg2/cpu_accel.c
parent1c7f242c96c1fea7b34ff6630db5912f8f5634d0 (diff)
downloadmpv-b4547c12fc16e4b2fcb4c547beeeee5d8a427615.tar.bz2
mpv-b4547c12fc16e4b2fcb4c547beeeee5d8a427615.tar.xz
gcc2.95.x has no support for mvi instructions
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10489 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpeg2/cpu_accel.c')
-rw-r--r--libmpeg2/cpu_accel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpeg2/cpu_accel.c b/libmpeg2/cpu_accel.c
index b87e8096fc..c2c91e5c0a 100644
--- a/libmpeg2/cpu_accel.c
+++ b/libmpeg2/cpu_accel.c
@@ -154,6 +154,7 @@ static inline uint32_t arch_accel (void)
#ifdef ARCH_ALPHA
static inline uint32_t arch_accel (void)
{
+#ifdef CAN_COMPILE_ALPHA_MVI
uint64_t no_mvi;
asm volatile ("amask %1, %0"
@@ -161,6 +162,9 @@ static inline uint32_t arch_accel (void)
: "rI" (256)); /* AMASK_MVI */
return no_mvi ? MPEG2_ACCEL_ALPHA : (MPEG2_ACCEL_ALPHA |
MPEG2_ACCEL_ALPHA_MVI);
+#else
+ return MPEG2_ACCEL_ALPHA;
+#endif
}
#endif /* ARCH_ALPHA */
#endif