[x265] [PATCH] asm: extend constant 0x3FFF to 256-bits (fix issue #204)
Min Chen
chenm003 at 163.com
Tue Oct 20 00:40:27 CEST 2015
# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1445294421 18000
# Node ID 11c81b81da37e9251d6d6ec36f666f5ac6d57bed
# Parent 1bcfea4372d90ceca3db6c262eaaf19147537c27
asm: extend constant 0x3FFF to 256-bits (fix issue #204)
---
source/common/x86/const-a.asm | 2 +-
source/common/x86/mc-a2.asm | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff -r 1bcfea4372d9 -r 11c81b81da37 source/common/x86/const-a.asm
--- a/source/common/x86/const-a.asm Mon Sep 07 17:13:49 2015 +0530
+++ b/source/common/x86/const-a.asm Mon Oct 19 17:40:21 2015 -0500
@@ -93,7 +93,7 @@
const pw_ff00, times 8 dw 0xff00
const pw_2000, times 16 dw 0x2000
const pw_8000, times 8 dw 0x8000
-const pw_3fff, times 8 dw 0x3fff
+const pw_3fff, times 16 dw 0x3fff
const pw_32_0, times 4 dw 32,
times 4 dw 0
const pw_pixel_max, times 16 dw ((1 << BIT_DEPTH)-1)
diff -r 1bcfea4372d9 -r 11c81b81da37 source/common/x86/mc-a2.asm
--- a/source/common/x86/mc-a2.asm Mon Sep 07 17:13:49 2015 +0530
+++ b/source/common/x86/mc-a2.asm Mon Oct 19 17:40:21 2015 -0500
@@ -1059,8 +1059,7 @@
vbroadcastsd m6, [r5]
mulpd m6, [pd_inv256]
xor r5d, r5d
- lea r0, [r0+r5*2]
- mova m5, [pw_3fff]
+ vbroadcasti128 m5, [pw_3fff]
.loop:
movu xm2, [r2+r5*4] ; intra
More information about the x265-devel
mailing list