diff options
author | Brian Foley <bfoley@compsoc.nuigalway.ie> | 2002-09-02 08:48:12 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-09-02 08:48:12 +0000 |
commit | ab6c65f69307bff2a2d073a94b839619ab64386b (patch) | |
tree | a45a82147617f17f62aea7bf70d299623c41ecad /libavcodec/ppc/dsputil_ppc.c | |
parent | 004c18ee9ce785c33ffedcbb3b8749f4d63a9a2a (diff) | |
download | ffmpeg-ab6c65f69307bff2a2d073a94b839619ab64386b.tar.gz |
altivec build tidyup patch by (Brian Foley <bfoley at compsoc dot nuigalway dot ie>)
Originally committed as revision 898 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc/dsputil_ppc.c')
-rw-r--r-- | libavcodec/ppc/dsputil_ppc.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libavcodec/ppc/dsputil_ppc.c b/libavcodec/ppc/dsputil_ppc.c new file mode 100644 index 0000000000..1311cc61b1 --- /dev/null +++ b/libavcodec/ppc/dsputil_ppc.c @@ -0,0 +1,20 @@ +#include "../../config.h" +#include "../dsputil.h" + +#ifdef HAVE_ALTIVEC +#include "dsputil_altivec.h" +#endif + +void dsputil_init_ppc(void) +{ +#if HAVE_ALTIVEC + if (has_altivec()) { + pix_abs16x16 = pix_abs16x16_altivec; + pix_abs8x8 = pix_abs8x8_altivec; + pix_sum = pix_sum_altivec; + } else +#endif + { + /* Non-AltiVec PPC optimisations here */ + } +} |