Thread View: comp.sys.acorn.tech
1 messages
1 total messages
Started by Paul Moore
Sat, 09 Jan 1993 10:49
Re: Suppressing floating point errors in C
Author: Paul Moore
Date: Sat, 09 Jan 1993 10:49
Date: Sat, 09 Jan 1993 10:49
18 lines
1191 bytes
1191 bytes
mckay_g@kosmos.wcc.govt.nz ("Rob") writes (regarding my problem of being
able to ignore SIGFPE in C):
> The way I would overcome this problem is to change the FPU
> status/control register to prevent what ever type of FP
> errors you wish to ignore.
The problem is that there is a BUG in the FP emulator, which means that
funny things happen when you try to work with infinity/NaN (which is what
generates the SIGFPE). As a consequence, setting the FP status/control
register does not work properly (in the "proper" program where I need to do
this - I have not actually tried it for this test case).
I posted the FPE bug report on csa.tech, and I have sent it to Acorn, but I
know of no work-around yet. (I won't re-post it here as it's long - Email me
if you missed it and want to see a copy).
Gustav.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads