From: John Hodge Date: Sat, 10 May 2014 09:18:31 +0000 (+0800) Subject: Usermode/libm - Add hacky INFINITY and NAN macros X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=6afcf1f9b14d9ad0111daea549cb0db5bf7f9009;hp=e419521fb536d8d8811ba5f03ee30834a6c13c87;p=tpg%2Facess2.git Usermode/libm - Add hacky INFINITY and NAN macros --- diff --git a/Usermode/Libraries/libm.so_src/include_exp/math.h b/Usermode/Libraries/libm.so_src/include_exp/math.h index d6d988f2..a8600121 100644 --- a/Usermode/Libraries/libm.so_src/include_exp/math.h +++ b/Usermode/Libraries/libm.so_src/include_exp/math.h @@ -12,6 +12,13 @@ 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);