Mail Archives: djgpp-workers/2003/08/29/15:41:32
--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">>>>The math functions shouldn't raise SIGFPE unles=
s something goes wrong.<BR>
>> <BR>
>><BR>
><BR>
>By "something goes wrong", do you mean "an unreasonable argument was <BR=
>
>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. In no case should a math function is=
sue SIGFPE.<BR>
<BR>
<BR>
KB Williams</FONT></HTML>
--part1_46.3d3d0349.2c810652_boundary--
- Raw text -