Usermode/libm - Add hacky INFINITY and NAN macros
[tpg/acess2.git] / Usermode / Libraries / libm.so_src / include_exp / math.h
1 /*
2  * Acess2 C Library (Maths)
3  * - By John Hodge (thePowersGang)
4  *
5  * math.h
6  * - C99 Header
7  */
8 #ifndef _LIBM__MATH_H_
9 #define _LIBM__MATH_H_
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 typedef float   float_t;
16 typedef double  double_t;
17
18
19 #define INFINITY        (*(float*)((uint32_t[]){0x78000000}))
20 #define NAN     (*(float*)((uint32_t[]){0x78000001}))
21
22 extern double   pow(double x, double y);
23 extern double   exp(double x);
24 extern double   log(double val);
25
26 #ifdef __cplusplus
27 }
28 #endif
29
30 #endif

UCC git Repository :: git.ucc.asn.au