[Cfp-interest 2283] Re: nextup/nextdown and HUGE_VAL definition

David Chen dave.h.chen at gmail.com
Mon Nov 22 11:16:46 PST 2021


Section 5.3.1. of IEEE 754-2019 states "nextUp(x) is quiet except for
signaling NaNs".  If we follow that, no overflow in any cases.


On Mon, Nov 22, 2021 at 10:47 AM Fred J. Tydeman <tydeman at tybor.com> wrote:

> On Mon, 22 Nov 2021 10:06:22 -0800 Jim Thomas wrote:
> >
> >Reword the specification of the nextup and nextdown functions to not
> refer to the HUGE_VAL macros, along the lines Vincent suggested. For
> example,
> >
> >Replace
> >
> >       nextup(HUGE_VAL) is HUGE_VAL,
> >
> >with
> >
> >       If x is the maximum number in the type, nextup(x) is x.
> >
>
> So, on systems without infinity, since there is no next higher number
> than the maximum finite number, should that be an overflow?
> If not, than it would help to add "(without overflow)" at the end of
> what you suggest.
>
> ---
> 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.
>
> _______________________________________________
> Cfp-interest mailing list
> Cfp-interest at oakapple.net
> http://mailman.oakapple.net/mailman/listinfo/cfp-interest
>


-- 
Best Regards,
David.

****Email Disclaimer*: This email is intended only for addressee(s), may be
confidential or proprietary, and may constitute inside information that is
protected from disclosure under law. If you are not the intended recipient,
you are hereby notified not to read, disclose, distribute or otherwise use
this email.  If you are not the intended recipient, please inform the
sender by reply email and destroy all copies of the original message.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.oakapple.net/pipermail/cfp-interest/attachments/20211122/0d6cdba4/attachment.htm>


More information about the Cfp-interest mailing list