delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/08/29/15:41:32

From: Kbwms AT aol DOT com
Message-ID: <46.3d3d0349.2c810652@aol.com>
Date: Fri, 29 Aug 2003 15:41:06 EDT
Subject: Re: Arithmetic Exceptions in C99
To: djgpp-workers AT delorie DOT com
MIME-Version: 1.0
X-Mailer: 8.0 for Windows sub 6015
Reply-To: djgpp-workers AT delorie DOT com

--part1_46.3d3d0349.2c810652_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

In a message dated 8/29/2003 2:54:50 PM Eastern Standard Time, 
ams AT ludd DOT luth DOT se writes:

> >>>The math functions shouldn't raise SIGFPE unless something goes wrong.
> >> 
> >>
> >
> >By "something goes wrong", do you mean "an unreasonable argument was 
> >passed", or do you mean "a bug in the math functions caused a problem"?
> 
> I mean an unreasonable argument was passed (if passing arguments that
> causes overflow or underflow or ... is unreasonable).
> 

In this case, the affected math function sets errno to ERANGE and (possibly) 
raises an appropriate exception.  In no case should a math function issue 
SIGFPE.


KB Williams

--part1_46.3d3d0349.2c810652_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<HTML><FONT FACE=3Darial,helvetica><FONT  SIZE=3D3 FAMILY=3D"SERIF" FACE=3D"=
Georgia" LANG=3D"0">In a message dated 8/29/2003 2:54:50 PM Eastern Standard=
 Time, ams AT ludd DOT luth DOT se writes:<BR>
<BR>
<BLOCKQUOTE TYPE=3DCITE style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT=
: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px"></FONT><FONT  COLOR=3D"#000000"=
 style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2 FAMILY=3D"SANSSERIF" FACE=3D"A=
rial" LANG=3D"0">&gt;&gt;&gt;The math functions shouldn't raise SIGFPE unles=
s something goes wrong.<BR>
&gt;&gt; <BR>
&gt;&gt;<BR>
&gt;<BR>
&gt;By "something goes wrong", do you mean "an unreasonable argument was <BR=
>
&gt;passed", or do you mean "a bug in the math functions caused a problem"?<=
BR>
<BR>
I mean an unreasonable argument was passed (if passing arguments that<BR>
causes overflow or underflow or ... is unreasonable).<BR>
</BLOCKQUOTE><BR>
</FONT><FONT  COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D3=
 FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0"><BR>
In this case, the affected math function sets errno to ERANGE and (possibly)=
 raises an appropriate exception.&nbsp; In no case should a math function is=
sue SIGFPE.<BR>
<BR>
<BR>
KB Williams</FONT></HTML>

--part1_46.3d3d0349.2c810652_boundary--

- Raw text -


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