diff options
author | Mathias Agopian <mathias@google.com> | 2012-11-03 23:37:53 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-11-05 01:03:02 -0800 |
commit | a798c97386a842d06d290797ba5dce95d031332a (patch) | |
tree | 1406a215180c4350ea3646f41f93217b0aec62b0 /services/audioflinger/AudioResamplerSinc.h | |
parent | f27bdebd0c611f9618577f65346f44574146dc00 (diff) | |
download | frameworks_av-a798c97386a842d06d290797ba5dce95d031332a.zip frameworks_av-a798c97386a842d06d290797ba5dce95d031332a.tar.gz frameworks_av-a798c97386a842d06d290797ba5dce95d031332a.tar.bz2 |
improve SINC resampler performance
The improvement is about 60% by just tweaking a few
things to help the compiler generate better code.
It turns out that inlining too much stuff manually was hurting us.
Change-Id: I8068f0f75051f95ac600e50ce552572dd1e8c304
Diffstat (limited to 'services/audioflinger/AudioResamplerSinc.h')
-rw-r--r-- | services/audioflinger/AudioResamplerSinc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/AudioResamplerSinc.h b/services/audioflinger/AudioResamplerSinc.h index 48bc747..3a6e356 100644 --- a/services/audioflinger/AudioResamplerSinc.h +++ b/services/audioflinger/AudioResamplerSinc.h @@ -50,7 +50,7 @@ private: template<int CHANNELS> inline void filterCoefficient( - int32_t& l, int32_t& r, uint32_t phase, const int16_t *samples); + int32_t& l, int32_t& r, uint32_t phase, const int16_t *samples, uint32_t vRL); template<int CHANNELS> inline void interpolate( |