Usermode/libm - Add hacky INFINITY and NAN macros
authorJohn Hodge <[email protected]>
Sat, 10 May 2014 09:18:31 +0000 (17:18 +0800)
committerJohn Hodge <[email protected]>
Sat, 10 May 2014 09:18:31 +0000 (17:18 +0800)
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