* fixed GCC 4.4.0 mingw compilation:
[fw/sdcc] / device / include / math.h
index fe56342333a41bb3b281f2c8a9429f1b24272a4e..bca709035b30bbcfb2b175e8612be04bebb16f90 100644 (file)
@@ -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
 #define iTWO_PI     0.1591549431
 #define TWO_O_PI    0.6366197724
 
-// EPS=B**(-t/2), where B is the radix of the floating-point representation
-// and there are t base-B digits in the significand.  Therefore, for floats
-// EPS=2**(-12).  Also define EPS2=EPS*EPS.
+/* EPS=B**(-t/2), where B is the radix of the floating-point representation
+   and there are t base-B digits in the significand.  Therefore, for floats
+   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
 {
@@ -43,9 +44,9 @@ union float_long
 };
 
 #if defined(SDCC_MATH_LIB) && defined(SDCC_mcs51) && !defined(SDCC_USE_XSTACK) && !defined(SDCC_STACK_AUTO) && !defined(_SDCC_NO_ASM_LIB_FUNCS)
-// Compile the mcs51 assembly version only when all these
-// conditions are met.  Since not all the functions are
-// reentrant, do not compile with --stack-auto is used.
+/* Compile the mcs51 assembly version only when all these
+   conditions are met.  Since not all the functions are
+   reentrant, do not compile with --stack-auto is used. */
 #define MATH_ASM_MCS51
 #endif