Home
last modified time | relevance | path

Searched refs:hy (Results 1 – 22 of 22) sorted by relevance

/bionic/libm/upstream-freebsd/lib/msun/src/
De_fmodf.c33 int32_t n,hx,hy,hz,ix,iy,sx,i; in __ieee754_fmodf() local
36 GET_FLOAT_WORD(hy,y); in __ieee754_fmodf()
39 hy &= 0x7fffffff; /* |y| */ in __ieee754_fmodf()
42 if(hy==0||(hx>=0x7f800000)|| /* y=0,or x not finite */ in __ieee754_fmodf()
43 (hy>0x7f800000)) /* or y is NaN */ in __ieee754_fmodf()
45 if(hx<hy) return x; /* |x|<|y| return x */ in __ieee754_fmodf()
46 if(hx==hy) in __ieee754_fmodf()
55 if(hy<0x00800000) { /* subnormal y */ in __ieee754_fmodf()
56 for (iy = -126,i=(hy<<8); i>=0; i<<=1) iy -=1; in __ieee754_fmodf()
57 } else iy = (hy>>23)-127; in __ieee754_fmodf()
[all …]
Ds_nextafterf.c26 int32_t hx,hy,ix,iy; in nextafterf() local
29 GET_FLOAT_WORD(hy,y); in nextafterf()
31 iy = hy&0x7fffffff; /* |y| */ in nextafterf()
38 SET_FLOAT_WORD(x,(hy&0x80000000)|1);/* return +-minsubnormal */ in nextafterf()
43 if(hx>hy) { /* x > y, x -= ulp */ in nextafterf()
49 if(hy>=0||hx>hy){ /* x < y, x -= ulp */ in nextafterf()
55 hy = hx&0x7f800000; in nextafterf()
56 if(hy>=0x7f800000) return x+x; /* overflow */ in nextafterf()
57 if(hy<0x00800000) { /* underflow */ in nextafterf()
Ds_remquof.c32 int32_t n,hx,hy,hz,ix,iy,sx,i; in remquof() local
36 GET_FLOAT_WORD(hy,y); in remquof()
37 sxy = (hx ^ hy) & 0x80000000; in remquof()
40 hy &= 0x7fffffff; /* |y| */ in remquof()
43 if(hy==0||hx>=0x7f800000||hy>0x7f800000) /* y=0,NaN;or x not finite */ in remquof()
45 if(hx<hy) { in remquof()
48 } else if(hx==hy) { in remquof()
59 if(hy<0x00800000) { /* subnormal y */ in remquof()
60 for (iy = -126,i=(hy<<8); i>0; i<<=1) iy -=1; in remquof()
61 } else iy = (hy>>23)-127; in remquof()
[all …]
Ds_nextafter.c32 int32_t hx,hy,ix,iy; in nextafter() local
36 EXTRACT_WORDS(hy,ly,y); in nextafter()
38 iy = hy&0x7fffffff; /* |y| */ in nextafter()
45 INSERT_WORDS(x,hy&0x80000000,1); /* return +-minsubnormal */ in nextafter()
50 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */ in nextafter()
58 if(hy>=0||hx>hy||((hx==hy)&&(lx>ly))){/* x < y, x -= ulp */ in nextafter()
66 hy = hx&0x7ff00000; in nextafter()
67 if(hy>=0x7ff00000) return x+x; /* overflow */ in nextafter()
68 if(hy<0x00100000) { /* underflow */ in nextafter()
De_fmod.c31 int32_t n,hx,hy,hz,ix,iy,sx,i; in __ieee754_fmod() local
35 EXTRACT_WORDS(hy,ly,y); in __ieee754_fmod()
38 hy &= 0x7fffffff; /* |y| */ in __ieee754_fmod()
41 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */ in __ieee754_fmod()
42 ((hy|((ly|-ly)>>31))>0x7ff00000)) /* or y is NaN */ in __ieee754_fmod()
44 if(hx<=hy) { in __ieee754_fmod()
45 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */ in __ieee754_fmod()
60 if(hy<0x00100000) { /* subnormal y */ in __ieee754_fmod()
61 if(hy==0) { in __ieee754_fmod()
64 for (iy = -1022,i=(hy<<11); i>0; i<<=1) iy -=1; in __ieee754_fmod()
[all …]
Ds_remquo.c34 int32_t n,hx,hy,hz,ix,iy,sx,i; in remquo() local
38 EXTRACT_WORDS(hy,ly,y); in remquo()
39 sxy = (hx ^ hy) & 0x80000000; in remquo()
42 hy &= 0x7fffffff; /* |y| */ in remquo()
45 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */ in remquo()
46 ((hy|((ly|-ly)>>31))>0x7ff00000)) /* or y is NaN */ in remquo()
48 if(hx<=hy) { in remquo()
49 if((hx<hy)||(lx<ly)) { in remquo()
69 if(hy<0x00100000) { /* subnormal y */ in remquo()
70 if(hy==0) { in remquo()
[all …]
Ds_cexpf.c43 uint32_t hx, hy; in cexpf() local
48 GET_FLOAT_WORD(hy, y); in cexpf()
49 hy &= 0x7fffffff; in cexpf()
52 if (hy == 0) in cexpf()
59 if (hy >= 0x7f800000) { in cexpf()
Ds_copysign.c28 u_int32_t hx,hy; in copysign() local
30 GET_HIGH_WORD(hy,y); in copysign()
31 SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000)); in copysign()
De_atan2f.c36 int32_t k,m,hx,hy,ix,iy; in __ieee754_atan2f() local
40 GET_FLOAT_WORD(hy,y); in __ieee754_atan2f()
41 iy = hy&0x7fffffff; in __ieee754_atan2f()
46 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ in __ieee754_atan2f()
58 if(ix==0) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny; in __ieee754_atan2f()
79 if(iy==0x7f800000) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny; in __ieee754_atan2f()
Ds_cexp.c43 uint32_t hx, hy, lx, ly; in cexp() local
48 EXTRACT_WORDS(hy, ly, y); in cexp()
49 hy &= 0x7fffffff; in cexp()
52 if ((hy | ly) == 0) in cexp()
59 if (hy >= 0x7ff00000) { in cexp()
De_atan2.c64 int32_t k,m,hx,hy,ix,iy; in __ieee754_atan2() local
69 EXTRACT_WORDS(hy,ly,y); in __ieee754_atan2()
70 iy = hy&0x7fffffff; in __ieee754_atan2()
75 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ in __ieee754_atan2()
87 if((ix|lx)==0) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny; in __ieee754_atan2()
108 if(iy==0x7ff00000) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny; in __ieee754_atan2()
De_pow.c102 int32_t hx,hy,ix,iy; in __ieee754_pow() local
106 EXTRACT_WORDS(hy,ly,y); in __ieee754_pow()
107 ix = hx&0x7fffffff; iy = hy&0x7fffffff; in __ieee754_pow()
146 return (hy>=0)? y: zero; in __ieee754_pow()
148 return (hy<0)?-y: zero; in __ieee754_pow()
151 if(hy<0) return one/x; else return x; in __ieee754_pow()
153 if(hy==0x40000000) return x*x; /* y is 2 */ in __ieee754_pow()
154 if(hy==0x3fe00000) { /* y is 0.5 */ in __ieee754_pow()
165 if(hy<0) z = one/z; /* z = (1/|x|) */ in __ieee754_pow()
191 if(ix<=0x3fefffff) return (hy<0)? huge*huge:tiny*tiny; in __ieee754_pow()
[all …]
De_powf.c61 int32_t hx,hy,ix,iy,is; in __ieee754_powf() local
64 GET_FLOAT_WORD(hy,y); in __ieee754_powf()
65 ix = hx&0x7fffffff; iy = hy&0x7fffffff; in __ieee754_powf()
98 return (hy>=0)? y: zero; in __ieee754_powf()
100 return (hy<0)?-y: zero; in __ieee754_powf()
103 if(hy<0) return one/x; else return x; in __ieee754_powf()
105 if(hy==0x40000000) return x*x; /* y is 2 */ in __ieee754_powf()
106 if(hy==0x3f000000) { /* y is 0.5 */ in __ieee754_powf()
115 if(hy<0) z = one/z; /* z = (1/|x|) */ in __ieee754_powf()
136 if(ix<0x3f7ffff8) return (hy<0)? sn*huge*huge:sn*tiny*tiny; in __ieee754_powf()
[all …]
Ds_csinhf.c45 int32_t hx, hy, ix, iy; in csinhf() local
51 GET_FLOAT_WORD(hy, y); in csinhf()
54 iy = 0x7fffffff & hy; in csinhf()
Ds_ccoshf.c45 int32_t hx, hy, ix, iy; in ccoshf() local
51 GET_FLOAT_WORD(hy, y); in ccoshf()
54 iy = 0x7fffffff & hy; in ccoshf()
Ds_csinh.c53 int32_t hx, hy, ix, iy, lx, ly; in csinh() local
59 EXTRACT_WORDS(hy, ly, y); in csinh()
62 iy = 0x7fffffff & hy; in csinh()
Ds_ccosh.c53 int32_t hx, hy, ix, iy, lx, ly; in ccosh() local
59 EXTRACT_WORDS(hy, ly, y); in ccosh()
62 iy = 0x7fffffff & hy; in ccosh()
De_fmodl.c69 manh_t hy; in fmodl() local
113 hy = SET_NBIT(uy.bits.manh); in fmodl()
121 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in fmodl()
129 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in fmodl()
Ds_remquol.c72 manh_t hy; in remquol() local
122 hy = SET_NBIT(uy.bits.manh); in remquol()
131 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in remquol()
136 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in remquol()
Dcatrig.c527 uint32_t hx, hy; in real_part_reciprocal() local
536 GET_HIGH_WORD(hy, y); in real_part_reciprocal()
537 iy = hy & 0x7ff00000; in real_part_reciprocal()
Dcatrigf.c317 uint32_t hx, hy; in real_part_reciprocal() local
322 GET_FLOAT_WORD(hy, y); in real_part_reciprocal()
323 iy = hy & 0x7f800000; in real_part_reciprocal()
/bionic/libc/upstream-freebsd/lib/libc/gen/
Dldexp.c90 u_int32_t hx,hy; in _copysign() local
92 GET_HIGH_WORD(hy,y); in _copysign()
93 SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000)); in _copysign()