From bbb45e326c049aef5b4d7e86021f365d206d8bb3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 21 Nov 2010 03:58:37 -0800 Subject: Avoid temporary float variables --- Alc/mixer.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Alc/mixer.c') diff --git a/Alc/mixer.c b/Alc/mixer.c index a3349993..092c01e2 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -45,12 +45,13 @@ static __inline ALfloat point32(ALfloat val1, ALfloat val2, ALint frac) } static __inline ALfloat lerp32(ALfloat val1, ALfloat val2, ALint frac) { - return val1 + ((val2-val1)*(frac * (1.0f/(1<