Commit 72b069b9 authored by reimar's avatar reimar

Use DECLARE_ALIGNED


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11630 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0769f313
...@@ -668,7 +668,7 @@ static inline void transpose4x4(uint8_t *dst, uint8_t *src, int dst_stride, int ...@@ -668,7 +668,7 @@ static inline void transpose4x4(uint8_t *dst, uint8_t *src, int dst_stride, int
static void h263_h_loop_filter_mmx(uint8_t *src, int stride, int qscale){ static void h263_h_loop_filter_mmx(uint8_t *src, int stride, int qscale){
if(ENABLE_ANY_H263) { if(ENABLE_ANY_H263) {
const int strength= ff_h263_loop_filter_strength[qscale]; const int strength= ff_h263_loop_filter_strength[qscale];
uint64_t temp[4] __attribute__ ((aligned(8))); DECLARE_ALIGNED(8, uint64_t, temp[4]);
uint8_t *btemp= (uint8_t*)temp; uint8_t *btemp= (uint8_t*)temp;
src -= 2; src -= 2;
......
...@@ -209,7 +209,7 @@ row[7] = input[13]; ...@@ -209,7 +209,7 @@ row[7] = input[13];
static inline void idct(int16_t *block) static inline void idct(int16_t *block)
{ {
int64_t __attribute__((aligned(8))) align_tmp[16]; DECLARE_ALIGNED(8, int64_t, align_tmp[16]);
int16_t * const temp= (int16_t*)align_tmp; int16_t * const temp= (int16_t*)align_tmp;
asm volatile( asm volatile(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment