diff options
author | Brad Fitzpatrick <bradfitz@android.com> | 2011-04-11 17:27:12 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-04-11 17:27:12 -0700 |
commit | 07c25b651216daac884bd503c02b788418165b50 (patch) | |
tree | dd846a38c0ff7e8dea44dd568d34116f6f5f7f09 /services | |
parent | 1f2a307b59a6f1d61390425b52c3f0aafc21c54b (diff) | |
parent | 4430670f48f75661293371dab8db55865f5f56e0 (diff) | |
download | frameworks_base-07c25b651216daac884bd503c02b788418165b50.zip frameworks_base-07c25b651216daac884bd503c02b788418165b50.tar.gz frameworks_base-07c25b651216daac884bd503c02b788418165b50.tar.bz2 |
am 4430670f: am ca7ad44a: Merge "audioflinger: Enable ARMv5TE optimized resampler"
* commit '4430670f48f75661293371dab8db55865f5f56e0':
audioflinger: Enable ARMv5TE optimized resampler
Diffstat (limited to 'services')
-rw-r--r-- | services/audioflinger/AudioResampler.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/services/audioflinger/AudioResampler.cpp b/services/audioflinger/AudioResampler.cpp index 5c3b43fc..dca795c 100644 --- a/services/audioflinger/AudioResampler.cpp +++ b/services/audioflinger/AudioResampler.cpp @@ -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 { |