This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fmax(+0,-0)


What is the goal of our fmax implementation?  Should it return +0 for
fmax(+0,-0)?  I think the current C implementation :

double
__fmax (double x, double y)
{
  return (isgreaterequal (x, y) || isnan (y)) ? x : y;
}

returns the first argument for both fmax(+0, -0) and fmax(-0,+0)
instead of +0 in both cases.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]