From: Peter Meerwald
Date: Wed, 16 Apr 2014 16:20:16 +0000 (+0200)
Subject: sconv: Cleanup ARM NEON code
X-Git-Url: https://code.delx.au/pulseaudio/commitdiff_plain/3b7504495fa58d5812a5ef16f25f3af653aac66f?hp=276364f6faff10c6ac194319ba3efed751ee7a68
sconv: Cleanup ARM NEON code
Fix compiler warning, code formatting
Signed-off-by: Peter Meerwald
---
diff --git a/src/pulsecore/sconv_neon.c b/src/pulsecore/sconv_neon.c
index 071ba855..6c2a2b3a 100644
--- a/src/pulsecore/sconv_neon.c
+++ b/src/pulsecore/sconv_neon.c
@@ -18,8 +18,6 @@
#include
#endif
-#include
-
#include
#include
@@ -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;
}