Update OpenAL Soft to 1.19.1.

This commit is contained in:
Alex Szpakowski
2018-12-31 15:47:52 -04:00
parent f06a3bc791
commit 1f9c102832
87 changed files with 4678 additions and 2971 deletions
+21 -2
View File
@@ -18,6 +18,12 @@
#define FLT_EPSILON (1.19209290e-07f)
#endif
#define SQRT_2 1.41421356237309504880
#define SQRT_3 1.73205080756887719318
#define SQRTF_2 1.41421356237309504880f
#define SQRTF_3 1.73205080756887719318f
#ifndef HUGE_VALF
static const union msvc_inf_hack {
unsigned char b[4];
@@ -40,7 +46,20 @@ static inline float cbrtf(float f)
}
#endif
#define DEG2RAD(x) ((float)(x) * (F_PI/180.0f))
#define RAD2DEG(x) ((float)(x) * (180.0f/F_PI))
#ifndef HAVE_COPYSIGNF
static inline float copysignf(float x, float y)
{
union {
float f;
unsigned int u;
} ux = { x }, uy = { y };
ux.u &= 0x7fffffffu;
ux.u |= (uy.u&0x80000000u);
return ux.f;
}
#endif
#define DEG2RAD(x) ((float)(x) * (float)(M_PI/180.0))
#define RAD2DEG(x) ((float)(x) * (float)(180.0/M_PI))
#endif /* AL_MATH_DEFS_H */