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
24c0d158
Commit
24c0d158
authored
May 13, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libswresample: unaligned AVX/SSE4 float and int32 6ch pack
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
6f67d983
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
12 deletions
+31
-12
audio_convert.asm
libswresample/x86/audio_convert.asm
+31
-12
No files found.
libswresample/x86/audio_convert.asm
View file @
24c0d158
...
...
@@ -213,18 +213,34 @@ cglobal pack_6ch_%2_to_%1_%3, 2,8,7, dst, src, src1, src2, src3, src4, src5, len
mov
src5q
,
[
srcq
+
5
*
gprsize
]
mov
srcq
,
[srcq]
mov
dstq
,
[dstq]
%ifidn
%3
,
a
test
dstq
,
mmsize
-
1
jne
pack_6ch_
%2
_to_
%1
_u_int
%
+
SUFFIX
test
srcq
,
mmsize
-
1
jne
pack_6ch_
%2
_to_
%1
_u_int
%
+
SUFFIX
test
src2q
,
mmsize
-
1
jne
pack_6ch_
%2
_to_
%1
_u_int
%
+
SUFFIX
test
src3q
,
mmsize
-
1
jne
pack_6ch_
%2
_to_
%1
_u_int
%
+
SUFFIX
test
src4q
,
mmsize
-
1
jne
pack_6ch_
%2
_to_
%1
_u_int
%
+
SUFFIX
test
src5q
,
mmsize
-
1
jne
pack_6ch_
%2
_to_
%1
_u_int
%
+
SUFFIX
%else
pack_6ch_
%2
_to_
%1
_u_int
%
+
SUFFIX
%endif
sub
src1q
,
srcq
sub
src2q
,
srcq
sub
src3q
,
srcq
sub
src4q
,
srcq
sub
src5q
,
srcq
.
loop
:
mov
a
m0
,
[
srcq
]
mov
a
m1
,
[
srcq
+
src1q
]
mov
a
m2
,
[
srcq
+
src2q
]
mov
a
m3
,
[
srcq
+
src3q
]
mov
a
m4
,
[
srcq
+
src4q
]
mov
a
m5
,
[
srcq
+
src5q
]
mov
%3
m0
,
[
srcq
]
mov
%3
m1
,
[
srcq
+
src1q
]
mov
%3
m2
,
[
srcq
+
src2q
]
mov
%3
m3
,
[
srcq
+
src3q
]
mov
%3
m4
,
[
srcq
+
src4q
]
mov
%3
m5
,
[
srcq
+
src5q
]
%if
cpuflag
(
sse4
)
SBUTTERFLYPS
0
,
1
,
6
SBUTTERFLYPS
2
,
3
,
6
...
...
@@ -237,12 +253,12 @@ cglobal pack_6ch_%2_to_%1_%3, 2,8,7, dst, src, src1, src2, src3, src4, src5, len
movlhps
m1
,
m3
movhlps
m5
,
m3
mov
a
ps
[
dstq
]
,
m0
mov
a
ps
[
dstq
+
16
]
,
m6
mov
a
ps
[
dstq
+
32
]
,
m4
mov
a
ps
[
dstq
+
48
]
,
m1
mov
a
ps
[
dstq
+
64
]
,
m2
mov
a
ps
[
dstq
+
80
]
,
m5
mov
%
+
%3
%
+
ps
[
dstq
]
,
m0
mov
%
+
%3
%
+
ps
[
dstq
+
16
]
,
m6
mov
%
+
%3
%
+
ps
[
dstq
+
32
]
,
m4
mov
%
+
%3
%
+
ps
[
dstq
+
48
]
,
m1
mov
%
+
%3
%
+
ps
[
dstq
+
64
]
,
m2
mov
%
+
%3
%
+
ps
[
dstq
+
80
]
,
m5
%else
; mmx
SBUTTERFLY
dq
,
0
,
1
,
6
SBUTTERFLY
dq
,
2
,
3
,
6
...
...
@@ -268,11 +284,14 @@ cglobal pack_6ch_%2_to_%1_%3, 2,8,7, dst, src, src1, src2, src3, src4, src5, len
%endmacro
INIT_MMX
mmx
CONV_FLTP_TO_FLT_6CH
float
,
float
,
u
CONV_FLTP_TO_FLT_6CH
float
,
float
,
a
INIT_XMM
sse4
CONV_FLTP_TO_FLT_6CH
float
,
float
,
u
CONV_FLTP_TO_FLT_6CH
float
,
float
,
a
%if
HAVE_AVX
INIT_XMM
avx
CONV_FLTP_TO_FLT_6CH
float
,
float
,
u
CONV_FLTP_TO_FLT_6CH
float
,
float
,
a
%endif
...
...
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