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:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: math_nanf.c,v 1.1 2005-05-08 08:51:29 obarthel Exp $
|
||||
* $Id: math_nanf.c,v 1.2 2005-05-14 10:52:31 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -51,8 +51,8 @@ nanf(const char * UNUSED tagp)
|
||||
{
|
||||
union ieee_single x;
|
||||
|
||||
/* Exponent = 255 and fraction != 0.0 */
|
||||
x.raw[0] = 0x7f800001;
|
||||
/* Exponent = 255 and fraction != 0.0; this must be a quiet nan. */
|
||||
x.raw[0] = 0x7fc00001;
|
||||
|
||||
return(x.value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user