[x265] [PATCH 1 of 2] asm: move common constants into const-a.asm, remove unused constants
dnyaneshwar at multicorewareinc.com
dnyaneshwar at multicorewareinc.com
Sat Jan 9 11:24:50 CET 2016
# HG changeset patch
# User Dnyaneshwar G <dnyaneshwar at multicorewareinc.com>
# Date 1449894370 -19800
# Sat Dec 12 09:56:10 2015 +0530
# Node ID 593a1907e915c9bad7bd3ff608a30770289c249a
# Parent a5309338d1352978e79da6210a0d64eb88d60c8f
asm: move common constants into const-a.asm, remove unused constants
diff -r a5309338d135 -r 593a1907e915 source/common/x86/blockcopy8.asm
--- a/source/common/x86/blockcopy8.asm Sat Jan 09 13:45:00 2016 +0530
+++ b/source/common/x86/blockcopy8.asm Sat Dec 12 09:56:10 2015 +0530
@@ -28,8 +28,6 @@
SECTION_RODATA 32
-tab_Vm: db 0, 2, 4, 6, 8, 10, 12, 14, 0, 0, 0, 0, 0, 0, 0, 0
-
cextern pb_4
cextern pb_1
cextern pb_16
diff -r a5309338d135 -r 593a1907e915 source/common/x86/const-a.asm
--- a/source/common/x86/const-a.asm Sat Jan 09 13:45:00 2016 +0530
+++ b/source/common/x86/const-a.asm Sat Dec 12 09:56:10 2015 +0530
@@ -40,8 +40,10 @@
const pb_8, times 32 db 8
const pb_15, times 32 db 15
const pb_16, times 32 db 16
+const pb_31, times 32 db 31
const pb_32, times 32 db 32
const pb_64, times 32 db 64
+const pb_124, times 32 db 124
const pb_128, times 32 db 128
const pb_a1, times 16 db 0xa1
@@ -146,10 +148,6 @@
const pd_planar16_mul2, times 1 dd 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0
const trans8_shuf, times 1 dd 0, 4, 1, 5, 2, 6, 3, 7
-const popcnt_table
-%assign x 0
-%rep 256
-; population count
-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
+;; 64-bit constants
+
+const pq_1, times 1 dq 1
diff -r a5309338d135 -r 593a1907e915 source/common/x86/loopfilter.asm
--- a/source/common/x86/loopfilter.asm Sat Jan 09 13:45:00 2016 +0530
+++ b/source/common/x86/loopfilter.asm Sat Dec 12 09:56:10 2015 +0530
@@ -29,9 +29,6 @@
%include "x86util.asm"
SECTION_RODATA 32
-pb_31: times 32 db 31
-pb_124: times 32 db 124
-pb_15: times 32 db 15
SECTION .text
cextern pb_1
@@ -39,6 +36,9 @@
cextern pb_3
cextern pb_4
cextern pb_01
+cextern pb_15
+cextern pb_31
+cextern pb_124
cextern pb_128
cextern pw_1
cextern pw_n1
diff -r a5309338d135 -r 593a1907e915 source/common/x86/mc-a.asm
--- a/source/common/x86/mc-a.asm Sat Jan 09 13:45:00 2016 +0530
+++ b/source/common/x86/mc-a.asm Sat Dec 12 09:56:10 2015 +0530
@@ -53,7 +53,6 @@
times 8 db 2
times 8 db 4
times 8 db 6
-sq_1: times 1 dq 1
SECTION .text
@@ -74,6 +73,7 @@
cextern pw_pixel_max
cextern pd_32
cextern pd_64
+cextern pq_1
;====================================================================================================================
;void addAvg (int16_t* src0, int16_t* src1, pixel* dst, intptr_t src0Stride, intptr_t src1Stride, intptr_t dstStride)
@@ -3638,7 +3638,7 @@
mova m3, [r4+16]
movd m2, [r4+32] ; denom
mova m4, [pw_pixel_max]
- paddw m2, [sq_1] ; denom+1
+ paddw m2, [pq_1] ; denom+1
%endmacro
; src1, src2
diff -r a5309338d135 -r 593a1907e915 source/common/x86/mc-a2.asm
--- a/source/common/x86/mc-a2.asm Sat Jan 09 13:45:00 2016 +0530
+++ b/source/common/x86/mc-a2.asm Sat Dec 12 09:56:10 2015 +0530
@@ -43,11 +43,7 @@
deinterleave_shuf32a: db 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30
deinterleave_shuf32b: db 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31
%endif
-pw_1024: times 16 dw 1024
-pd_16: times 4 dd 16
-pd_0f: times 4 dd 0xffff
-pf_inv256: times 8 dd 0.00390625
const pd_inv256, times 4 dq 0.00390625
const pd_0_5, times 4 dq 0.5
@@ -59,9 +55,11 @@
cextern pw_32
cextern pw_512
cextern pw_00ff
+cextern pw_1024
cextern pw_3fff
cextern pw_pixel_max
cextern pd_ffff
+cextern pd_16
;The hpel_filter routines use non-temporal writes for output.
;The following defines may be uncommented for testing.
diff -r a5309338d135 -r 593a1907e915 source/common/x86/pixel-a.asm
--- a/source/common/x86/pixel-a.asm Sat Jan 09 13:45:00 2016 +0530
+++ b/source/common/x86/pixel-a.asm Sat Dec 12 09:56:10 2015 +0530
@@ -50,9 +50,6 @@
transd_shuf1: SHUFFLE_MASK_W 0, 8, 2, 10, 4, 12, 6, 14
transd_shuf2: SHUFFLE_MASK_W 1, 9, 3, 11, 5, 13, 7, 15
-sw_f0: dq 0xfff0, 0
-pd_f0: times 4 dd 0xffff0000
-
SECTION .text
cextern pb_0
@@ -67,7 +64,6 @@
cextern pw_pmpmpmpm
cextern pw_pmmpzzzz
cextern pd_1
-cextern popcnt_table
cextern pd_2
cextern hmul_16p
cextern pb_movemask
More information about the x265-devel
mailing list