Use sqrtf for single-precision square roots

This commit is contained in:
Chris Robinson
2017-06-29 10:28:37 -07:00
parent ec13cf6c9c
commit e8ce8924d1
+1 -1
View File
@@ -750,7 +750,7 @@ static inline void CalcHighpassCoeffs(const ALfloat gain, const ALfloat w, ALflo
g = maxf(0.001f, gain);
g2 = g * g;
cw = cosf(w);
p = g / (g*cw + sqrt((cw - 1.0f) * (g2*cw + g2 - 2.0f)));
p = g / (g*cw + sqrtf((cw - 1.0f) * (g2*cw + g2 - 2.0f)));
coeffs[0] = p;
coeffs[1] = -p;