summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioResamplerSinc.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-11-10 04:44:30 -0800
committerMathias Agopian <mathias@google.com>2012-11-10 04:49:15 -0800
commit7492a7ff46a75b5d8e10ae11d4ad50429cf945ce (patch)
treedf55f34b9daec1a5c8b1ffb95bd08e59e8c751f5 /services/audioflinger/AudioResamplerSinc.h
parent0d585c85524eb5d398fadff5ca8dd43939ed9cb4 (diff)
downloadframeworks_av-7492a7ff46a75b5d8e10ae11d4ad50429cf945ce.zip
frameworks_av-7492a7ff46a75b5d8e10ae11d4ad50429cf945ce.tar.gz
frameworks_av-7492a7ff46a75b5d8e10ae11d4ad50429cf945ce.tar.bz2
more optimizations...
calculate the offsets from the phase differently, this happens to reduce the register pressure in the main loop, which in turns allows the compiler to generate much better code (doesn't need to spill a lot of stuff on the stack). this gives another 15% performance increase Change-Id: I2ce3479dd48b9e6941adb80e6d443d6e14d64d96
Diffstat (limited to 'services/audioflinger/AudioResamplerSinc.h')
-rw-r--r--services/audioflinger/AudioResamplerSinc.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/services/audioflinger/AudioResamplerSinc.h b/services/audioflinger/AudioResamplerSinc.h
index 96c31ee..09c6866 100644
--- a/services/audioflinger/AudioResamplerSinc.h
+++ b/services/audioflinger/AudioResamplerSinc.h
@@ -78,14 +78,11 @@ private:
static const int32_t RESAMPLE_FIR_LERP_INT_BITS = 7;
struct Constants {
- // we have 16 coefs samples per zero-crossing
int coefsBits;
int cShift;
uint32_t cMask;
-
int pShift;
uint32_t pMask;
-
// number of zero-crossing on each side
unsigned int halfNumCoefs;
};