Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
fb4c212b
Commit
fb4c212b
authored
Sep 05, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce register clobber
parent
f755d520
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
modules/audio_filter/converter/neon.c
modules/audio_filter/converter/neon.c
+10
-10
No files found.
modules/audio_filter/converter/neon.c
View file @
fb4c212b
...
@@ -79,30 +79,30 @@ static void Do_F32_S32 (aout_instance_t *aout, aout_filter_t *filter,
...
@@ -79,30 +79,30 @@ static void Do_F32_S32 (aout_instance_t *aout, aout_filter_t *filter,
if
(
nb_samples
&
2
)
if
(
nb_samples
&
2
)
asm
volatile
(
asm
volatile
(
"vld1.f32 {d0}, [%[inp]]!
\n
"
"vld1.f32 {d0}, [%[inp]]!
\n
"
"vcvt.s32.f32 d
1
, d0, #28
\n
"
"vcvt.s32.f32 d
0
, d0, #28
\n
"
"vst1.s32 {d
1
}, [%[outp]]!
\n
"
"vst1.s32 {d
0
}, [%[outp]]!
\n
"
:
[
outp
]
"+r"
(
outp
),
[
inp
]
"+r"
(
inp
)
:
[
outp
]
"+r"
(
outp
),
[
inp
]
"+r"
(
inp
)
:
:
:
"
q
0"
,
"memory"
);
:
"
d
0"
,
"memory"
);
if
(
nb_samples
&
4
)
if
(
nb_samples
&
4
)
asm
volatile
(
asm
volatile
(
"vld2.f32 {q0}, [%[inp]]!
\n
"
"vld2.f32 {q0}, [%[inp]]!
\n
"
"vcvt.s32.f32 q
1
, q0, #28
\n
"
"vcvt.s32.f32 q
0
, q0, #28
\n
"
"vst2.s32 {q
1
}, [%[outp]]!
\n
"
"vst2.s32 {q
0
}, [%[outp]]!
\n
"
:
[
outp
]
"+r"
(
outp
),
[
inp
]
"+r"
(
inp
)
:
[
outp
]
"+r"
(
outp
),
[
inp
]
"+r"
(
inp
)
:
:
:
"q0"
,
"
q1"
,
"
memory"
);
:
"q0"
,
"memory"
);
while
(
inp
!=
endp
)
while
(
inp
!=
endp
)
asm
volatile
(
asm
volatile
(
"vld4.f32 {q0-q1}, [%[inp]]!
\n
"
"vld4.f32 {q0-q1}, [%[inp]]!
\n
"
"vcvt.s32.f32 q
2
, q0, #28
\n
"
"vcvt.s32.f32 q
0
, q0, #28
\n
"
"vcvt.s32.f32 q
3
, q1, #28
\n
"
"vcvt.s32.f32 q
1
, q1, #28
\n
"
"vst4.s32 {q
2-q3
}, [%[outp]]!
\n
"
"vst4.s32 {q
0-q1
}, [%[outp]]!
\n
"
:
[
outp
]
"+r"
(
outp
),
[
inp
]
"+r"
(
inp
)
:
[
outp
]
"+r"
(
outp
),
[
inp
]
"+r"
(
inp
)
:
:
:
"q0"
,
"q1"
,
"
q2"
,
"q3"
,
"
memory"
);
:
"q0"
,
"q1"
,
"memory"
);
outbuf
->
i_nb_samples
=
inbuf
->
i_nb_samples
;
outbuf
->
i_nb_samples
=
inbuf
->
i_nb_samples
;
outbuf
->
i_nb_bytes
=
inbuf
->
i_nb_bytes
;
outbuf
->
i_nb_bytes
=
inbuf
->
i_nb_bytes
;
...
...
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