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
commit5d3370d0db4dc97fa413a302e426fb24e87462be (patch)
treeddaa49718d4c71bda6a7fe31112a9cfadb949092 /services/audioflinger/AudioResamplerSinc.h
parent3c11ff2f409a0abb5b9d8ffd5e13cc42cda67fdc (diff)
downloadframeworks_av-5d3370d0db4dc97fa413a302e426fb24e87462be.zip
frameworks_av-5d3370d0db4dc97fa413a302e426fb24e87462be.tar.gz
frameworks_av-5d3370d0db4dc97fa413a302e426fb24e87462be.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;
};