altivec build tidyup patch by (Brian Foley <bfoley at compsoc dot nuigalway dot ie>)
[ffmpeg.git] / libavcodec / ppc / dsputil_ppc.c
1 #include "../../config.h"
2 #include "../dsputil.h"
3
4 #ifdef HAVE_ALTIVEC
5 #include "dsputil_altivec.h"
6 #endif
7
8 void dsputil_init_ppc(void)
9 {
10 #if HAVE_ALTIVEC
11     if (has_altivec()) {
12         pix_abs16x16 = pix_abs16x16_altivec;
13         pix_abs8x8 = pix_abs8x8_altivec;
14         pix_sum = pix_sum_altivec;
15     } else
16 #endif
17     {
18         /* Non-AltiVec PPC optimisations here */
19     }
20 }