mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -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>
 | 
					#include <config.h>
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <pulse/rtclock.h>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include <pulsecore/macro.h>
 | 
					#include <pulsecore/macro.h>
 | 
				
			||||||
#include <pulsecore/endianmacros.h>
 | 
					#include <pulsecore/endianmacros.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -60,6 +58,7 @@ 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) {
 | 
					static void pa_sconv_s16le_to_f32ne_neon(unsigned n, const int16_t *src, float *dst) {
 | 
				
			||||||
    unsigned i = n & 3;
 | 
					    unsigned i = n & 3;
 | 
				
			||||||
 | 
					    const float invscale = 1.0f / (1 << 15);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    __asm__ __volatile__ (
 | 
					    __asm__ __volatile__ (
 | 
				
			||||||
        "movs       %[n], %[n], lsr #2      \n\t"
 | 
					        "movs       %[n], %[n], lsr #2      \n\t"
 | 
				
			||||||
| 
						 | 
					@ -81,7 +80,6 @@ static void pa_sconv_s16le_to_f32ne_neon(unsigned n, const int16_t *src, float *
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* leftovers */
 | 
					    /* leftovers */
 | 
				
			||||||
    const float invscale = 1.0f / (1 << 15);
 | 
					 | 
				
			||||||
    while (i--) {
 | 
					    while (i--) {
 | 
				
			||||||
        *dst++ = *src++ * invscale;
 | 
					        *dst++ = *src++ * invscale;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue