Commit Graph

24 Commits

Author SHA1 Message Date
simonb 2d8577fb83 Clean up some rampant code duplication wrt ieee number handling:
- Add alignment-safe double and float unions.
 - Use the above for the __infinity and __nan constants on all
   architectures that use the standard ieee754 representation of
   those constants.
 - Add a single copy of various ieee754 math functions (frexp, isinf,
   isnan, ldexp and modf) that had numerous duplicates among the
   arch-specific directories.
 - Use the above functions on all architectures where the generic C
   versions where used.  Architectures that had local assembly
   routines are untouched (for those functions only).
2002-02-19 13:08:12 +00:00
christos eedd4b5634 protect the incomplete cabs declarations with #ifndef __MATH_PRIVATE__ so that
the code that defines the functions can declare them properly.
2001-01-05 23:36:38 +00:00
simonb 3f935d014c Remove 'extern' from function declarations. 2000-06-13 01:21:52 +00:00
kleink 693059feda const -> __const and include <sys/cdefs.h> earlier; fixes PR lib/9052
by Takahiro Kambe.
2000-01-04 14:20:05 +00:00
kleink 11e6c54cfc C99: Define a NAN macro in <math.h> which evaulates to a constant expression of
a single-precision quiet NaN; only to be defined on platforms that do support
this value.
1999-12-23 10:15:05 +00:00
kleink 2977ab90fe Add missing isinff() declaration. 1999-08-16 18:57:57 +00:00
christos a776f4ee44 This file has still missing prototypes: cabs and cabsf... At least comment
what the arguments should be.
1999-01-31 19:32:26 +00:00
christos e6bf91675e s/void/const void/ 1998-11-15 16:51:45 +00:00
christos 186efef26d cast to void * first to avoid lint warning. 1998-11-15 15:57:25 +00:00
kleink 02a4a2105b Oops, isinf() was never included in any X/Open interface specification. 1998-09-07 15:00:05 +00:00
mycroft 982e920022 const poisoning. 1998-07-26 14:13:00 +00:00
kleink fbfd5f44f3 Fix comment typo in previous. 1998-05-11 11:06:23 +00:00
kleink ac3781ec96 Reorganize name space protection. 1998-05-07 18:50:08 +00:00
tv 12c753dbfe C++ has a very different concept of "exception." Delimit struct exception
and matherr() with #ifndef __cplusplus.
1998-04-08 23:42:59 +00:00
cgd 4d2cbfce0a new RCS ID format. 1994-10-26 00:55:40 +00:00
jtc b6e27e8793 Added prototypes for float versions of math functions.
Removed prototypes for internal functions.
1994-08-10 20:48:16 +00:00
jtc 29576d7ee9 Add cabs() and drem(), for BSD libm compatibility. 1994-03-01 17:16:19 +00:00
cgd 358113c8d4 Add missing _. reported by several folks. 1994-02-14 02:11:39 +00:00
jtc f3a958ae63 New math.h, based on fdlibm's fdlibm.h. 1994-02-11 18:36:42 +00:00
jtc 3088508ccf Moved definition of M_FOO constants into !_ANSI_SOURCE && !_POSIX_SOURCE
conditional.
1993-10-11 18:13:24 +00:00
jtc 91d4aa53f0 Use __pure qualifier. 1993-08-04 17:24:44 +00:00
cgd 4cbf5e04e2 update for better FP routines, from AT&T & elsewhere 1993-07-09 09:39:13 +00:00
cgd e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00