[Cfp-interest] WG14 IEEE 754-C binding meeting minutes 2017/02/28

Jim Thomas jaswthomas at sbcglobal.net
Fri Mar 3 21:10:54 PST 2017


Inline comments below …

Jim

> On Mar 3, 2017, at 11:04 AM, Fred J. Tydeman <tydeman at tybor.com> wrote:
> 
> On Tue, 28 Feb 2017 12:35:31 -0600 Rajan Bhakta wrote:
>> 
>>       *Fred: Propose adding in #pragma STDC FENV_ROUND DEFAULT as a 
>> means to set the static rounding mode to the default rounding mode.
> 
> Attached is a first pass.
> 
> 
> 
> ---
> Fred J. Tydeman        Tydeman Consulting
> tydeman at tybor.com      Testing, numerics, programming
> +1 (702) 608-6093      Vice-chair of PL22.11 (ANSI "C")
> Sample C99+FPCE tests: http://www.tybor.com
> Savers sleep well, investors eat well, spenders work forever.
> 
> 
> Submitter:Fred J. Tydeman
> Submission Date:2017-03-03
> Document: WG14 N21zz
> 
> Problem being solved
> 
> C11 makes several references to "default rounding mode". Yet, there is no symbol for that mode. Also, the default rounding mode need not be FE_TONEAREST (for example, IBM S/360 hex floating-point is FE_TOWARDZERO).
> 
> 
Consider changing the last sentence above to something like:

Although FE_TONEAREST represents the default rounding mode for IEC 60559 implementations, other implementations may have different defaults (for example, IBM S/360 hex floating-point is represented by FE_TOWARDZERO).
> Solution
> 
> In 7.6 paragraph 8, change
> 
> Each of the macros
> 
> 
> FE_DOWNWARD
> FE_TONEAREST
> FE_TOWARDZERO
> FE_UPWARD
> 
> to:
> Each of the macros
> 
> 
> FE_DOWNWARD
> FE_TONEAREST
> FE_TOWARDZERO
> FE_UPWARD
> FE_DEFAULT
> 
> and change:
> 
> The defined macros expand to integer constant expressions whose values are distinct nonnegative values.211)
> 
> to:
> 
> The defined macros (except for FE_DEFAULT) expand to integer constant expressions whose values are distinct nonnegative values.211) FE_DEFAULT expands to a value of one of the other FE_* macros and is the default rounding mode.
> 
> Add FE_DEFAULT to B.5 after FE_TONEAREST.
> 
> Add FE_DEFAULT to F.3 item about fegetround before FE_TONEAREST.
> 
> 
Consider appending to the same bullet in F.3:

	FE_DEFAULT expands to the value of FE_TONEAREST.
> Add FE_DEFAULT macro, 7.6 to the index.
> 
> _______________________________________________
> Cfp-interest mailing list
> Cfp-interest at oakapple.net
> http://mailman.oakapple.net/mailman/listinfo/cfp-interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.oakapple.net/pipermail/cfp-interest/attachments/20170303/d23bea64/attachment.html 


More information about the Cfp-interest mailing list