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

Re: Woody : problèmes avec la fonction lrint (entre autre, ttes fonctions du std C9x)



> >>Use sid/sarge.
> >>
> >>-- gotom"
> >>
> >>sur la liste debian-glibc.
> >>
> >>Quelqu'un connaît un "workaround" ?

long int lrint(double x)
{
     register double res;
     register long int res_i;

      where (x>0.0) {
           res = floor(x);
           where ( (x-res) >= 0.5 ) {
           res = res + 1.0;
           }
      } else {
           res = ceil(x);
           where ( (res-x) >= 0.5 ) {
             res = res - 1.0;
           }
     }

     res_i = res;
     return res_i;
}    

François Boisson



Reply to: