1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- fpclassify() now returns FP_ZERO both for 0 and -0.

- nan() and nanf() now return quiet NaNs.

- Added internal __inf() and __inff() functions.

- strtof() now calls nanf() and __inff(), respectively, to produce
  the special floating point values for nan/inf/infinity.

- strtod() now calls nan() and __inf(), respectively, to produce
  the special floating point values for nan/inf/infinity.

- The scanf() family now calls nan() and __inf(), respectively, to
  produce the special floating point values for nan/inf/infinity.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14948 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-05-14 10:52:31 +00:00
parent feb29fa334
commit fa31c468dc
13 changed files with 178 additions and 62 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: math_nan.c,v 1.1 2005-05-08 08:51:29 obarthel Exp $
* $Id: math_nan.c,v 1.2 2005-05-14 10:52:31 obarthel Exp $
*
* :ts=4
*
@ -51,8 +51,8 @@ nan(const char * UNUSED tagp)
{
union ieee_double x;
/* Exponent = 2047 and fraction != 0.0 */
x.raw[0] = 0x7ff00000;
/* Exponent = 2047 and fraction != 0.0; this must be a quiet nan. */
x.raw[0] = 0x7ff80000;
x.raw[1] = 0x00000001;
return(x.value);