blob: b20e44f556a8d007375f1baaf57a3a9121f1c566 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#include "config.h"
@include "@real_header@"
@ifndef _COMPAT_MATH_H_
@define _COMPAT_MATH_H_
#if CH_FLOORF < 1
@define floorf(x) ((float)floor (x))
#endif
#if CH_CEILF < 1
@define ceilf(x) ((float)ceil (x))
#endif
#if CH_SINF < 1
@define sinf(x) ((float)sin (x))
#endif
#if CH_COSF < 1
@define cosf(x) ((float)cos (x))
#endif
#if CH_TANF < 1
@define tanf(x) ((float)tan (x))
#endif
#if CH_ASINF < 1
@define asinf(x) ((float)asin (x))
#endif
#if CH_ACOSF < 1
@define acosf(x) ((float)acos (x))
#endif
#if CH_ATANF < 1
@define atanf(x) ((float)atan (x))
#endif
#if CH_ATAN2F < 1
@define atan2f(x,y) ((float)atan2 (x, y))
#endif
#if CH_SQRTF < 1
@define sqrtf(x) ((float)sqrt (y))
#endif
@endif /* _COMPAT_MATH_H_ */
|