I'm aware of NaN payload but have not seen C code that
* has MIN/MAX macros for the min/max payload value for a give FP type
* sets a NaN value with a specific payload
* extracts a payload from a NaN
are there standard api's for this?
for the casual reader, comparisons on NaN are unordered:
f = NaN;
f == f => false
f != f => false
so almost all post-facto ops on NaNs are NaN-specific functions
On Tue, 3 Sep 2013 02:50:31 +0200 Tina Harriott wrote:
> I'm currently looking into a complex mathematical simulation (fluid
> dynamics) and found references to NaN (Not A Number) with payloads.
> The Nan values are used to represent 'no data' in the datasets and the
> payloads are used for context information. The code has almost 2
> million lines of code and removing the feature would be a major
> effort.
> As we are in the process of using ksh93 as "interface" to the
> simulation using libshell we need access to Nan values and their
> payloads.
> Can anyone give an estimate how hard it would be to add support for
> Nan payloads to ksh93?
> Tina
> --
> Tina Harriott - Women in Mathematics
> Contact: [email protected]
> _______________________________________________
> ast-users mailing list
> [email protected]
> http://lists.research.att.com/mailman/listinfo/ast-users
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users