Overview
| Artifact ID: | abc5c554804459698d3d5db6d9e53d33f5ee61b2 |
|---|---|
| Ticket: | 3105247fffffffffffffffffffffffffffffffff
-NaN? |
| User & Date: | kennykb on 2010-12-16 00:35:54 |
Changes
- icomment:
That gets really awkward really fast. Even loading a signalling NaN into a floating point register to pass it as a parameter or result value of a function causes a process crash on some platforms, so adopting a 'signalling NaN-safe' pipeline would be a lot of work (make sure all doubles that could be signalling NaNs are exchanged by pointers to the memory that stores them and operated on only by integer operations, at least until the possibility of a signal has been eliminated). Masking the exception on x86 causes the NaN silently to be converted to a quiet one when it's loaded, so passing a signalling NaN to Tcl_PrintDouble will get one of two results: a crash if the exception is unmasked, or a quiet NaN if it is masked. It seems to me that sNaN handling would yield comparatively little benefit for considerable development and maintenance cost.
- login: "kennykb"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "kennykb"