Permalink
Browse files

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

  • Loading branch information...
1 parent 297988b commit acbfa940dc07911d1658ce16b06fa4b9e972eb35 huceke committed Aug 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/cores/AudioEngine/Utils/AEConvert.cpp
View
4 xbmc/cores/AudioEngine/Utils/AEConvert.cpp
@@ -156,7 +156,7 @@ unsigned int CAEConvert::S16LE_Float(uint8_t* data, const unsigned int samples,
{
static const float mul = 1.0f / (INT16_MAX + 0.5f);
-#ifdef __arm__ && !defined(TARGET_RASPBERRY_PI)
+#if defined(__ARM_NEON__)
for (unsigned int i = 0; i < samples; i++)
{
__asm__ __volatile__ (
@@ -187,7 +187,7 @@ unsigned int CAEConvert::S16BE_Float(uint8_t* data, const unsigned int samples,
{
static const float mul = 1.0f / (INT16_MAX + 0.5f);
-#ifdef __arm__ && !defined(TARGET_RASPBERRY_PI)
+#if defined(__ARM_NEON__)
for (unsigned int i = 0; i < samples; i++)
{
__asm__ __volatile__ (

0 comments on commit acbfa94

Please sign in to comment.