No casting and call lower precision trigonometric functions:

* 2.2% AEC overall speedup for the straight C path.
* 2.4% AEC overall speedup for the SSE2 path.
Review URL: https://webrtc-codereview.appspot.com/477002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1989 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
cd@webrtc.org 2012-04-05 00:38:55 +00:00
parent f3dc22f7d1
commit 70ed0a6f91

View File

@ -1227,8 +1227,8 @@ static void ComfortNoise(aec_t *aec, float efw[2][PART_LEN1],
tmp = pi2 * rand[i - 1];
noise = sqrtf(noisePow[i]);
u[i][0] = noise * (float)cos(tmp);
u[i][1] = -noise * (float)sin(tmp);
u[i][0] = noise * cosf(tmp);
u[i][1] = -noise * sinf(tmp);
}
u[PART_LEN][1] = 0;