nice find
proposed descriptions for getpayload[fl]() setpayload[fl]()
setpayloadsig[fl]() are in
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1664.pdf
as a bonus these functions provide a way to create a nan without resorting
to strtod("nan",0)
i.e., exactly what ast need because it provides strtod() sfscanf() etc.
this is what i was anticipating in the ast nan payload patch

the only disconnect is that the api deals with floating payloads but
describes the payloads themselves as non-negative integers
I guess they do this in case the largest payload value is greater than the
largest native integer


On Thu, Nov 21, 2013 at 6:57 AM, Cedric Blancher
<cedric.blanc...@gmail.com>wrote:

>
> http://webcache.googleusercontent.com/search?q=cache:ysNpbShMwdwJ:www.open-std.org/jtc1/sc22/wg14/www/docs/n1755.pdf+&cd=40&hl=de&ct=clnk&gl=de
> has an interesting comment about Nan payloads:
>
> In added F.10.13, insert the paragraph:
> IEC 60559 defines the payload of a quiet or signaling
> NaN as an integer value encoded in the significand.
> The payload is intended to represent implementation-
> defined diagnostic information about the NaN. The
> functions in this clause enable getting and setting
> payloads.
>
> Does anyone know how the set/get functions are named and how they work?
>
> Ced
> --
> Cedric Blancher <cedric.blanc...@gmail.com>
> Institute Pasteur
>
_______________________________________________
ast-developers mailing list
ast-developers@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to