[Cfp-interest 2652] FW: Re: GB-287

Rajan Bhakta rbhakta at us.ibm.com
Mon Jan 30 06:21:17 PST 2023


Hi Mike,

This would be a topic that it would be good to get your feedback on. It seems there are various views on whether or not hex input for strtod* functions is required by IEC 60559 or not.

Regards,

Rajan Bhakta
z/OS XL C/C++ Compiler Technical Architect
ISO C Standards Representative (Canada, USA), PL22.11 Chair
C/C++ Compiler Development
rbhakta at us.ibm.com<mailto:rbhakta at us.ibm.com>

IBM


From: Cfp-interest <cfp-interest-bounces at oakapple.net> on behalf of Jim Thomas <jaswthomas at sbcglobal.net>
Date: Monday, January 30, 2023 at 12:00 AM
To: CFP <cfp-interest at ucbtest.org>
Cc: Joseph Myers <joseph at codesourcery.com>
Subject: [EXTERNAL] [Cfp-interest 2649] Re: GB-287
IEEE 754 requires correctly rounded conversions between all supported formats (arithmetic and non-arithmetic). Adding the hexadecimal support completed the required conversions. See H.4.3 and the example in H.12.2.

- Jim Thomas

> On Jan 29, 2023, at 8:32 PM, Fred J. Tydeman <tydeman at tybor.com> wrote:
>
> On Sun, 29 Jan 2023 16:22:18 -0800 Jim Thomas wrote:
>>
>> This note suggests changes requested by WG 14 for response to NB comments GB-286 and GB-287. This note is a draft, for review and discussion at the 2023-01-31 CFP meeting.
>>
>> https://wiki.edg.com/pub/CFP/WebHome/WG14_issues_with_response_to_NB_comments-20230129.pdf
>
>
> After rereading IEEE-754-2019, I find that there is NO requirement for conversions
> between hexadecimal strings and decimal floating-point objects.
>
> Therefore, I would suggest that we leave 7.24.1.6 strtodN() family alone (hex is not valid).
> And, we change the Annex H.12.2 strtodN() family to also treat hex as invalid.
>
>
> ---
> Fred J. Tydeman        Tydeman Consulting
> tydeman at tybor.com      Testing, numerics, programming
> +1 (702) 608-6093      Vice-chair of INCITS/C (ANSI "C")
> Sample C17+FPCE tests: http://www.tybor.com
> Savers sleep well, investors eat well, spenders work forever.


_______________________________________________
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/20230130/a68a1b06/attachment.htm>


More information about the Cfp-interest mailing list