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 Content-Type: multipart/alternative; boundary="part1_46.3d3d0349.2c810652_boundary" 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 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 unles= s 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"?<= BR>
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 is= sue SIGFPE.


KB Williams
--part1_46.3d3d0349.2c810652_boundary--