Overview
| Artifact ID: | af8002c914554a98b3e3b8550ede40e9fd338966 |
|---|---|
| Ticket: | 2797112fffffffffffffffffffffffffffffffff
float point underflow exception at initialization |
| User & Date: | kennykb on 2009-06-29 23:18:30 |
Changes
- closedate changed to: "2009-06-29T16:18:30"
- closer changed to: "kennykb"
- icomment:
Configuring the hardware to throw exceptions on floating point underflow and floating point denormalization is quite a weird thing to do. If you're going to ask Common Lisp not to catch them, you really ought to be asking the hardware not to throw them. Tcl presumes that the hardware floating point exceptions are masked (and that Inf, -Inf, 0, -0, denormals, and NaN result from exceptional conditions as appropriate). If someone else changes the floating point exception mask, that's bound to lead to trouble. The only alternative from Tcl's standpoint would be to save, set and restore the exception mask around every operation that might throw a floating point exception. (This is essentially all floating point operations, since 'imprecise' can be thrown at practically any time.) Far better would be for the inter-language interface code to do the _controlfp or _FPU_GETCW/_FPU_SETCW to set the masks as required. I've never seen anyone set 'underflow is an error' intentionally. It's that strange.
- login: "kennykb"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Pending"
- username: "kennykb"