Ignore:
Timestamp:
Jun 12, 2005, 7:33:38 AM (20 years ago)
Author:
bird
Message:

o The smallcnv stuff is gone, waste of space since we're not really into

static linking. Should've done this when switching to gdtoa.

o Ported the msun and some other math bits from current FreeBSD libc.

This mostly replaces the EMX math, except for some double long variants
and some EMX specific ones. This is a risky change, but it's needed
if we're gonna catch up on the C99 bits and make libstdc++ happy.
There are some new headers, complex.h and fenv.h being the importan ones.
float.h have gotten some updates while math.h is totally replaced.
More than 100 standard functions were added!
NOTE: msun is using MATH_ERREXCEPT (math_errhandling) and not

MATH_ERRNO for error reporting.

I really hope this is not gonna uncover more OS/2 387 mess.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/float.h

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r2012 r2013  
    11/* float.h,v 1.5 2004/09/14 22:27:33 bird Exp */
    22/** @file
    3  * EMX + GCC
     3 * EMX + GCC + Some FreeBSD Bits.
    44 *
    55 * @remark Must be used instead of the GCC one.
     
    1111#include <sys/cdefs.h>
    1212
     13__BEGIN_DECLS
     14extern int __flt_rounds(void);
     15__END_DECLS
    1316
    1417#define FLT_RADIX       2               /* b */
    15 #define FLT_ROUNDS      1               /* FP addition rounds to nearest */
     18#define FLT_ROUNDS      __flt_rounds()
     19
    1620#define FLT_EVAL_METHOD (-1)            /* i387 semantics are...interesting */
    1721#define DECIMAL_DIG     21              /* max precision in decimal digits */
     
    6771#if !defined (__STRICT_ANSI__) && !defined (_POSIX_SOURCE) || defined(__USE_EMX)
    6872
    69 #define M_E             2.71828182845904523536
    70 #define M_LOG2E         1.44269504088896340736
    71 #define M_LOG10E        0.434294481903251827651
    72 #define M_LN2           0.693147180559945309422
    73 #define M_LN10          2.302585092994045684018
    74 
    75 #define M_PI            3.14159265358979323846
    76 #define M_PI_2          1.57079632679489661923
    77 #define M_PI_4          0.785398163397448309616
    78 #define M_1_PI          0.318309886183790671538
    79 #define M_2_PI          0.636619772367581343076
    80 #define M_2_SQRTPI      1.12837916709551257390
    81 
    82 #define M_SQRT2         1.41421356237309504880
    83 #define M_SQRT1_2       0.707106781186547524401
    84 
    8573#if !defined (_OMIT_387_STUFF)
    8674
Note: See TracChangeset for help on using the changeset viewer.