[Cfp-interest 1430] Re: intmax_t

Jim Thomas jaswthomas at sbcglobal.net
Wed Oct 23 19:15:24 PDT 2019


A more detailed summary of the issue would be helpful. Is WG14 obsolescing intmax_t? It was particularly useful for the (u)?fromfp(x)? functions which meet the IEC60559 requirement for conversions between its floating-point formats and all integer formats.

- JIm Thomas

> On Oct 23, 2019, at 12:31 PM, Fred J. Tydeman <tydeman at tybor.com> wrote:
> 
> I think we should should get rid of intmax_t in the floating-point stuff we are doing.
> Here is one way.
> 
> 
> ---
> Fred J. Tydeman        Tydeman Consulting
> tydeman at tybor.com <mailto: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 <http://www.tybor.com/>
> Savers sleep well, investors eat well, spenders work forever.
> 
> 
> Submitter:Fred Tydeman
> Submission Date: 2019-10-zz
> Document: WG14 N23zz
> Title:N23zz: Floating-point and intmax_t
> Reference Documents:
> 
> Summary
> 
> intmax_t has been shown to not work (due to bigger types being added in the future). So uses of intmax_t in the floating-point part of C2x should be changed.
> 
> Technical Corrigendum:
> 
> In 7.12.7.2 The compoundn functions: Change "intmax_t" to "long long".
> 
> In 7.12.7.6 The pown functions: Change "intmax_t" to "long long".
> 
> In 7.12.7.8 The rootn functions: Change "intmax_t" to "long long".
> 
> In 7.12.9.10 The fromfp and ufromfp functions: Change "intmax_t" to "long long" and "uintmax_t" to "unsigned long long".
> 
> In 7.12.9.11 The fromfpx and ufromfpx functions: Change "intmax_t" to "long long" and "uintmax_t" to "unsigned long long".
> 
> _______________________________________________
> Cfp-interest mailing list
> Cfp-interest at oakapple.net <mailto:Cfp-interest at oakapple.net>
> http://mailman.oakapple.net/mailman/listinfo/cfp-interest <http://mailman.oakapple.net/mailman/listinfo/cfp-interest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.oakapple.net/pipermail/cfp-interest/attachments/20191023/ee9a8016/attachment.html 


More information about the Cfp-interest mailing list