Home
last modified time | relevance | path

Searched refs:lx (Results 1 – 25 of 34) sorted by relevance

12

/bionic/libm/upstream-freebsd/lib/msun/src/
De_fmod.c32 u_int32_t lx,ly,lz; in __ieee754_fmod() local
34 EXTRACT_WORDS(hx,lx,x); in __ieee754_fmod()
45 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */ in __ieee754_fmod()
46 if(lx==ly) in __ieee754_fmod()
53 for (ix = -1043, i=lx; i>0; i<<=1) ix -=1; in __ieee754_fmod()
74 hx = (hx<<n)|(lx>>(32-n)); in __ieee754_fmod()
75 lx <<= n; in __ieee754_fmod()
77 hx = lx<<(n-32); in __ieee754_fmod()
78 lx = 0; in __ieee754_fmod()
97 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in __ieee754_fmod()
[all …]
Ds_nextafter.c33 u_int32_t lx,ly; in nextafter() local
35 EXTRACT_WORDS(hx,lx,x); in nextafter()
40 if(((ix>=0x7ff00000)&&((ix-0x7ff00000)|lx)!=0) || /* x is nan */ in nextafter()
44 if((ix|lx)==0) { /* x == 0 */ in nextafter()
50 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */ in nextafter()
51 if(lx==0) hx -= 1; in nextafter()
52 lx -= 1; in nextafter()
54 lx += 1; in nextafter()
55 if(lx==0) hx += 1; in nextafter()
58 if(hy>=0||hx>hy||((hx==hy)&&(lx>ly))){/* x < y, x -= ulp */ in nextafter()
[all …]
Ds_remquo.c35 u_int32_t lx,ly,lz,q,sxy; in remquo() local
37 EXTRACT_WORDS(hx,lx,x); in remquo()
49 if((hx<hy)||(lx<ly)) { in remquo()
53 if(lx==ly) { in remquo()
62 for (ix = -1043, i=lx; i>0; i<<=1) ix -=1; in remquo()
83 hx = (hx<<n)|(lx>>(32-n)); in remquo()
84 lx <<= n; in remquo()
86 hx = lx<<(n-32); in remquo()
87 lx = 0; in remquo()
107 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in remquo()
[all …]
Ds_ilogb.c30 int32_t hx,lx,ix; in ilogb() local
32 EXTRACT_WORDS(hx,lx,x); in ilogb()
35 if((hx|lx)==0) in ilogb()
39 for (ix = -1043; lx>0; lx<<=1) ix -=1; in ilogb()
46 else if (hx>0x7ff00000 || lx!=0) return FP_ILOGBNAN; in ilogb()
Ds_nexttoward.c38 u_int32_t lx; in nexttoward() local
40 EXTRACT_WORDS(hx,lx,x); in nexttoward()
44 if(((ix>=0x7ff00000)&&((ix-0x7ff00000)|lx)!=0) || in nexttoward()
55 if(lx==0) hx -= 1; in nexttoward()
56 lx -= 1; in nexttoward()
58 lx += 1; in nexttoward()
59 if(lx==0) hx += 1; in nexttoward()
66 INSERT_WORDS(x,hx,lx); in nexttoward()
70 INSERT_WORDS(x,hx,lx); in nexttoward()
De_fmodl.c70 manl_t lx,ly,lz; in fmodl() local
114 lx = ux.bits.manl; in fmodl()
121 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in fmodl()
122 if(hz<0){hx = hx+hx+(lx>>MANL_SHIFT); lx = lx+lx;} in fmodl()
126 hx = hz+hz+(lz>>MANL_SHIFT); lx = lz+lz; in fmodl()
129 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in fmodl()
130 if(hz>=0) {hx=hz;lx=lz;} in fmodl()
133 if((hx|lx)==0) /* return sign(x)*0 */ in fmodl()
136 hx = hx+hx+(lx>>MANL_SHIFT); lx = lx+lx; in fmodl()
140 ux.bits.manl = lx; in fmodl()
Ds_remquol.c73 manl_t lx,ly,lz; in remquol() local
123 lx = ux.bits.manl; in remquol()
131 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in remquol()
132 if(hz<0){hx = hx+hx+(lx>>MANL_SHIFT); lx = lx+lx;} in remquol()
133 else {hx = hz+hz+(lz>>MANL_SHIFT); lx = lz+lz; q++;} in remquol()
136 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in remquol()
137 if(hz>=0) {hx=hz;lx=lz;q++;} in remquol()
140 if((hx|lx)==0) { /* return sign(x)*0 */ in remquol()
146 hx = hx+hx+(lx>>MANL_SHIFT); lx = lx+lx; in remquol()
150 ux.bits.manl = lx; in remquol()
De_atan2.c65 u_int32_t lx,ly; in __ieee754_atan2() local
67 EXTRACT_WORDS(hx,lx,x); in __ieee754_atan2()
71 if(((ix|((lx|-lx)>>31))>0x7ff00000)|| in __ieee754_atan2()
74 if((hx-0x3ff00000|lx)==0) return atan(y); /* x=1.0 */ in __ieee754_atan2()
87 if((ix|lx)==0) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny; in __ieee754_atan2()
De_atanh.c49 u_int32_t lx; in __ieee754_atanh() local
50 EXTRACT_WORDS(hx,lx,x); in __ieee754_atanh()
52 if ((ix|((lx|(-lx))>>31))>0x3ff00000) /* |x|>1 */ in __ieee754_atanh()
Ds_logb.c33 int32_t lx,ix; in logb() local
34 EXTRACT_WORDS(ix,lx,x); in logb()
36 if((ix|lx)==0) return -1.0/fabs(x); in logb()
Ds_frexp.c37 int32_t hx, ix, lx; in frexp() local
38 EXTRACT_WORDS(hx,lx,x); in frexp()
41 if(ix>=0x7ff00000||((ix|lx)==0)) return x; /* 0,inf,nan */ in frexp()
Ds_cexp.c43 uint32_t hx, hy, lx, ly; in cexp() local
54 EXTRACT_WORDS(hx, lx, x); in cexp()
56 if (((hx & 0x7fffffff) | lx) == 0) in cexp()
60 if (lx != 0 || (hx & 0x7fffffff) != 0x7ff00000) { in cexp()
De_acosh.c46 u_int32_t lx; in __ieee754_acosh() local
47 EXTRACT_WORDS(hx,lx,x); in __ieee754_acosh()
55 } else if(((hx-0x3ff00000)|lx)==0) { in __ieee754_acosh()
De_log2.c46 u_int32_t lx; in __ieee754_log2() local
48 EXTRACT_WORDS(hx,lx,x); in __ieee754_log2()
52 if (((hx&0x7fffffff)|lx)==0) in __ieee754_log2()
59 if (hx == 0x3ff00000 && lx == 0) in __ieee754_log2()
De_jn.c58 int32_t i,hx,ix,lx, sgn; in __ieee754_jn() local
65 EXTRACT_WORDS(hx,lx,x); in __ieee754_jn()
68 if((ix|((u_int32_t)(lx|-lx))>>31)>0x7ff00000) return x+x; in __ieee754_jn()
78 if((ix|lx)==0||ix>=0x7ff00000) /* if x is 0 or inf */ in __ieee754_jn()
219 int32_t i,hx,ix,lx; in __ieee754_yn() local
223 EXTRACT_WORDS(hx,lx,x); in __ieee754_yn()
226 if((ix|((u_int32_t)(lx|-lx))>>31)>0x7ff00000) return x+x; in __ieee754_yn()
228 if((ix|lx)==0) return -one/vzero; in __ieee754_yn()
De_log10.c46 u_int32_t lx; in __ieee754_log10() local
48 EXTRACT_WORDS(hx,lx,x); in __ieee754_log10()
52 if (((hx&0x7fffffff)|lx)==0) in __ieee754_log10()
59 if (hx == 0x3ff00000 && lx == 0) in __ieee754_log10()
Ds_scalbn.c39 int32_t k,hx,lx; in scalbn() local
40 EXTRACT_WORDS(hx,lx,x); in scalbn()
43 if ((lx|(hx&0x7fffffff))==0) return x; /* +-0 */ in scalbn()
De_remainder.c38 u_int32_t sx,lx,lp; in __ieee754_remainder() local
41 EXTRACT_WORDS(hx,lx,x); in __ieee754_remainder()
56 if (((hx-hp)|(lx-lp))==0) return zero*x; in __ieee754_remainder()
Ds_ccosh.c53 int32_t hx, hy, ix, iy, lx, ly; in ccosh() local
58 EXTRACT_WORDS(hx, lx, x); in ccosh()
97 if ((ix | lx) == 0) /* && iy >= 0x7ff00000 */ in ccosh()
130 if (ix == 0x7ff00000 && lx == 0) { in ccosh()
Ds_csinh.c53 int32_t hx, hy, ix, iy, lx, ly; in csinh() local
58 EXTRACT_WORDS(hx, lx, x); in csinh()
96 if ((ix | lx) == 0) /* && iy >= 0x7ff00000 */ in csinh()
129 if (ix == 0x7ff00000 && lx == 0) { in csinh()
Ds_exp2.c345 uint32_t hx, ix, lx, i0; in exp2() local
353 GET_LOW_WORD(lx,x); in exp2()
354 if(((ix & 0xfffff) | lx) != 0 || (hx & 0x80000000) == 0) in exp2()
Ds_ctanh.c79 uint32_t hx, ix, lx; in ctanh() local
84 EXTRACT_WORDS(hx, lx, x); in ctanh()
104 if ((ix & 0xfffff) | lx) /* x is NaN */ in ctanh()
De_exp.c118 u_int32_t lx; in __ieee754_exp() local
119 GET_LOW_WORD(lx,x); in __ieee754_exp()
120 if(((hx&0xfffff)|lx)!=0) in __ieee754_exp()
/bionic/libm/upstream-freebsd/lib/msun/ld128/
Ds_logl.c457 uint64_t lx, llx; in k_logl() local
461 EXTRACT_LDBL128_WORDS(hx, lx, llx, x); in k_logl()
468 if (((hx & 0x7fff) | lx | llx) == 0) in k_logl()
474 EXTRACT_LDBL128_WORDS(hx, lx, llx, x); in k_logl()
489 i = (lx + (1LL << (L2I - 2))) >> (L2I - 1); in k_logl()
520 INSERT_LDBL128_WORDS(x_hi, 0x3fff, lx, in k_logl()
569 uint64_t lx, llx; in log1pl() local
574 EXTRACT_LDBL128_WORDS(hx, lx, llx, x); in log1pl()
578 if (ax == 0x3fff && (lx | llx) == 0) in log1pl()
602 EXTRACT_LDBL128_WORDS(hx, lx, llx, x); in log1pl()
[all …]
/bionic/libc/upstream-freebsd/lib/libc/gen/
Dldexp.c100 int32_t k,hx,lx; in ldexp() local
101 EXTRACT_WORDS(hx,lx,x); in ldexp()
104 if ((lx|(hx&0x7fffffff))==0) return x; /* +-0 */ in ldexp()

12