Mercurial > libavcodec.hg
comparison ppc/mpegvideo_altivec.c @ 5019:41cabe79ba25 libavcodec
use macro Use DECLARE_ALIGNED_16 to align stack-allocated variables
instead of compiler-dependent __attribute__((aligned(16)))
Origiginal thread:
Date: May 17, 2007 12:30 AM
Subject: [PATCH] Use DECLARE_ALIGNED_16 in libavcodec/ppc/
author | gpoirier |
---|---|
date | Thu, 17 May 2007 14:14:53 +0000 |
parents | d5ba514e3f4a |
children | 204273dd0349 |
comparison
equal
deleted
inserted
replaced
5018:06adf4be28f4 | 5019:41cabe79ba25 |
---|---|
521 nCoeffs= s->intra_scantable.raster_end[ s->block_last_index[n] ]; | 521 nCoeffs= s->intra_scantable.raster_end[ s->block_last_index[n] ]; |
522 } | 522 } |
523 | 523 |
524 { | 524 { |
525 register const_vector signed short vczero = (const_vector signed short)vec_splat_s16(0); | 525 register const_vector signed short vczero = (const_vector signed short)vec_splat_s16(0); |
526 short __attribute__ ((aligned(16))) qmul8[] = | 526 DECLARE_ALIGNED_16(short, qmul8[]) = |
527 { | 527 { |
528 qmul, qmul, qmul, qmul, | 528 qmul, qmul, qmul, qmul, |
529 qmul, qmul, qmul, qmul | 529 qmul, qmul, qmul, qmul |
530 }; | 530 }; |
531 short __attribute__ ((aligned(16))) qadd8[] = | 531 DECLARE_ALIGNED_16(short, qadd8[]) = |
532 { | 532 { |
533 qadd, qadd, qadd, qadd, | 533 qadd, qadd, qadd, qadd, |
534 qadd, qadd, qadd, qadd | 534 qadd, qadd, qadd, qadd |
535 }; | 535 }; |
536 short __attribute__ ((aligned(16))) nqadd8[] = | 536 DECLARE_ALIGNED_16(short, nqadd8[]) = |
537 { | 537 { |
538 -qadd, -qadd, -qadd, -qadd, | 538 -qadd, -qadd, -qadd, -qadd, |
539 -qadd, -qadd, -qadd, -qadd | 539 -qadd, -qadd, -qadd, -qadd |
540 }; | 540 }; |
541 register vector signed short blockv, qmulv, qaddv, nqaddv, temp1; | 541 register vector signed short blockv, qmulv, qaddv, nqaddv, temp1; |