Janet,

I have experienced many situations that resulted in divide by zero. I have
never had the floating point operation (itself) cause the system to hang. It
simply returns a result of "nan". But often they way MY code reacts to a
returned "nan" has caused system hang-up (insert embarrassed smirk here).

         Todd Gearheart
   Software Engineer Dept 041
   FlightSafety International
   Simulation Systems Division 
 [EMAIL PROTECTED]
         (316) 612-5356

 -----Original Message-----
From:   Estabridis, Janet P [mailto:[EMAIL PROTECTED]] 
Sent:   Tuesday, October 02, 2001 10:05 PM
To:     'Norm Dresner '; '[EMAIL PROTECTED] '; Estabridis, Janet P
Subject:        RE: [rtl] More questions about floating point

 I'll be waiting.  Maybe you can answer this for me.  Does the system hang
or crash if you do get an overflow on a divide ?  I am experiencing some
problems and I'm trying to track it down.  I am not always sure my numbers
will be well bounded when I do the operations (coordinate translation and
rotation) due to the fact that I am receiving the data via a remote site.  

Janet

-----Original Message-----
From: Norm Dresner
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: 10/2/01 4:55 PM
Subject: Re: [rtl] More questions about floating point

I assume we're talking about x86 architecture.  What you
want to do is to read the status register of the FPU.  IIRC
there are FPU-instructions for doing just that.
Unfortunately I don't know the linux assembler well enough
to come up with a Q&D means of doing that but hopefully one
of the gurus will jump in and save the day.

    Norm

----- Original Message -----
From: Estabridis, Janet P <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 4:49 PM
Subject: [rtl] More questions about floating point


> Hi,
>
> Can you check for a floating point overflow if you are
using floating point
> in a kernel thread ?
>
> Janet Estabridis
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail
[EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
>
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to