Mercurial > libavcodec.hg
comparison ppc/dsputil_ppc.c @ 1951:2599b8444831 libavcodec
better hadamard8_diff16 in AltiVec, and more patch by (Romain Dolbeau <dolbeau at irisa dot fr>)
author | michael |
---|---|
date | Thu, 22 Apr 2004 13:21:59 +0000 |
parents | 66215baae7b9 |
children | 1ba490d60bb9 |
comparison
equal
deleted
inserted
replaced
1950:a3c60fa850dc | 1951:2599b8444831 |
---|---|
59 "put_pixels8_xy2_altivec", | 59 "put_pixels8_xy2_altivec", |
60 "put_no_rnd_pixels8_xy2_altivec", | 60 "put_no_rnd_pixels8_xy2_altivec", |
61 "put_pixels16_xy2_altivec", | 61 "put_pixels16_xy2_altivec", |
62 "put_no_rnd_pixels16_xy2_altivec", | 62 "put_no_rnd_pixels16_xy2_altivec", |
63 "hadamard8_diff8x8_altivec", | 63 "hadamard8_diff8x8_altivec", |
64 "hadamard8_diff16_altivec", | |
64 "clear_blocks_dcbz32_ppc", | 65 "clear_blocks_dcbz32_ppc", |
65 "clear_blocks_dcbz128_ppc" | 66 "clear_blocks_dcbz128_ppc" |
66 }; | 67 }; |
67 #include <stdio.h> | 68 #include <stdio.h> |
68 #endif | 69 #endif |
222 #else | 223 #else |
223 long check_dcbzl_effect(void) | 224 long check_dcbzl_effect(void) |
224 { | 225 { |
225 return 0; | 226 return 0; |
226 } | 227 } |
227 #endif | |
228 | |
229 #ifdef HAVE_ALTIVEC | |
230 // can't put that in dsputil_altivec.c, | |
231 // has WARPER8_16_SQ declare the function "static" ... | |
232 WARPER8_16_SQ(hadamard8_diff8x8_altivec, hadamard8_diff16_altivec) | |
233 #endif | 228 #endif |
234 | 229 |
235 void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) | 230 void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) |
236 { | 231 { |
237 // Common optimizations whether Altivec is available or not | 232 // Common optimizations whether Altivec is available or not |