Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
b1a87e00
Commit
b1a87e00
authored
Sep 06, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize a little bit more
parent
1c8f5cc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
modules/audio_filter/converter/neon.c
modules/audio_filter/converter/neon.c
+15
-2
No files found.
modules/audio_filter/converter/neon.c
View file @
b1a87e00
...
...
@@ -173,15 +173,28 @@ static void Do_S32_S16 (aout_instance_t *aout, aout_filter_t *filter,
:
:
"q0"
,
"memory"
);
if
(
nb_samples
&
8
)
asm
volatile
(
"vld1.s32 {q0-q1}, [%[inp]]!
\n
"
"vrshrn.i32 d0, q0, #13
\n
"
"vrshrn.i32 d1, q1, #13
\n
"
"vst1.s16 {q0}, [%[outp]]!
\n
"
:
[
outp
]
"+r"
(
outp
),
[
inp
]
"+r"
(
inp
)
:
:
"q0"
,
"q1"
,
"memory"
);
while
(
inp
!=
endp
)
asm
volatile
(
"vld1.s32 {q0-q1}, [%[inp]]!
\n
"
"vld1.s32 {q2-q3}, [%[inp]]!
\n
"
"vrshrn.s32 d0, q0, #13
\n
"
"vrshrn.s32 d1, q1, #13
\n
"
"vst1.s16 {q0}, [%[outp]]!
\n
"
"vrshrn.s32 d2, q2, #13
\n
"
"vrshrn.s32 d3, q3, #13
\n
"
"vst1.s16 {q0-q1}, [%[outp]]!
\n
"
:
[
outp
]
"+r"
(
outp
),
[
inp
]
"+r"
(
inp
)
:
:
"q0"
,
"q1"
,
"memory"
);
:
"q0"
,
"q1"
,
"
q2"
,
"q3"
,
"
memory"
);
outbuf
->
i_nb_samples
=
inbuf
->
i_nb_samples
;
outbuf
->
i_nb_bytes
=
inbuf
->
i_nb_bytes
/
2
;
...
...
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