Lines Matching defs:hx
31 int32_t n,hx,hy,hz,ix,iy,sx,i;
34 EXTRACT_WORDS(hx,lx,x);
36 sx = hx&0x80000000; /* sign of x */
37 hx ^=sx; /* |x| */
41 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */
44 if(hx<=hy) {
45 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */
51 if(hx<0x00100000) { /* subnormal x */
52 if(hx==0) {
55 for (ix = -1022,i=(hx<<11); i>0; i<<=1) ix -=1;
57 } else ix = (hx>>20)-1023;
68 /* set up {hx,lx}, {hy,ly} and align y to x */
70 hx = 0x00100000|(0x000fffff&hx);
74 hx = (hx<<n)|(lx>>(32-n));
77 hx = lx<<(n-32);
97 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1;
98 if(hz<0){hx = hx+hx+(lx>>31); lx = lx+lx;}
102 hx = hz+hz+(lz>>31); lx = lz+lz;
105 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1;
106 if(hz>=0) {hx=hz;lx=lz;}
109 if((hx|lx)==0) /* return sign(x)*0 */
111 while(hx<0x00100000) { /* normalize x */
112 hx = hx+hx+(lx>>31); lx = lx+lx;
116 hx = ((hx-0x00100000)|((iy+1023)<<20));
117 INSERT_WORDS(x,hx|sx,lx);
121 lx = (lx>>n)|((u_int32_t)hx<<(32-n));
122 hx >>= n;
124 lx = (hx<<(32-n))|(lx>>n); hx = sx;
126 lx = hx>>(n-32); hx = sx;
128 INSERT_WORDS(x,hx|sx,lx);