Usermode/libm - Add hacky INFINITY and NAN macros
[tpg/acess2.git] / Usermode / Libraries / libm.so_src / include_exp / math.h
index d6d988f..a860012 100644 (file)
 extern "C" {
 #endif
 
+typedef float  float_t;
+typedef double double_t;
+
+
+#define INFINITY       (*(float*)((uint32_t[]){0x78000000}))
+#define NAN    (*(float*)((uint32_t[]){0x78000001}))
+
 extern double  pow(double x, double y);
 extern double  exp(double x);
 extern double  log(double val);

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