9 #define F_PI (3.14159265358979323846f)
10 #define F_PI_2 (1.57079632679489661923f)
11 #define F_TAU (6.28318530717958647692f)
14 #define FLT_EPSILON (1.19209290e-07f)
18 static const union msvc_inf_hack
{
21 } msvc_inf_union
= {{ 0x00, 0x00, 0x80, 0x7F }};
22 #define HUGE_VALF (msvc_inf_union.f)
26 static inline float log2f(float f
)
28 return logf(f
) / logf(2.0f
);
32 #define DEG2RAD(x) ((float)(x) * (F_PI/180.0f))
33 #define RAD2DEG(x) ((float)(x) * (180.0f/F_PI))
35 #endif /* AL_MATH_DEFS_H */