comparison ppc/dsputil_ppc.c @ 2294:fac626a2b73b libavcodec

missaliged clear_blocks() and h264 not complied but referenced fix patch by (Roine Gustafsson <roine at users dot sourceforge dot net>) and me
author michael
date Mon, 11 Oct 2004 22:47:09 +0000
parents b0102ea621dd
children 4c0ab7ed2642
comparison
equal deleted inserted replaced
2293:15cfba1b97b5 2294:fac626a2b73b
139 ((unsigned long*)blocks)[1] = 0L; 139 ((unsigned long*)blocks)[1] = 0L;
140 ((unsigned long*)blocks)[2] = 0L; 140 ((unsigned long*)blocks)[2] = 0L;
141 ((unsigned long*)blocks)[3] = 0L; 141 ((unsigned long*)blocks)[3] = 0L;
142 i += 16; 142 i += 16;
143 } 143 }
144 for ( ; i < sizeof(DCTELEM)*6*64 ; i += 32) { 144 for ( ; i < sizeof(DCTELEM)*6*64-31 ; i += 32) {
145 #ifndef __MWERKS__ 145 #ifndef __MWERKS__
146 asm volatile("dcbz %0,%1" : : "b" (blocks), "r" (i) : "memory"); 146 asm volatile("dcbz %0,%1" : : "b" (blocks), "r" (i) : "memory");
147 #else 147 #else
148 __dcbz( blocks, i ); 148 __dcbz( blocks, i );
149 #endif 149 #endif
253 break; 253 break;
254 default: 254 default:
255 break; 255 break;
256 } 256 }
257 257
258 #ifdef HAVE_ALTIVEC
258 dsputil_h264_init_ppc(c, avctx); 259 dsputil_h264_init_ppc(c, avctx);
259 260
260 #ifdef HAVE_ALTIVEC
261 if (has_altivec()) { 261 if (has_altivec()) {
262 mm_flags |= MM_ALTIVEC; 262 mm_flags |= MM_ALTIVEC;
263 263
264 // Altivec specific optimisations 264 // Altivec specific optimisations
265 c->pix_abs[0][1] = sad16_x2_altivec; 265 c->pix_abs[0][1] = sad16_x2_altivec;