OSSP CVS Repository

ossp - Check-in [5506]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 5506
Date: 2006-Jul-23 14:16:31 (local)
2006-Jul-23 12:16:31 (UTC)
User:rse
Branch:
Comment: try to fix fdlibm fiddling
Tickets:
Inspections:
Files:
ossp-pkg/js/src/jslibmath.h      1.2 -> 1.3     20 inserted, 1 deleted

ossp-pkg/js/src/jslibmath.h 1.2 -> 1.3

--- jslibmath.h  2006/07/22 14:14:11     1.2
+++ jslibmath.h  2006/07/23 12:16:31     1.3
@@ -85,7 +85,7 @@
 
 #ifdef OSSP
 #undef JS_USE_FDLIBM_MATH
-#if defined(__Linux__) || defined(__sun) || defined(__FreeBSD__)
+#if defined(__FreeBSD__)
 #define JS_USE_FDLIBM_MATH 0
 #else
 #define JS_USE_FDLIBM_MATH 1
@@ -117,6 +117,25 @@
 
 #else
 
+#ifdef OSSP
+#define fd_acos     js_fd_acos
+#define fd_asin     js_fd_asin
+#define fd_atan     js_fd_atan
+#define fd_atan2    js_fd_atan2
+#define fd_ceil     js_fd_ceil
+#define fd_copysign js_fd_copysign
+#define fd_cos      js_fd_cos
+#define fd_exp      js_fd_exp
+#define fd_fabs     js_fd_fabs
+#define fd_floor    js_fd_floor
+#define fd_fmod     js_fd_fmod
+#define fd_log      js_fd_log
+#define fd_pow      js_fd_pow
+#define fd_sin      js_fd_sin
+#define fd_sqrt     js_fd_sqrt
+#define fd_tan      js_fd_tan
+#endif
+
 /*
  * Use math routines in fdlibm.
  */

CVSTrac 2.0.1