diff options
author | Chris Robinson <[email protected]> | 2017-06-29 10:28:37 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-06-29 10:28:37 -0700 |
commit | e8ce8924d179d515fe1439163b7ea73e895f408c (patch) | |
tree | 4070315d863903cd06299bc8bfe8b1ab2b5a49df /Alc/effects | |
parent | ec13cf6c9cefa709db9fb9099e3ce5f502931161 (diff) |
Use sqrtf for single-precision square roots
Diffstat (limited to 'Alc/effects')
-rw-r--r-- | Alc/effects/reverb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index 44174b75..867abbcc 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -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; |