Regarding INFINITY and NAN:

>>> i note that there are no 32 bit equivalents
>>
>> I think this would be a great feature request (if not code contribution) -- would you be willing to open a GitHub issue requesting it, and ideally proposing symbol names / interfaces for accessing these values?
>
> Yes. But not this week. I am curious at what the discussion was on the C/C++ standard when they were discussing this when they deliberated this topic. I will see if I can find anything in their minutes. That might give us some clues as to the technical/political issues.

Hi, Damian. A member of the Chapel team happens to be the convener of the C standards committee. That's me. However, somehow I missed this mailing list until now.

In C, INFINITY and NAN are of float type (usually implemented via the IEEE 32 bit floating-point type). That was done so that they would be useful in any larger type as well. No special politics were involved; it was just easiest to define one symbol that worked in all floating-point types. The C committee may need to revisit this when the proposal for "short float" is deliberated.

                                        David

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers

Reply via email to