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.

21 lines
382B

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