aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-28 22:50:27 -0800
committerChris Robinson <[email protected]>2010-11-28 22:50:27 -0800
commit986628b8b202c497f876f94135d5d6b855f7541f (patch)
treed1b36afb480d174b10bdd54bb35608c6849b1314 /OpenAL32
parentda4f5c6f96b04094bf37e5c7ac393a7bfbfbb681 (diff)
Avoid temp storage
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alu.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index d3d29994..7f1cad0f 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -104,8 +104,7 @@ static __inline ALuint aluFrameSizeFromFormat(ALenum format)
static __inline ALdouble lerp(ALdouble val1, ALdouble val2, ALdouble mu)
{
- val1 += (val2-val1) * mu;
- return val1;
+ return val1 + (val2-val1)*mu;
}
static __inline ALdouble cubic(ALdouble val0, ALdouble val1, ALdouble val2, ALdouble val3, ALdouble mu)
{