From 7492a7ff46a75b5d8e10ae11d4ad50429cf945ce Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Sat, 10 Nov 2012 04:44:30 -0800 Subject: 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 --- services/audioflinger/AudioResamplerSinc.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'services/audioflinger/AudioResamplerSinc.h') 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; }; -- cgit v1.1