bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gsl] typo in ieee-utils/fp-darwin.c ?


From: Brian Gough
Subject: Re: [Bug-gsl] typo in ieee-utils/fp-darwin.c ?
Date: Tue, 18 Oct 2005 17:13:01 +0100

Fran├žois-Xavier Coudert writes:

 > I'm working on IEEE exceptions support in gfortran (the new GNU
 > Fortran compiler), and I was looking at the IEEE code for ppc-darwin
 > in gsl-1.7. I was puzzled by the following piece of code:
 > 
 >   if (exception_mask & GSL_IEEE_TRAP_INEXACT)
 >     {
 >       fp_scr.xe = 1 ;                           //xe bit:  inexact
 > exception enable
 >     }
 >   else
 >     {
 >       fp_scr.xe = 1 ;
 >     }
 > 
 > I think this is a typo (the second case should be "fp_scr.xe = 0").

Thanks for the bug report, the code does look wrong.

-- 
Brian Gough

Network Theory Ltd,
Publishing Free Software Manuals --- http://www.network-theory.co.uk/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]