[x265] [PATCH] asm: created comman asm macro for pixel_sad_32xN functions
dnyaneshwar at multicorewareinc.com
dnyaneshwar at multicorewareinc.com
Tue Oct 29 14:02:03 CET 2013
# HG changeset patch
# User Dnyaneshwar Gorade <dnyaneshwar at multicorewareinc.com>
# Date 1383050740 -19800
# Tue Oct 29 18:15:40 2013 +0530
# Node ID 691178dcd7821e52fa7ebb7d4a6bef34d635da94
# Parent 37e51e1fdcde4a536f92f53c609f5604e8786cd3
asm: created comman asm macro for pixel_sad_32xN functions
diff -r 37e51e1fdcde -r 691178dcd782 source/common/x86/sad-a.asm
--- a/source/common/x86/sad-a.asm Tue Oct 29 18:00:32 2013 +0530
+++ b/source/common/x86/sad-a.asm Tue Oct 29 18:15:40 2013 +0530
@@ -138,6 +138,41 @@
lea r0, [r0 + 2 * r1]
%endmacro
+%macro PROCESS_SAD_32x4 0
+ movu m1, [r2]
+ movu m2, [r2 + 16]
+ psadbw m1, [r0]
+ psadbw m2, [r0 + 16]
+ paddd m1, m2
+ paddd m0, m1
+ lea r2, [r2 + r3]
+ lea r0, [r0 + r1]
+ movu m1, [r2]
+ movu m2, [r2 + 16]
+ psadbw m1, [r0]
+ psadbw m2, [r0 + 16]
+ paddd m1, m2
+ paddd m0, m1
+ lea r2, [r2 + r3]
+ lea r0, [r0 + r1]
+ movu m1, [r2]
+ movu m2, [r2 + 16]
+ psadbw m1, [r0]
+ psadbw m2, [r0 + 16]
+ paddd m1, m2
+ paddd m0, m1
+ lea r2, [r2 + r3]
+ lea r0, [r0 + r1]
+ movu m1, [r2]
+ movu m2, [r2 + 16]
+ psadbw m1, [r0]
+ psadbw m2, [r0 + 16]
+ paddd m1, m2
+ paddd m0, m1
+ lea r2, [r2 + r3]
+ lea r0, [r0 + r1]
+%endmacro
+
%macro SAD_W16 0
;-----------------------------------------------------------------------------
; int pixel_sad_16x16( uint8_t *, intptr_t, uint8_t *, intptr_t )
More information about the x265-devel
mailing list