d9c8ba86e09b25f4fb844a5bdb816eb63bc8340a
[ffmpeg.git] / libavcodec / ppc / dsputil_ppc.c
1 #include "../dsputil.h"
2
3 #ifdef HAVE_ALTIVEC
4 #include "dsputil_altivec.h"
5 #endif
6
7 void dsputil_init_ppc(void)
8 {
9 #if HAVE_ALTIVEC
10     if (has_altivec()) {
11         pix_abs16x16 = pix_abs16x16_altivec;
12         pix_abs8x8 = pix_abs8x8_altivec;
13         pix_sum = pix_sum_altivec;
14     } else
15 #endif
16     {
17         /* Non-AltiVec PPC optimisations here */
18     }
19 }