Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Gautam Chitnis
web-ui-redesign
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,
if
(
nb_samples
&
2
)
asm
volatile
(
"vld1.f32 {d0}, [%[inp]]!
\n
"
"vcvt.s32.f32 d
1
, d0, #28
\n
"
"vst1.s32 {d
1
}, [%[outp]]!
\n
"
"vcvt.s32.f32 d
0
, d0, #28
\n
"
"vst1.s32 {d
0
}, [%[outp]]!
\n
"
:
[
outp
]
"+r"
(
outp
),
[
inp
]
"+r"
(
inp
)
:
:
"
q
0"
,
"memory"
);
:
"
d
0"
,
"memory"
);
if
(
nb_samples
&
4
)
asm
volatile
(
"vld2.f32 {q0}, [%[inp]]!
\n
"
"vcvt.s32.f32 q
1
, q0, #28
\n
"
"vst2.s32 {q
1
}, [%[outp]]!
\n
"
"vcvt.s32.f32 q
0
, q0, #28
\n
"
"vst2.s32 {q
0
}, [%[outp]]!
\n
"
:
[
outp
]
"+r"
(
outp
),
[
inp
]
"+r"
(
inp
)
:
:
"q0"
,
"q1"
,
"memory"
);
:
"q0"
,
"memory"
);
while
(
inp
!=
endp
)
asm
volatile
(
"vld4.f32 {q0-q1}, [%[inp]]!
\n
"
"vcvt.s32.f32 q
2
, q0, #28
\n
"
"vcvt.s32.f32 q
3
, q1, #28
\n
"
"vst4.s32 {q
2
-q
3
}, [%[outp]]!
\n
"
"vcvt.s32.f32 q
0
, q0, #28
\n
"
"vcvt.s32.f32 q
1
, q1, #28
\n
"
"vst4.s32 {q
0
-q
1
}, [%[outp]]!
\n
"
:
[
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_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