Skip to content
This repository
Browse code

[rbp] fixed asm usage in AEConvert. i was told that this is NEON code.

  • Loading branch information...
commit acbfa940dc07911d1658ce16b06fa4b9e972eb35 1 parent 297988b
authored
4  xbmc/cores/AudioEngine/Utils/AEConvert.cpp
@@ -156,7 +156,7 @@ unsigned int CAEConvert::S16LE_Float(uint8_t* data, const unsigned int samples,
156 156
 {
157 157
   static const float mul = 1.0f / (INT16_MAX + 0.5f);
158 158
 
159  
-#ifdef __arm__ && !defined(TARGET_RASPBERRY_PI)
  159
+#if defined(__ARM_NEON__)
160 160
   for (unsigned int i = 0; i < samples; i++)
161 161
   {
162 162
     __asm__ __volatile__ (
@@ -187,7 +187,7 @@ unsigned int CAEConvert::S16BE_Float(uint8_t* data, const unsigned int samples,
187 187
 {
188 188
   static const float mul = 1.0f / (INT16_MAX + 0.5f);
189 189
 
190  
-#ifdef __arm__ && !defined(TARGET_RASPBERRY_PI)
  190
+#if defined(__ARM_NEON__)
191 191
   for (unsigned int i = 0; i < samples; i++)
192 192
   {
193 193
     __asm__ __volatile__ (

0 notes on commit acbfa94

Please sign in to comment.
Something went wrong with that request. Please try again.