mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
sconv: Cleanup ARM NEON code
Fix compiler warning, code formatting Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
276364f6fa
commit
3b7504495f
1 changed files with 2 additions and 4 deletions
|
|
@ -18,8 +18,6 @@
|
|||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <pulse/rtclock.h>
|
||||
|
||||
#include <pulsecore/macro.h>
|
||||
#include <pulsecore/endianmacros.h>
|
||||
|
||||
|
|
@ -60,9 +58,10 @@ static void pa_sconv_s16le_from_f32ne_neon(unsigned n, const float *src, int16_t
|
|||
|
||||
static void pa_sconv_s16le_to_f32ne_neon(unsigned n, const int16_t *src, float *dst) {
|
||||
unsigned i = n & 3;
|
||||
const float invscale = 1.0f / (1 << 15);
|
||||
|
||||
__asm__ __volatile__ (
|
||||
"movs %[n], %[n], lsr #2 \n\t"
|
||||
"movs %[n], %[n], lsr #2 \n\t"
|
||||
"beq 2f \n\t"
|
||||
|
||||
"1: \n\t"
|
||||
|
|
@ -81,7 +80,6 @@ static void pa_sconv_s16le_to_f32ne_neon(unsigned n, const int16_t *src, float *
|
|||
);
|
||||
|
||||
/* leftovers */
|
||||
const float invscale = 1.0f / (1 << 15);
|
||||
while (i--) {
|
||||
*dst++ = *src++ * invscale;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue