2 * ====================================================
3 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
5 * Developed at SunPro, a Sun Microsystems, Inc. business.
6 * Permission to use, copy, modify, and distribute this
7 * software is freely granted, provided that this notice
9 * ====================================================
17 #include "math_private.h"
19 double hypot(double x, double y)/* wrapper hypot */
22 return __ieee754_hypot(x,y);
25 z = __ieee754_hypot(x,y);
26 if(_LIB_VERSION == _IEEE_) return z;
27 if((!isfinite(z))&&isfinite(x)&&isfinite(y))
28 return __kernel_standard(x,y,4); /* hypot overflow */
33 libm_hidden_def(hypot)