Commit b2aa4017 authored by Yunqing Wang's avatar Yunqing Wang
Browse files

Align SAD output array to be 16-byte aligned

Use aligned store.

Change-Id: Icab4c0c53da811d0c52bb7e8134927f249ba2499
parent 6daacdb7
......@@ -1415,7 +1415,7 @@ int vp8_full_search_sadx8(MACROBLOCK *x, BLOCK *b, BLOCKD *d, MV *ref_mv, int er
int col_min = ref_col - distance;
int col_max = ref_col + distance;
unsigned short sad_array8[8];
DECLARE_ALIGNED_ARRAY(16, unsigned short, sad_array8, 8);
unsigned int sad_array[3];
// Work out the mid point for the search
......
......@@ -186,7 +186,7 @@ sym(vp8_sad16x16x8_sse4):
PROCESS_16X2X8 0
mov rdi, arg(4) ;Results
movdqu XMMWORD PTR [rdi], xmm1
movdqa XMMWORD PTR [rdi], xmm1
; begin epilog
pop rdi
......@@ -224,7 +224,7 @@ sym(vp8_sad16x8x8_sse4):
PROCESS_16X2X8 0
mov rdi, arg(4) ;Results
movdqu XMMWORD PTR [rdi], xmm1
movdqa XMMWORD PTR [rdi], xmm1
; begin epilog
pop rdi
......@@ -262,7 +262,7 @@ sym(vp8_sad8x8x8_sse4):
PROCESS_8X2X8 0
mov rdi, arg(4) ;Results
movdqu XMMWORD PTR [rdi], xmm1
movdqa XMMWORD PTR [rdi], xmm1
; begin epilog
pop rdi
......@@ -303,7 +303,7 @@ sym(vp8_sad8x16x8_sse4):
PROCESS_8X2X8 0
PROCESS_8X2X8 0
mov rdi, arg(4) ;Results
movdqu XMMWORD PTR [rdi], xmm1
movdqa XMMWORD PTR [rdi], xmm1
; begin epilog
pop rdi
......@@ -339,7 +339,7 @@ sym(vp8_sad4x4x8_sse4):
PROCESS_4X2X8 0
mov rdi, arg(4) ;Results
movdqu XMMWORD PTR [rdi], xmm1
movdqa XMMWORD PTR [rdi], xmm1
; begin epilog
pop rdi
......
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