[x265] [PATCH 1 of 3] asm: cleanup unused constant and update copyright header

Min Chen chenm003 at 163.com
Sat Jun 27 04:13:21 CEST 2015


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1435370053 25200
# Node ID 229602ba850eb11c171d8c3cbb049dda4b41abda
# Parent  d64227e54233d1646c55bcb4b0b831e5340009ed
asm: cleanup unused constant and update copyright header
---
 source/common/x86/const-a.asm |    2 --
 source/common/x86/mc-a.asm    |    4 ++--
 source/common/x86/sad-a.asm   |    7 +++----
 3 files changed, 5 insertions(+), 8 deletions(-)

diff -r d64227e54233 -r 229602ba850e source/common/x86/const-a.asm
--- a/source/common/x86/const-a.asm	Thu Jun 25 16:25:51 2015 +0530
+++ b/source/common/x86/const-a.asm	Fri Jun 26 18:54:13 2015 -0700
@@ -136,5 +136,3 @@
 db ((x>>0)&1)+((x>>1)&1)+((x>>2)&1)+((x>>3)&1)+((x>>4)&1)+((x>>5)&1)+((x>>6)&1)+((x>>7)&1)
 %assign x x+1
 %endrep
-
-const sw_64,       dd 64
diff -r d64227e54233 -r 229602ba850e source/common/x86/mc-a.asm
--- a/source/common/x86/mc-a.asm	Thu Jun 25 16:25:51 2015 +0530
+++ b/source/common/x86/mc-a.asm	Fri Jun 26 18:54:13 2015 -0700
@@ -56,8 +56,8 @@
 cextern pw_1024
 cextern pw_00ff
 cextern pw_pixel_max
-cextern sw_64
 cextern pd_32
+cextern pd_64
 
 ;====================================================================================================================
 ;void addAvg (int16_t* src0, int16_t* src1, pixel* dst, intptr_t src0Stride, intptr_t src1Stride, intptr_t dstStride)
@@ -5179,7 +5179,7 @@
 %macro INIT_SHIFT 2
     and    eax, 7
     shl    eax, 3
-    movd   %1, [sw_64]
+    movd   %1, [pd_64]
     movd   %2, eax
     psubw  %1, %2
 %endmacro
diff -r d64227e54233 -r 229602ba850e source/common/x86/sad-a.asm
--- a/source/common/x86/sad-a.asm	Thu Jun 25 16:25:51 2015 +0530
+++ b/source/common/x86/sad-a.asm	Fri Jun 26 18:54:13 2015 -0700
@@ -7,6 +7,7 @@
 ;*          Fiona Glaser <fiona at x264.com>
 ;*          Laurent Aimar <fenrir at via.ecp.fr>
 ;*          Alex Izvorski <aizvorksi at gmail.com>
+;*          Min Chen <chenm003 at 163.com>
 ;*
 ;* This program is free software; you can redistribute it and/or modify
 ;* it under the terms of the GNU General Public License as published by
@@ -32,15 +33,13 @@
 SECTION_RODATA 32
 
 MSK:                  db 255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0
-pb_shuf8x8c2: times 2 db 0,0,0,0,8,8,8,8,-1,-1,-1,-1,-1,-1,-1,-1
-hpred_shuf:           db 0,0,2,2,8,8,10,10,1,1,3,3,9,9,11,11
 
 SECTION .text
 
 cextern pb_3
 cextern pb_shuf8x8c
 cextern pw_8
-cextern sw_64
+cextern pd_64
 
 ;=============================================================================
 ; SAD MMX
@@ -3539,7 +3538,7 @@
     jle pixel_sad_%1x%2_mmx2
     and    eax, 7
     shl    eax, 3
-    movd   mm6, [sw_64]
+    movd   mm6, [pd_64]
     movd   mm7, eax
     psubw  mm6, mm7
     PROLOGUE 4,5



More information about the x265-devel mailing list