diff options
Diffstat (limited to 'Python/hypot.c')
-rw-r--r-- | Python/hypot.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Python/hypot.c b/Python/hypot.c deleted file mode 100644 index a18ce16..0000000 --- a/Python/hypot.c +++ /dev/null @@ -1,25 +0,0 @@ -/* hypot() replacement */ - -#include "Python.h" - -#ifndef HAVE_HYPOT -double hypot(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 /* HAVE_HYPOT */ - |