Mercurial > libavcodec.hg
diff ppc/dsputil_ppc.c @ 894:a408778eff87 libavcodec
altivec accelerated v-resample patch by (Brian Foley <bfoley at compsoc dot nuigalway dot ie>)
author | michaelni |
---|---|
date | Tue, 26 Nov 2002 09:21:01 +0000 |
parents | 2cef5c4c0ca6 |
children | fd31916942ef |
line wrap: on
line diff
--- a/ppc/dsputil_ppc.c Tue Nov 26 08:58:24 2002 +0000 +++ b/ppc/dsputil_ppc.c Tue Nov 26 09:21:01 2002 +0000 @@ -23,6 +23,8 @@ #include "dsputil_altivec.h" #endif +int mm_flags = 0; + void dsputil_init_ppc(DSPContext* c, unsigned mask) { // Common optimisations whether Altivec or not @@ -31,6 +33,8 @@ #if HAVE_ALTIVEC if (has_altivec()) { + mm_flags |= MM_ALTIVEC; + // Altivec specific optimisations c->pix_abs16x16_x2 = pix_abs16x16_x2_altivec; c->pix_abs16x16_y2 = pix_abs16x16_y2_altivec;