Home
last modified time | relevance | path

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

12

/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld128/
De_fmodl.c27 u_int64_t lx,ly,lz; in fmodl() local
29 GET_LDOUBLE_WORDS64(hx,lx,x); in fmodl()
45 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */ in fmodl()
46 if(lx==ly) in fmodl()
53 for (ix = -16431, i=lx; i>0; i<<=1) ix -=1; in fmodl()
74 hx = (hx<<n)|(lx>>(64-n)); in fmodl()
75 lx <<= n; in fmodl()
77 hx = lx<<(n-64); in fmodl()
78 lx = 0; in fmodl()
97 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in fmodl()
[all …]
Ds_nextafterl.c26 u_int64_t lx,ly; in nextafterl() local
28 GET_LDOUBLE_WORDS64(hx,lx,x); in nextafterl()
33 if(((ix>=0x7fff000000000000LL)&&((ix-0x7fff000000000000LL)|lx)!=0) || /* x is nan */ in nextafterl()
37 if((ix|lx)==0) { /* x == 0 */ in nextafterl()
43 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */ in nextafterl()
44 if(lx==0) hx--; in nextafterl()
45 lx--; in nextafterl()
47 lx++; in nextafterl()
48 if(lx==0) hx++; in nextafterl()
51 if(hy>=0||hx>hy||((hx==hy)&&(lx>ly))){/* x < y, x -= ulp */ in nextafterl()
[all …]
Ds_nexttoward.c27 u_int32_t lx; in nexttoward64() local
30 EXTRACT_WORDS(hx,lx,x); in nexttoward64()
35 if((ix>=0x7ff00000)&&((ix-0x7ff00000)|lx)!=0) { /* x is nan */ in nexttoward64()
43 if((ix|lx)==0) { /* x == 0 */ in nexttoward64()
50 if(lx==0) hx -= 1; in nexttoward64()
51 lx -= 1; in nexttoward64()
53 lx += 1; in nexttoward64()
54 if(lx==0) hx += 1; in nexttoward64()
58 if(lx==0) hx -= 1; in nexttoward64()
59 lx -= 1; in nexttoward64()
[all …]
Ds_remquol.c54 uint64_t lx,ly,lz; in remquol() local
58 GET_LDOUBLE_WORDS64(hx,lx,x); in remquol()
64 SET_LDOUBLE_WORDS64(x,hx,lx); in remquol()
77 lx<ly))) { in remquol()
82 lx==ly) { in remquol()
91 GET_LDOUBLE_WORDS64(hx,lx,x); in remquol()
115 hz=_hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in remquol()
116 if(hz<0){_hx = _hx+_hx+(lx>>MANL_SHIFT); lx = lx+lx;} in remquol()
117 else {_hx = hz+hz+(lz>>MANL_SHIFT); lx = lz+lz; q++;} in remquol()
120 hz=_hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in remquol()
[all …]
Ds_getpayloadl.c39 u_int64_t hx,lx,hxm; in getpayloadl() local
40 GET_LDOUBLE_WORDS64(hx,lx,*x); in getpayloadl()
44 if (hx != 0x7fff000000000000ULL || (hxm | lx) == 0) in getpayloadl()
48 return ldexpl(hxm, 64) + (long double) lx; in getpayloadl()
Ds_fpclassifyl.c11 u_int64_t lx; in __fpclassifyl() local
13 GET_LDOUBLE_WORDS64(hx, lx, x); in __fpclassifyl()
17 if (hx == 0 && lx == 0) in __fpclassifyl()
24 else if (hx == 0x7fff000000000000LL && lx == 0) in __fpclassifyl()
/picolibc-3.7.0-3.6.0/newlib/libm/math/
Ds_fmod.c32 __uint32_t lx, ly, lz; in fmod64() local
34 EXTRACT_WORDS(hx, lx, x); in fmod64()
51 if ((hx < hy) || (lx < ly)) in fmod64()
53 if (lx == ly) in fmod64()
60 for (ix = -1043, i = lx; i > 0; i <<= 1) in fmod64()
87 hx = (hx << n) | (lx >> (32 - n)); in fmod64()
88 lx <<= n; in fmod64()
90 hx = lx << (n - 32); in fmod64()
91 lx = 0; in fmod64()
111 lz = lx - ly; in fmod64()
[all …]
Ds_atan2.c58 __uint32_t lx, ly; in atan264() local
60 EXTRACT_WORDS(hx, lx, x); in atan264()
64 if (((ix | ((lx | -lx) >> 31)) > 0x7ff00000) || in atan264()
67 if (((hx - 0x3ff00000) | lx) == 0) in atan264()
84 if ((ix | lx) == 0) in atan264()
Ds_atanh.c46 __uint32_t lx; in atanh64() local
47 EXTRACT_WORDS(hx, lx, x); in atanh64()
49 if ((ix | ((lx | (-lx)) >> 31)) > 0x3ff00000) /* |x|>1 */ in atanh64()
Ds_frexp.c78 __int32_t hx, ix, lx; in frexp64() local
79 EXTRACT_WORDS(hx, lx, x); in frexp64()
82 if (ix >= 0x7ff00000 || ((ix | lx) == 0)) in frexp64()
/picolibc-3.7.0-3.6.0/newlib/libm/common/
Ds_remquo.c89 __uint32_t lx,ly,lz,q,sxy; in remquo64() local
91 EXTRACT_WORDS(hx,lx,x); in remquo64()
105 if((hx<hy)||(lx<ly)) { in remquo64()
109 if(lx==ly) { in remquo64()
118 for (ix = -1043, i=lx; i>0; i<<=1) ix -=1; in remquo64()
139 hx = (hx<<n)|(lx>>(32-n)); in remquo64()
140 lx <<= n; in remquo64()
142 hx = lx<<(n-32); in remquo64()
143 lx = 0; in remquo64()
163 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in remquo64()
[all …]
Ds_nextafter.c59 __uint32_t lx,ly; in nextafter64() local
61 EXTRACT_WORDS(hx,lx,x); in nextafter64()
66 if(((ix>=0x7ff00000)&&((ix-0x7ff00000)|lx)!=0) || /* x is nan */ in nextafter64()
70 if((ix|lx)==0) { /* x == 0 */ in nextafter64()
76 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */ in nextafter64()
77 if(lx==0) hx -= 1; in nextafter64()
78 lx -= 1; in nextafter64()
80 lx += 1; in nextafter64()
81 if(lx==0) hx += 1; in nextafter64()
84 if(hy>=0||hx>hy||((hx==hy)&&(lx>ly))){/* x < y, x -= ulp */ in nextafter64()
[all …]
Ds_logb.c81 __int32_t hx,lx,ix; in logb64() local
83 EXTRACT_WORDS(hx,lx,x); in logb64()
86 if((hx|lx)==0) { in logb64()
92 for (ix = -1043; lx>0; lx<<=1) ix -=1; in logb64()
99 else if (hx>0x7ff00000 || lx) return x+x; /* x==NaN */ in logb64()
Ds_ilogb.c71 __int32_t hx,lx,ix; in ilogb64() local
73 EXTRACT_WORDS(hx,lx,x); in ilogb64()
76 if((hx|lx)==0) { in ilogb64()
81 for (ix = -1043; lx>0; lx<<=1) ix -=1; in ilogb64()
Ds_getpayload.c43 __int32_t hx, lx; in getpayload64() local
44 EXTRACT_WORDS(hx, lx, *x); in getpayload64()
47 ((hx & 0xfffff) | lx) == 0) in getpayload64()
50 return (__float64) ((((int64_t) hx) << 32) | (uint32_t) lx); in getpayload64()
Ds_isnan.c198 __int32_t hx,lx; in isnan64() local
199 EXTRACT_WORDS(hx,lx,x); in isnan64()
201 hx |= (__uint32_t)(lx|(-lx))>>31; in isnan64()
Ds_isnand.c100 __int32_t hx,lx; in __isnan64() local
101 EXTRACT_WORDS(hx,lx,x); in __isnan64()
103 hx |= (__uint32_t)(lx|(-lx))>>31; in __isnan64()
Ds_isinf.c29 __int32_t hx,lx; in isinf64() local
30 EXTRACT_WORDS(hx,lx,x); in isinf64()
32 hx |= (__uint32_t)(lx|(-lx))>>31; in isinf64()
Ds_isinfd.c24 __int32_t hx,lx; in __isinf64() local
25 EXTRACT_WORDS(hx,lx,x); in __isinf64()
27 hx |= (__uint32_t)(lx|(-lx))>>31; in __isinf64()
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld80/
Ds_remquol.c53 uint32_t lx,ly,lz; in remquol() local
57 GET_LDOUBLE_WORDS(esx,hx,lx,x); in remquol()
78 lx<ly))) { in remquol()
82 if(hx==hy && lx==ly) { in remquol()
91 GET_LDOUBLE_WORDS(esx,hx,lx,x); in remquol()
108 lx = SET_NBIT(lx); in remquol()
115 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in remquol()
116 if(hz<0){hx = hx+hx+(lx>>MANL_SHIFT); lx = lx+lx;} in remquol()
117 else {hx = hz+hz+(lz>>MANL_SHIFT); lx = lz+lz; q++;} in remquol()
120 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in remquol()
[all …]
Ds_nexttoward.c26 u_int32_t lx,hy,ly,esy; in nexttoward() local
28 EXTRACT_WORDS(hx,lx,x); in nexttoward()
34 if(((ix>=0x7ff00000)&&((ix-0x7ff00000)|lx)!=0) || /* x is nan */ in nexttoward()
38 if((ix|lx)==0) { /* x == 0 */ in nexttoward()
45 if(lx==0) hx -= 1; in nexttoward()
46 lx -= 1; in nexttoward()
48 lx += 1; in nexttoward()
49 if(lx==0) hx += 1; in nexttoward()
53 if(lx==0) hx -= 1; in nexttoward()
54 lx -= 1; in nexttoward()
[all …]
Ds_nextafterl.c26 u_int32_t lx,ly; in nextafterl() local
29 GET_LDOUBLE_WORDS(esx,hx,lx,x); in nextafterl()
34 if (((ix==0x7fff)&&(((hx&0x7fffffff)|lx)!=0)) || /* x is nan */ in nextafterl()
38 if((ix|hx|lx)==0) { /* x == 0 */ in nextafterl()
44 if(esy<0||(ix>iy||((ix==iy) && (hx>hy||((hx==hy)&&(lx>ly)))))) { in nextafterl()
46 if(lx==0) { in nextafterl()
50 lx -= 1; in nextafterl()
52 lx += 1; in nextafterl()
53 if(lx==0) { in nextafterl()
59 if(esy>=0||(ix>iy||((ix==iy)&&(hx>hy||((hx==hy)&&(lx>ly)))))){ in nextafterl()
[all …]
De_fmodl.c56 uint32_t lx,ly,lz; in fmodl() local
104 lx = ux.bits.ext_fracl; in fmodl()
111 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in fmodl()
112 if(hz<0){hx = hx+hx+(lx>>MANL_SHIFT); lx = lx+lx;} in fmodl()
116 hx = hz+hz+(lz>>MANL_SHIFT); lx = lz+lz; in fmodl()
119 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in fmodl()
120 if(hz>=0) {hx=hz;lx=lz;} in fmodl()
123 if((hx|lx)==0) /* return sign(x)*0 */ in fmodl()
126 hx = hx+hx+(lx>>MANL_SHIFT); lx = lx+lx; in fmodl()
130 ux.bits.ext_fracl = lx; in fmodl()
Ds_getpayloadl.c39 u_int32_t se,hx,lx; in getpayloadl() local
40 GET_LDOUBLE_WORDS(se,hx,lx,*x); in getpayloadl()
43 if ((se & 0x7fff) != 0x7fff || (hx|lx) == 0) in getpayloadl()
46 return (long double) (((uint64_t) hx << 32) | lx); in getpayloadl()
Ds_fpclassifyl.c10 u_int32_t hx,lx,esx; in __fpclassifyl() local
12 GET_LDOUBLE_WORDS(esx,hx,lx,x); in __fpclassifyl()
15 if (esx == 0 && hx == 0 && lx == 0) in __fpclassifyl()
22 else if (hx == LDBL_NBIT_INF && lx == 0) in __fpclassifyl()

12