home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / acorn / tech / 1201 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  1.1 KB

  1. Path: sparky!uunet!pipex!demon!cix.compulink.co.uk!pmoore
  2. Newsgroups: comp.sys.acorn.tech
  3. From: pmoore@cix.compulink.co.uk (Paul Moore)
  4. Subject: Re: Suppressing floating point errors in C
  5. Reply-To: pmoore@cix.compulink.co.uk
  6. Date: Sat, 9 Jan 1993 10:49:00 +0000
  7. Message-ID: <memo.852505@cix.compulink.co.uk>
  8. Sender: usenet@demon.co.uk
  9. Lines: 19
  10.  
  11. mckay_g@kosmos.wcc.govt.nz ("Rob") writes (regarding my problem of being
  12. able to ignore SIGFPE in C):
  13.  
  14.   > The way I would overcome this problem is to change the FPU
  15.   > status/control register to prevent what ever type of FP
  16.   > errors you wish to ignore.
  17.  
  18. The problem is that there is a BUG in the FP emulator, which means that
  19. funny things happen when you try to work with infinity/NaN (which is what
  20. generates the SIGFPE). As a consequence, setting the FP status/control
  21. register does not work properly (in the "proper" program where I need to do
  22. this - I have not actually tried it for this test case).
  23.  
  24. I posted the FPE bug report on csa.tech, and I have sent it to Acorn, but I
  25. know of no work-around yet. (I won't re-post it here as it's long - Email me
  26. if you missed it and want to see a copy).
  27.  
  28. Gustav.
  29.  
  30.