From: Raymond Hettinger Date: Mon, 27 Aug 2018 00:38:31 +0000 (-0500) Subject: Fast path for exact floats in math.hypot() and math.dist() (GH-8949) X-Git-Tag: v3.8.0a1~1151 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74734f73ca3cdb48d4d51139512b6828c2734252;p=thirdparty%2FPython%2Fcpython.git Fast path for exact floats in math.hypot() and math.dist() (GH-8949) --- diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 2d483afff54d..62d327998fd1 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -2134,14 +2134,22 @@ math_dist_impl(PyObject *module, PyObject *p, PyObject *q) } for (i=0 ; i