Commit 213a685c authored by Guido van Rossum's avatar Guido van Rossum

Move backup definition for hypot() to Python/hypot.c.

parent ace527cb
......@@ -43,33 +43,6 @@ extern double modf PROTO((double, double *));
#endif /* _MSC_VER */
#if defined(HAVE_HYPOT)
#ifndef _MSC_VER
extern double hypot PROTO((double, double));
#endif
#else
double hypot(x,y)
double x;
double y;
{
double yx;
x = fabs(x);
y = fabs(y);
if (x < y) {
double temp = x;
x = y;
y = temp;
}
if (x == 0.)
return 0.;
else {
yx = y/x;
return x*sqrt(1.+yx*yx);
}
}
#endif
#ifdef i860
/* Cray APP has bogus definition of HUGE_VAL in <math.h> */
#undef HUGE_VAL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment