19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: quant_h263_altivec.c,v 1.1 2004-04-05 20:36:37 edgomez Exp $ |
* $Id: quant_h263_altivec.c,v 1.2 2004-12-09 23:02:54 edgomez Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
115 |
|
|
116 |
#ifdef DEBUG |
#ifdef DEBUG |
117 |
if(((unsigned)coeff) & 15) |
if(((unsigned)coeff) & 15) |
118 |
fprintf(stderr, "quant_h263_intra_altivec_c:incorrect align, coeff: %x\n", coeff); |
fprintf(stderr, "quant_h263_intra_altivec_c:incorrect align, coeff: %lx\n", (long)coeff); |
119 |
#endif |
#endif |
120 |
|
|
121 |
zerovec = vec_splat_u8(0); |
zerovec = vec_splat_u8(0); |
198 |
|
|
199 |
#ifdef DEBUG |
#ifdef DEBUG |
200 |
if(((unsigned)coeff) & 0x15) |
if(((unsigned)coeff) & 0x15) |
201 |
fprintf(stderr, "quant_h263_inter_altivec_c:incorrect align, coeff: %x\n", coeff); |
fprintf(stderr, "quant_h263_inter_altivec_c:incorrect align, coeff: %lx\n", (long)coeff); |
202 |
#endif |
#endif |
203 |
|
|
204 |
/* initialisation stuff */ |
/* initialisation stuff */ |
304 |
|
|
305 |
#ifdef DEBUG |
#ifdef DEBUG |
306 |
if(((unsigned)data) & 0x15) |
if(((unsigned)data) & 0x15) |
307 |
fprintf(stderr, "dequant_h263_intra_altivec_c:incorrect align, data: %x\n", data); |
fprintf(stderr, "dequant_h263_intra_altivec_c:incorrect align, data: %lx\n", (long)data); |
308 |
#endif |
#endif |
309 |
|
|
310 |
/* initialize */ |
/* initialize */ |
407 |
#ifdef DEBUG |
#ifdef DEBUG |
408 |
/* print alignment errors if this is on */ |
/* print alignment errors if this is on */ |
409 |
if(((unsigned)data) & 0x15) |
if(((unsigned)data) & 0x15) |
410 |
fprintf(stderr, "dequant_h263_inter_altivec_c:incorrect align, data: %x\n", data); |
fprintf(stderr, "dequant_h263_inter_altivec_c:incorrect align, data: %lx\n", (long)data); |
411 |
#endif |
#endif |
412 |
|
|
413 |
/* initialize */ |
/* initialize */ |