blob: 1311cc61b1fbc2a2bb8525e2e628507366ab4112 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 */
}
}
|