X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibm.so_src%2Finclude_exp%2Fmath.h;h=a86001217923beb5097896521a208b2ed10e0e85;hb=2238e69eea50d2274553926f3f294822c1972ff0;hp=349547ed59cf2ec132cb63a0516f311f31491e5c;hpb=e5624832d0c6535be32fb0452c4ce8e8637b0ad4;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libm.so_src/include_exp/math.h b/Usermode/Libraries/libm.so_src/include_exp/math.h index 349547ed..a8600121 100644 --- a/Usermode/Libraries/libm.so_src/include_exp/math.h +++ b/Usermode/Libraries/libm.so_src/include_exp/math.h @@ -8,6 +8,23 @@ #ifndef _LIBM__MATH_H_ #define _LIBM__MATH_H_ +#ifdef __cplusplus +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); + +#ifdef __cplusplus +} +#endif #endif