aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-03-07 22:12:33 -0800
committerChris Robinson <[email protected]>2010-03-07 22:12:33 -0800
commit1f10195c47f9747dcd262879c84e614ae3d33cab (patch)
tree994bc40bb7d499d36b475ed680cc4891bde37188 /OpenAL32
parentdc40702b53dbc1599fd7bea7c83104fddd336f10 (diff)
Use powf when available
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index eedf10d9..a4e0930c 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -15,6 +15,12 @@
#define M_PI_2 1.57079632679489661923 /* pi/2 */
#endif
+#ifdef HAVE_POWF
+#define aluPow(x,y) ((ALfloat)powf((float)(x),(float)(y)))
+#else
+#define aluPow(x,y) ((ALfloat)pow((double)(x),(double)(y)))
+#endif
+
#ifdef HAVE_SQRTF
#define aluSqrt(x) ((ALfloat)sqrtf((float)(x)))
#else