repo.or.cz
/
gliv.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
gliv-1.7.1
[gliv.git]
/
src
/
math_floats.h
blob
41ac7ab4df493ac7ed026a9d1a5507e6c83bd840
1
#ifdef HAVE_CONFIG_H
2
# include
"../config.h"
3
#endif
4
5
#include <math.h>
6
7
#ifndef HAVE_SQRTF
8
# define sqrtf sqrt
9
#endif
10
11
#ifndef HAVE_HYPOT
12
# define hypot(x, y) (sqrtf((x) * (x) + (y) * (y)))
13
#endif
14
15
#ifndef HAVE_HYPOTF
16
# define hypotf hypot
17
#endif
18
19
#ifndef HAVE_ATAN2F
20
# define atan2f atan2
21
#endif
22
23
#ifndef HAVE_POWF
24
# define powf pow
25
#endif
26
27
#ifndef HAVE_CEILF
28
# define ceilf ceil
29
#endif
30
31
#ifndef HAVE_COSF
32
# define cosf cos
33
#endif
34
35
#ifndef HAVE_SINF
36
# define sinf sin
37
#endif
38
39
#ifndef HAVE_ACOSF
40
# define acosf acos
41
#endif
42
43
#ifndef HAVE_FMODF
44
# define fmodf fmod
45
#endif
46
47
#ifndef HAVE_FABSF
48
# define fabsf fabs
49
#endif