diff options
author | Chris Robinson <[email protected]> | 2011-09-24 12:17:39 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-24 12:17:39 -0700 |
commit | cf56b0733b86019631c4b877ece6bcceb3b2b50a (patch) | |
tree | be8ecd14048eeafed8a1c0d493f840ba4329a0ae /OpenAL32/Include | |
parent | 2b0a63003fca82f1bc5d1e36cf44d0018dc1b257 (diff) |
Look for and use atan2f, log10f, and floorf
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alu.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index b6924908..e8ac64fd 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -64,12 +64,30 @@ #define aluAtan(x) ((ALfloat)atan((double)(x))) #endif +#ifdef HAVE_ATAN2F +#define aluAtan2(x,y) (atan2f((x),(y))) +#else +#define aluAtan2(x,y) ((ALfloat)atan2((double)(x),(double)(y))) +#endif + #ifdef HAVE_FABSF #define aluFabs(x) (fabsf((x))) #else #define aluFabs(x) ((ALfloat)fabs((double)(x))) #endif +#ifdef HAVE_LOG10F +#define aluLog10(x) (log10f((x))) +#else +#define aluLog10(x) ((ALfloat)log10((double)(x))) +#endif + +#ifdef HAVE_FLOORF +#define aluFloor(x) (floorf((x))) +#else +#define aluFloor(x) ((ALfloat)floor((double)(x))) +#endif + #define QUADRANT_NUM 128 #define LUT_NUM (4 * QUADRANT_NUM) |