From: Guido van Rossum Date: Thu, 29 Aug 1996 18:13:16 +0000 (+0000) Subject: Move backup definition for hypot() to Python/hypot.c. X-Git-Tag: v1.4~327 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=213a685cd8ad210a7873544084b747f408e83921;p=thirdparty%2FPython%2Fcpython.git Move backup definition for hypot() to Python/hypot.c. --- diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 4ebb26e45e75..12effa5f46f1 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -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 */ #undef HUGE_VAL