Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a648ad3 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "audioflinger: Enable ARMv5TE optimized resampler" into gingerbread

parents 67c5713e bef0f630
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -26,11 +26,15 @@
#include "AudioResamplerSinc.h"
#include "AudioResamplerCubic.h"

#ifdef __arm__
#include <machine/cpu-features.h>
#endif

namespace android {

#ifdef __ARM_ARCH_5E__  // optimized asm option
#ifdef __ARM_HAVE_HALFWORD_MULTIPLY // optimized asm option
    #define ASM_ARM_RESAMP1 // enable asm optimisation for ResamplerOrder1
#endif // __ARM_ARCH_5E__
#endif // __ARM_HAVE_HALFWORD_MULTIPLY
// ----------------------------------------------------------------------------

class AudioResamplerOrder1 : public AudioResampler {