diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-01-24 17:44:46 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-01-24 17:44:46 +0000 |
commit | 799fde37cca2edf7a9d9e356eb45017eb686038c (patch) | |
tree | 0fc8d6559704af6bea929dd84eae28e0e02e3910 | |
parent | f5b96597bd3de4c620aa05a6624145de55045e52 (diff) | |
download | ffmpeg-799fde37cca2edf7a9d9e356eb45017eb686038c.tar.gz |
Add a check for ppc4xx instructions; rename preprocessor directive accordingly.
Originally committed as revision 16756 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | configure | 3 | ||||
-rw-r--r-- | libavcodec/ppc/mathops.h | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -823,6 +823,7 @@ ARCH_EXT_LIST=' mmx mmx2 neon + ppc4xx sse ssse3 vis @@ -952,6 +953,7 @@ mmi_deps="mips" mmx_deps="x86" mmx2_deps="x86 mmx" neon_deps="arm" +ppc4xx_deps="ppc" sse_deps="mmx" ssse3_deps="x86 sse" vis_deps="sparc" @@ -1773,6 +1775,7 @@ fi # check for assembler specific support enabled ppc && check_asm dcbzl '"dcbzl 0, 1"' +enabled ppc && check_asm ppc4xx '"maclhw r10, r11, r12"' # check for SIMD availability diff --git a/libavcodec/ppc/mathops.h b/libavcodec/ppc/mathops.h index 7553a50c45..8c0eab01f1 100644 --- a/libavcodec/ppc/mathops.h +++ b/libavcodec/ppc/mathops.h @@ -23,7 +23,7 @@ #ifndef AVCODEC_PPC_MATHOPS_H #define AVCODEC_PPC_MATHOPS_H -#if ARCH_PPC_405 +#if HAVE_PPC4XX /* signed 16x16 -> 32 multiply add accumulate */ #define MAC16(rt, ra, rb) \ __asm__ ("maclhw %0, %2, %3" : "=r" (rt) : "0" (rt), "r" (ra), "r" (rb)); |