Searched defs:hy (Results 1 - 16 of 16) sorted by relevance

/bionic/libm/src/
H A Ds_copysign.c29 u_int32_t hx,hy; local
31 GET_HIGH_WORD(hy,y);
32 SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000));
H A Ds_nextafterf.c27 int32_t hx,hy,ix,iy; local
30 GET_FLOAT_WORD(hy,y);
32 iy = hy&0x7fffffff; /* |y| */
39 SET_FLOAT_WORD(x,(hy&0x80000000)|1);/* return +-minsubnormal */
44 if(hx>hy) { /* x > y, x -= ulp */
50 if(hy>=0||hx>hy){ /* x < y, x -= ulp */
56 hy = hx&0x7f800000;
57 if(hy>=0x7f800000) return x+x; /* overflow */
58 if(hy<
[all...]
H A De_fmodf.c34 int32_t n,hx,hy,hz,ix,iy,sx,i; local
37 GET_FLOAT_WORD(hy,y);
40 hy &= 0x7fffffff; /* |y| */
43 if(hy==0||(hx>=0x7f800000)|| /* y=0,or x not finite */
44 (hy>0x7f800000)) /* or y is NaN */
46 if(hx<hy) return x; /* |x|<|y| return x */
47 if(hx==hy)
56 if(hy<0x00800000) { /* subnormal y */
57 for (iy = -126,i=(hy<<8); i>=0; i<<=1) iy -=1;
58 } else iy = (hy>>2
[all...]
H A Ds_nextafter.c34 int32_t hx,hy,ix,iy; local
38 EXTRACT_WORDS(hy,ly,y);
40 iy = hy&0x7fffffff; /* |y| */
47 INSERT_WORDS(x,hy&0x80000000,1); /* return +-minsubnormal */
52 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */
60 if(hy>=0||hx>hy||((hx==hy)&&(lx>ly))){/* x < y, x -= ulp */
68 hy
[all...]
H A Ds_remquof.c32 int32_t n,hx,hy,hz,ix,iy,sx,i; local
36 GET_FLOAT_WORD(hy,y);
37 sxy = (hx ^ hy) & 0x80000000;
40 hy &= 0x7fffffff; /* |y| */
43 if(hy==0||hx>=0x7f800000||hy>0x7f800000) /* y=0,NaN;or x not finite */
45 if(hx<hy) {
48 } else if(hx==hy) {
59 if(hy<0x00800000) { /* subnormal y */
60 for (iy = -126,i=(hy<<
[all...]
H A De_atan2.c61 int32_t k,m,hx,hy,ix,iy; local
66 EXTRACT_WORDS(hy,ly,y);
67 iy = hy&0x7fffffff;
72 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */
84 if((ix|lx)==0) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny;
105 if(iy==0x7ff00000) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny;
H A De_atan2f.c35 int32_t k,m,hx,hy,ix,iy; local
39 GET_FLOAT_WORD(hy,y);
40 iy = hy&0x7fffffff;
45 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */
57 if(ix==0) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny;
78 if(iy==0x7f800000) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny;
H A De_fmod.c32 int32_t n,hx,hy,hz,ix,iy,sx,i; local
36 EXTRACT_WORDS(hy,ly,y);
39 hy &= 0x7fffffff; /* |y| */
42 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */
43 ((hy|((ly|-ly)>>31))>0x7ff00000)) /* or y is NaN */
45 if(hx<=hy) {
46 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */
61 if(hy<0x00100000) { /* subnormal y */
62 if(hy==0) {
65 for (iy = -1022,i=(hy<<1
[all...]
H A Ds_remquo.c32 int32_t n,hx,hy,hz,ix,iy,sx,i; local
36 EXTRACT_WORDS(hy,ly,y);
37 sxy = (hx ^ hy) & 0x80000000;
40 hy &= 0x7fffffff; /* |y| */
43 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */
44 ((hy|((ly|-ly)>>31))>0x7ff00000)) /* or y is NaN */
46 if(hx<=hy) {
47 if((hx<hy)||(lx<ly)) {
67 if(hy<0x00100000) { /* subnormal y */
68 if(hy
[all...]
H A De_exp.c149 u_int32_t hy; local
150 GET_HIGH_WORD(hy,y);
151 SET_HIGH_WORD(y,hy+(k<<20)); /* add k to y's exponent */
154 u_int32_t hy; local
155 GET_HIGH_WORD(hy,y);
156 SET_HIGH_WORD(y,hy+((k+1000)<<20)); /* add k to y's exponent */
H A De_expf.c85 u_int32_t hy; local
86 GET_FLOAT_WORD(hy,y);
87 SET_FLOAT_WORD(y,hy+(k<<23)); /* add k to y's exponent */
90 u_int32_t hy; local
91 GET_FLOAT_WORD(hy,y);
92 SET_FLOAT_WORD(y,hy+((k+100)<<23)); /* add k to y's exponent */
H A Ds_fma.c57 double c, cc, hx, hy, p, q, tx, ty; local
156 hy = ys - p;
157 hy += p;
158 ty = ys - hy;
160 p = hx * hy;
161 q = hx * ty + tx * hy;
H A Ds_fmal.c52 long double c, cc, hx, hy, p, q, tx, ty; local
151 hy = ys - p;
152 hy += p;
153 ty = ys - hy;
155 p = hx * hy;
156 q = hx * ty + tx * hy;
H A De_pow.c103 int32_t hx,hy,ix,iy; local
107 EXTRACT_WORDS(hy,ly,y);
108 ix = hx&0x7fffffff; iy = hy&0x7fffffff;
144 return (hy>=0)? y: zero;
146 return (hy<0)?-y: zero;
149 if(hy<0) return one/x; else return x;
151 if(hy==0x40000000) return x*x; /* y is 2 */
152 if(hy==0x3fe00000) { /* y is 0.5 */
163 if(hy<0) z = one/z; /* z = (1/|x|) */
189 if(ix<=0x3fefffff) return (hy<
[all...]
H A De_powf.c62 int32_t hx,hy,ix,iy,is; local
65 GET_FLOAT_WORD(hy,y);
66 ix = hx&0x7fffffff; iy = hy&0x7fffffff;
96 return (hy>=0)? y: zero;
98 return (hy<0)?-y: zero;
101 if(hy<0) return one/x; else return x;
103 if(hy==0x40000000) return x*x; /* y is 2 */
104 if(hy==0x3f000000) { /* y is 0.5 */
113 if(hy<0) z = one/z; /* z = (1/|x|) */
134 if(ix<0x3f7ffff8) return (hy<
[all...]
/bionic/libc/bionic/
H A Dldexp.c89 u_int32_t hx,hy; local
91 GET_HIGH_WORD(hy,y);
92 SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000));

Completed in 69 milliseconds