Email List: Xaustin-review-lX
[All Lists]

Re: Defect in XBD math.h

To: yyyyy@xxxxxxxxxx
Subject: Re: Defect in XBD math.h
From: Nick Stoughton <yyyy@xxxxxxxxxx>
Date: 07 Feb 2003 12:58:48 -0800
Cc: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
References: <200302072022.UAA13719@xxxxxx>
I believe the standard phrasing is
"Inclusion of the <math.h> header may also make visible all symbols from
<limits.h>."

On Fri, 2003-02-07 at 12:22, yyyyy@xxxxxxxxxx wrote:
>       Defect report from : Mark Brown , IBM
> 
> (Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)
> 
> @ page 264 line 9407 section math.h editorial {IBM-020701}
> 
> Problem:
> 
> Defect code :  1. Error
> 
> The spec states the following:
> 
> "The following macros shall expand to integer constant expressions
> whose values are returned by ilogb (x) if x is zero or NaN,
> respectively. The value of FP_ILOGB0 shall be either {INT_MIN}
> or -{INT_MAX}. The value of FP_ILOGBNAN shall be either {INT_MAX}
> or {INT_MIN}."
> 
> Normally, a statement like; " <math.h> may make symbols from <limits.h> 
>visible"  is included in the description to allow required definitions to be 
>visible. But for math.h this was not done, so INT_MIN and INT_MAX are not 
>defined in math.h.
> 
> Action:
> 
> add "<math.h> may make symbols from <limits.h> visible" in the description 
>for math.h, say after line 9417.


<Prev in Thread] Current Thread [Next in Thread>