gliv-1.7.1
[gliv.git] / src / math_floats.h
blob41ac7ab4df493ac7ed026a9d1a5507e6c83bd840
1 #ifdef HAVE_CONFIG_H
2 # include "../config.h"
3 #endif
5 #include <math.h>
7 #ifndef HAVE_SQRTF
8 # define sqrtf sqrt
9 #endif
11 #ifndef HAVE_HYPOT
12 # define hypot(x, y) (sqrtf((x) * (x) + (y) * (y)))
13 #endif
15 #ifndef HAVE_HYPOTF
16 # define hypotf hypot
17 #endif
19 #ifndef HAVE_ATAN2F
20 # define atan2f atan2
21 #endif
23 #ifndef HAVE_POWF
24 # define powf pow
25 #endif
27 #ifndef HAVE_CEILF
28 # define ceilf ceil
29 #endif
31 #ifndef HAVE_COSF
32 # define cosf cos
33 #endif
35 #ifndef HAVE_SINF
36 # define sinf sin
37 #endif
39 #ifndef HAVE_ACOSF
40 # define acosf acos
41 #endif
43 #ifndef HAVE_FMODF
44 # define fmodf fmod
45 #endif
47 #ifndef HAVE_FABSF
48 # define fabsf fabs
49 #endif