Home | History | Annotate | Download | only in fdlibm

Lines Matching refs:hx

35 	int n,hx,hy,hz,ix,iy,sx,i;
38 hx = __HI(x); /* high word of x */
42 sx = hx&0x80000000; /* sign of x */
43 hx ^=sx; /* |x| */
47 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */
50 if(hx<=hy) {
51 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */
57 if(hx<0x00100000) { /* subnormal x */
58 if(hx==0) {
61 for (ix = -1022,i=(hx<<11); i>0; i<<=1) ix -=1;
63 } else ix = (hx>>20)-1023;
74 /* set up {hx,lx}, {hy,ly} and align y to x */
76 hx = 0x00100000|(0x000fffff&hx);
80 hx = (hx<<n)|(lx>>(32-n));
83 hx = lx<<(n-32);
103 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1;
104 if(hz<0){hx = hx+hx+(lx>>31); lx = lx+lx;}
108 hx = hz+hz+(lz>>31); lx = lz+lz;
111 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1;
112 if(hz>=0) {hx=hz;lx=lz;}
115 if((hx|lx)==0) /* return sign(x)*0 */
117 while(hx<0x00100000) { /* normalize x */
118 hx = hx+hx+(lx>>31); lx = lx+lx;
122 hx = ((hx-0x00100000)|((iy+1023)<<20));
123 __HI(x) = hx|sx;
128 lx = (lx>>n)|((unsigned)hx<<(32-n));
129 hx >>= n;
131 lx = (hx<<(32-n))|(lx>>n); hx = sx;
133 lx = hx>>(n-32); hx = sx;
135 __HI(x) = hx|sx;