Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b3446862
Commit
b3446862
authored
Jun 16, 2017
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86/vorbisdsp: optimize ff_vorbis_inverse_coupling_sse
About 7% faster.
parent
c0607d88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
vorbisdsp.asm
libavcodec/x86/vorbisdsp.asm
+11
-8
No files found.
libavcodec/x86/vorbisdsp.asm
View file @
b3446862
...
...
@@ -57,13 +57,17 @@ cglobal vorbis_inverse_coupling, 3, 3, 6, mag, ang, block_size
%endif
INIT_XMM
sse
cglobal
vorbis_inverse_coupling
,
3
,
4
,
6
,
mag
,
ang
,
block_size
,
cntr
cglobal
vorbis_inverse_coupling
,
3
,
3
,
6
,
mag
,
ang
,
block_size
mova
m5
,
[
pdw_80000000
]
xor
cntrq
,
cntrq
shl
block_sized
,
2
add
magq
,
block_sizeq
add
angq
,
block_sizeq
neg
block_sizeq
align
16
.
loop
:
mova
m0
,
[
magq
+
cntrq
*
4
]
mova
m1
,
[
angq
+
cntrq
*
4
]
mova
m0
,
[
magq
+
block_sizeq
]
mova
m1
,
[
angq
+
block_sizeq
]
xorps
m2
,
m2
xorps
m3
,
m3
cmpleps
m2
,
m0
; m <= 0.0
...
...
@@ -75,9 +79,8 @@ align 16
andnps
m4
,
m1
addps
m3
,
m0
; a = m + ((a < 0) & (a ^ sign(m)))
subps
m0
,
m4
; m = m + ((a > 0) & (a ^ sign(m)))
mova
[
angq
+
cntrq
*
4
]
,
m3
mova
[
magq
+
cntrq
*
4
]
,
m0
add
cntrq
,
4
cmp
cntrq
,
block_sizeq
mova
[
angq
+
block_sizeq
]
,
m3
mova
[
magq
+
block_sizeq
]
,
m0
add
block_sizeq
,
mmsize
jl
.
loop
RET
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment