You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
356B

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