Mercurial > libavcodec.hg
comparison dsputil.c @ 11369:98970e51365a libavcodec
Remove DECLARE_ALIGNED_{8,16} macros
These macros are redundant. All uses are replaced with the generic
DECLARE_ALIGNED macro instead.
author | mru |
---|---|
date | Sat, 06 Mar 2010 14:24:59 +0000 |
parents | 0fc1cdd984b7 |
children | 84963c795459 |
comparison
equal
deleted
inserted
replaced
11368:3d4f64b8fb10 | 11369:98970e51365a |
---|---|
90 22, 30, 7, 15, 23, 31, 38, 46, | 90 22, 30, 7, 15, 23, 31, 38, 46, |
91 53, 61, 54, 62, 39, 47, 55, 63, | 91 53, 61, 54, 62, 39, 47, 55, 63, |
92 }; | 92 }; |
93 | 93 |
94 /* not permutated inverse zigzag_direct + 1 for MMX quantizer */ | 94 /* not permutated inverse zigzag_direct + 1 for MMX quantizer */ |
95 DECLARE_ALIGNED_16(uint16_t, inv_zigzag_direct16)[64]; | 95 DECLARE_ALIGNED(16, uint16_t, inv_zigzag_direct16)[64]; |
96 | 96 |
97 const uint8_t ff_alternate_horizontal_scan[64] = { | 97 const uint8_t ff_alternate_horizontal_scan[64] = { |
98 0, 1, 2, 3, 8, 9, 16, 17, | 98 0, 1, 2, 3, 8, 9, 16, 17, |
99 10, 11, 4, 5, 6, 7, 15, 14, | 99 10, 11, 4, 5, 6, 7, 15, 14, |
100 13, 12, 19, 18, 24, 25, 32, 33, | 100 13, 12, 19, 18, 24, 25, 32, 33, |
4533 for(i=0; i<64; i++) inv_zigzag_direct16[ff_zigzag_direct[i]]= i+1; | 4533 for(i=0; i<64; i++) inv_zigzag_direct16[ff_zigzag_direct[i]]= i+1; |
4534 } | 4534 } |
4535 | 4535 |
4536 int ff_check_alignment(void){ | 4536 int ff_check_alignment(void){ |
4537 static int did_fail=0; | 4537 static int did_fail=0; |
4538 DECLARE_ALIGNED_16(int, aligned); | 4538 DECLARE_ALIGNED(16, int, aligned); |
4539 | 4539 |
4540 if((intptr_t)&aligned & 15){ | 4540 if((intptr_t)&aligned & 15){ |
4541 if(!did_fail){ | 4541 if(!did_fail){ |
4542 #if HAVE_MMX || HAVE_ALTIVEC | 4542 #if HAVE_MMX || HAVE_ALTIVEC |
4543 av_log(NULL, AV_LOG_ERROR, | 4543 av_log(NULL, AV_LOG_ERROR, |