floating point control in extensions
Robin Becker
robin at jessikat.fsnet.co.uk
Mon Jul 14 04:03:19 EDT 2003
In article <mailman.1058119520.21914.python-list at python.org>, Tim Peters
<tim.one at comcast.net> writes
......
>Python itself assumes that no-stop mode is in effect (the IEEE-754 mandated
>default: all FPU traps are disabled).
>
....
That at least makes resetting easy when one can do it.
I guessed all Python floating point ops are tested either pre or post
for the correct outcome, but then I tried
>>> a=1e290
>>> a
1.0000000000000001e+290
>>> a*a1.#INF
>>>
so I suppose only the obvious things are tested.
-it's hard being an fpu'ly yrs-
Robin Becker
More information about the Python-list
mailing list