www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/16/17:00:34

From: korpela AT islay DOT ssl DOT berkeley DOT edu (Eric J. Korpela)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Q: detecting valid floating point numbers?
Date: 10 Dec 1996 20:02:18 GMT
Organization: Cal Berkeley-- Space Sciences Lab
Lines: 19
Message-ID: <58kfka$5r1@agate.berkeley.edu>
References: <58gvqc$26p AT newsfeed DOT cs DOT auc DOT dk>
NNTP-Posting-Host: islay.ssl.berkeley.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <58gvqc$26p AT newsfeed DOT cs DOT auc DOT dk>,
Frank Frederiksen <ff AT kom DOT auc DOT dk> wrote:
>In our research project we are transmitting some floating point
>numbers over a radio channel (the position of a mobile transmitter).
>
>Our problem is that we sometimes get bit errors, i.e., some of the
>bits in the numbers are wrong. When we analyze the data, we then
>sometimes get a 'exiting due to SIGFPE' followed by a stack trace.

The first thing to do if you want to avoid the aborts is to use
_control87 to set the exception mask to avoid such exits.  (The
other option is to use a signal handler to fix the exception.)

Eric
-- 
Eric Korpela                        |  An object at rest can never be
korpela AT ssl DOT berkeley DOT edu            |  stopped.
<a href="http://www.cs.indiana.edu/finger/mofo.ssl.berkeley.edu/korpela/w">
Click here for more info.</a>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019