X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Finclude%2Fmath.h;h=de015c35b4bd23705d6c084f4d846aa8b34e3bc8;hb=115d5811f8b0d4c6de0412bad52dfc2df11abbb6;hp=f5f0b7099e4ada97d963abfe062e897a5ac43dcf;hpb=b701130edff0ea3adb8ecbdac46c2f8bb1b95af3;p=fw%2Fsdcc diff --git a/device/include/math.h b/device/include/math.h index f5f0b709..de015c35 100644 --- a/device/include/math.h +++ b/device/include/math.h @@ -1,6 +1,6 @@ /* math.h: Floating point math function declarations - Copyright (C) 2001 Jesus Calvino-Fraga, jesusc@ieee.org + Copyright (C) 2001 Jesus Calvino-Fraga, jesusc@ieee.org This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -21,6 +21,8 @@ #ifndef _INC_MATH #define _INC_MATH +#define HUGE_VALF 3.402823466e+38 + #define PI 3.1415926536 #define TWO_PI 6.2831853071 #define HALF_PI 1.5707963268 @@ -34,7 +36,6 @@ // EPS=2**(-12). Also define EPS2=EPS*EPS. #define EPS 244.14062E-6 #define EPS2 59.6046E-9 -#define XMAX 3.402823466E+38 union float_long { @@ -55,7 +56,7 @@ union float_long #if defined(SDCC_z80) || defined(SDCC_gbz80) #define _FLOAT_FUNC_REENTRANT #else -#define _FLOAT_FUNC_REENTRANT reentrant +#define _FLOAT_FUNC_REENTRANT __reentrant #endif /**********************************************