source: trunk/src/emx/include/float.h@ 2172

Last change on this file since 2172 was 2013, checked in by bird, 21 years ago

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.

  • Property cvs2svn:cvs-rev set to 1.6
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 3.3 KB
RevLine 
[1506]1/* float.h,v 1.5 2004/09/14 22:27:33 bird Exp */
2/** @file
[2013]3 * EMX + GCC + Some FreeBSD Bits.
[1506]4 *
5 * @remark Must be used instead of the GCC one.
[394]6 */
[18]7
8#ifndef _FLOAT_H
9#define _FLOAT_H
10
[1506]11#include <sys/cdefs.h>
[18]12
[2013]13__BEGIN_DECLS
14extern int __flt_rounds(void);
15__END_DECLS
[1506]16
[394]17#define FLT_RADIX 2 /* b */
[2013]18#define FLT_ROUNDS __flt_rounds()
19
[394]20#define FLT_EVAL_METHOD (-1) /* i387 semantics are...interesting */
21#define DECIMAL_DIG 21 /* max precision in decimal digits */
[18]22
[394]