Lines Matching +full:- +full:a

6  * Developed at SunPro, a Sun Microsystems, Inc. business.
16 * If (assume round-to-nearest) z=x*x+y*y
24 * (if possible, set rounding to round-to-nearest)
27 * where x1 = x with lower 32 bits cleared, x2 = x-x1; else
29 * t1*yy1+((x-y)*(x-y)+(t1*y2+t2*y))
30 * where t1 = 2x with lower 32 bits cleared, t2 = 2x-t1,
31 * yy1= y with lower 32 bits chopped, y2 = y-yy1.
37 * hypot(x,y) is INF if x or y is +INF or -INF; else
50 long double a,b,t1,t2,yy1,y2,w; in hypotl() local
57 if(eb > ea) {a=y;b=x;j=ea; ea=eb;eb=j;} else {a=x;b=y;} in hypotl()
58 SET_LDOUBLE_EXP(a,ea); /* a <- |a| */ in hypotl()
59 SET_LDOUBLE_EXP(b,eb); /* b <- |b| */ in hypotl()
60 if((ea-eb)>0x46) {return a+b;} /* x/y > 2**70 */ in hypotl()
62 if(ea > 0x5f3f) { /* a>2**8000 */ in hypotl()
65 w = a+b; /* for sNaN */ in hypotl()
66 GET_LDOUBLE_WORDS(es,high,low,a); in hypotl()
69 w = a; in hypotl()
71 if(((eb^0x7fff)|(high&0x7fffffff)|low)==0 && !issignalingl_inline(a)) in hypotl()
75 /* scale a and b by 2**-9600 */ in hypotl()
76 ea -= 0x2580; eb -= 0x2580; k += 9600; in hypotl()
77 SET_LDOUBLE_EXP(a,ea); in hypotl()
80 if(eb < 0x20bf) { /* b < 2**-8000 */ in hypotl()
85 if((high|low)==0) return a; in hypotl()
88 a *= t1; in hypotl()
89 k -= 16382; in hypotl()
90 } else { /* scale a and b by 2^9600 */ in hypotl()
91 ea += 0x2580; /* a *= 2^9600 */ in hypotl()
93 k -= 9600; in hypotl()
94 SET_LDOUBLE_EXP(a,ea); in hypotl()
98 /* medium size a and b */ in hypotl()
99 w = a-b; in hypotl()
102 GET_LDOUBLE_MSW(high,a); in hypotl()
104 t2 = a-t1; in hypotl()
105 w = sqrtl(t1*t1-(b*(-b)-t2*(a+t1))); in hypotl()
109 a = a+a; in hypotl()
111 y2 = b - yy1; in hypotl()
112 GET_LDOUBLE_MSW(high,a); in hypotl()
114 t2 = a - t1; in hypotl()
115 w = sqrtl(t1*yy1-(w*(-w)-(t1*y2+t2*b))); in hypotl()