# HG changeset patch # User alexc # Date 1235613000 0 # Node ID 0cffed11ee331740143c5a77a294890812b7ab24 # Parent 9653d4585183db6c309ae74d51ed52f307609a33 Use const to better allow the compiler to optimize AAC independent coupling. diff -r 9653d4585183 -r 0cffed11ee33 aac.c --- a/aac.c Thu Feb 26 01:38:51 2009 +0000 +++ b/aac.c Thu Feb 26 01:50:00 2009 +0000 @@ -1456,8 +1456,13 @@ */ static void apply_independent_coupling(AACContext * ac, SingleChannelElement * target, ChannelElement * cce, int index) { int i; + const float gain = cce->coup.gain[index][0]; + const float bias = ac->add_bias; + const float* src = cce->ch[0].ret; + float* dest = target->ret; + for (i = 0; i < 1024; i++) - target->ret[i] += cce->coup.gain[index][0] * (cce->ch[0].ret[i] - ac->add_bias); + dest[i] += gain * (src[i] - bias); } /**