1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00
freebsd/lib/msun
David Schultz b2d5d0b376 Define the following macros in terms of [gi]cc builtins when the
builtins are available: HUGE_VAL, HUGE_VALF, HUGE_VALL, INFINITY,
and NAN.  These macros now expand to floating-point constant
expressions rather than external references, as required by C99.
Other compilers will retain the historical behavior.  Note that
it is not possible say, e.g.
#define	HUGE_VAL	1.0e9999
because the above may result in diagnostics at translation time
and spurious exceptions at runtime.  Hence the need for compiler
support for these features.

Also use builtins to implement the macros isgreater(),
isgreaterequal(), isless(), islessequal(), islessgreater(),
and isunordered() when such builtins are available.
Although the old macros are correct, the builtin versions
are much faster, and they avoid double-expansion problems.
2004-07-09 03:31:09 +00:00
..
alpha Add an fenv.h implementation for the alpha port. All of the standard 2004-06-06 09:58:55 +00:00
amd64 Insert a missing '~' in feholdexcept(), so that it correctly clears 2004-06-11 02:35:19 +00:00
arm Add an fenv.h implementation for the arm port. 2004-06-06 10:03:59 +00:00
bsdsrc Remove some kludges designed to ensure that the compiler didn't round 2004-05-17 01:04:37 +00:00
i387 Completely remove s_ilogb.S as the assembler implementation gives very little 2004-06-20 10:42:23 +00:00
ia64 Shift the FPSR contents by the correct amount so feupdateenv() raises 2004-06-11 02:35:30 +00:00
man Add C99's nearbyint{,f}() functions as wrappers around rint(). 2004-07-06 04:46:08 +00:00
powerpc Add an fenv.h implementation for the powerpc port. 2004-06-06 10:05:10 +00:00
sparc64 Add an fenv.h implementation for the sparc64 port. 2004-06-06 10:05:57 +00:00
src Define the following macros in terms of [gi]cc builtins when the 2004-07-09 03:31:09 +00:00
Makefile Add C99's nearbyint{,f}() functions as wrappers around rint(). 2004-07-06 04:46:08 +00:00