comparison ppc/mpegvideo_altivec.c @ 3973:b28edd190fc0 libavcodec

removing ALTIVEC_USE_REFERENCE_C_CODE, since has no use anymore
author lu_zero
date Mon, 09 Oct 2006 18:29:46 +0000
parents c8c591fe26f8
children fec25fd9febf
comparison
equal deleted inserted replaced
3972:f5f1c9af095d 3973:b28edd190fc0
552 } else { 552 } else {
553 i = 0; 553 i = 0;
554 nCoeffs= s->intra_scantable.raster_end[ s->block_last_index[n] ]; 554 nCoeffs= s->intra_scantable.raster_end[ s->block_last_index[n] ];
555 } 555 }
556 556
557 #ifdef ALTIVEC_USE_REFERENCE_C_CODE
558 for(;i<=nCoeffs;i++) {
559 level = block[i];
560 if (level) {
561 if (level < 0) {
562 level = level * qmul - qadd;
563 } else {
564 level = level * qmul + qadd;
565 }
566 block[i] = level;
567 }
568 }
569 #else /* ALTIVEC_USE_REFERENCE_C_CODE */
570 { 557 {
571 register const_vector signed short vczero = (const_vector signed short)vec_splat_s16(0); 558 register const_vector signed short vczero = (const_vector signed short)vec_splat_s16(0);
572 short __attribute__ ((aligned(16))) qmul8[] = 559 short __attribute__ ((aligned(16))) qmul8[] =
573 { 560 {
574 qmul, qmul, qmul, qmul, 561 qmul, qmul, qmul, qmul,
643 if (i == 1) 630 if (i == 1)
644 { // cheat. this avoid special-casing the first iteration 631 { // cheat. this avoid special-casing the first iteration
645 block[0] = backup_0; 632 block[0] = backup_0;
646 } 633 }
647 } 634 }
648 #endif /* ALTIVEC_USE_REFERENCE_C_CODE */
649
650 POWERPC_PERF_STOP_COUNT(altivec_dct_unquantize_h263_num, nCoeffs == 63); 635 POWERPC_PERF_STOP_COUNT(altivec_dct_unquantize_h263_num, nCoeffs == 63);
651 } 636 }