Mercurial > libavcodec.hg
comparison ppc/dsputil_ppc.c @ 1511:587258262aa5 libavcodec
recommit (of patch, as cvslog msg didnt apply cleanly)
libavcodec/ppc compile errors patch by ("Steven M. Schultz" <sms at 2BSD dot COM>)
author | michael |
---|---|
date | Sat, 11 Oct 2003 08:25:23 +0000 |
parents | e8ff4783f188 |
children | 6a4cfc5f9f96 |
comparison
equal
deleted
inserted
replaced
1510:ca1da7d99d52 | 1511:587258262aa5 |
---|---|
31 int mm_flags = 0; | 31 int mm_flags = 0; |
32 | 32 |
33 int mm_support(void) | 33 int mm_support(void) |
34 { | 34 { |
35 int result = 0; | 35 int result = 0; |
36 #if HAVE_ALTIVEC | 36 #ifdef HAVE_ALTIVEC |
37 if (has_altivec()) { | 37 if (has_altivec()) { |
38 result |= MM_ALTIVEC; | 38 result |= MM_ALTIVEC; |
39 } | 39 } |
40 #endif /* result */ | 40 #endif /* result */ |
41 return result; | 41 return result; |
231 break; | 231 break; |
232 default: | 232 default: |
233 break; | 233 break; |
234 } | 234 } |
235 | 235 |
236 #if HAVE_ALTIVEC | 236 #ifdef HAVE_ALTIVEC |
237 if (has_altivec()) { | 237 if (has_altivec()) { |
238 mm_flags |= MM_ALTIVEC; | 238 mm_flags |= MM_ALTIVEC; |
239 | 239 |
240 // Altivec specific optimisations | 240 // Altivec specific optimisations |
241 c->pix_abs16x16_x2 = pix_abs16x16_x2_altivec; | 241 c->pix_abs16x16_x2 = pix_abs16x16_x2_altivec; |