aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-22 01:00:44 -0700
committerChris Robinson <[email protected]>2011-09-22 01:00:44 -0700
commita4b1239f45daa29bb423077da60804d7bf9287eb (patch)
tree0a9f7025fe1d298f5de58fde0836af9541c3ed01 /OpenAL32
parent43350f9066f0c28ac8ff6269783db222508dec45 (diff)
Use cosf and sinf when available
Also clear away a few more MSVC precision warnings
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alu.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index 216c2e14..5a222b47 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -31,6 +31,18 @@
#define aluSqrt(x) ((ALfloat)sqrt((double)(x)))
#endif
+#ifdef HAVE_COSF
+#define aluCos(x) (cosf((x)))
+#else
+#define aluCos(x) ((ALfloat)cos((double)(x)))
+#endif
+
+#ifdef HAVE_SINF
+#define aluSin(x) (sinf((x)))
+#else
+#define aluSin(x) ((ALfloat)sin((double)(x)))
+#endif
+
#ifdef HAVE_ACOSF
#define aluAcos(x) (acosf((x)))
#else