Mercurial > libavcodec.hg
comparison ppc/mathops.h @ 8655:14ccee231565 libavcodec
Add a check for ppc4xx instructions; rename preprocessor directive accordingly.
author | diego |
---|---|
date | Sat, 24 Jan 2009 17:44:46 +0000 |
parents | 04423b2f6e0b |
children | 31bdc2da2e80 |
comparison
equal
deleted
inserted
replaced
8654:13b6cdf7895e | 8655:14ccee231565 |
---|---|
21 */ | 21 */ |
22 | 22 |
23 #ifndef AVCODEC_PPC_MATHOPS_H | 23 #ifndef AVCODEC_PPC_MATHOPS_H |
24 #define AVCODEC_PPC_MATHOPS_H | 24 #define AVCODEC_PPC_MATHOPS_H |
25 | 25 |
26 #if ARCH_PPC_405 | 26 #if HAVE_PPC4XX |
27 /* signed 16x16 -> 32 multiply add accumulate */ | 27 /* signed 16x16 -> 32 multiply add accumulate */ |
28 #define MAC16(rt, ra, rb) \ | 28 #define MAC16(rt, ra, rb) \ |
29 __asm__ ("maclhw %0, %2, %3" : "=r" (rt) : "0" (rt), "r" (ra), "r" (rb)); | 29 __asm__ ("maclhw %0, %2, %3" : "=r" (rt) : "0" (rt), "r" (ra), "r" (rb)); |
30 | 30 |
31 /* signed 16x16 -> 32 multiply */ | 31 /* signed 16x16 -> 32 multiply */ |