/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld128/ |
D | e_fmodl.c | 27 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 …]
|
D | s_nextafterl.c | 26 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 …]
|
D | s_nexttoward.c | 27 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 …]
|
D | s_remquol.c | 54 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 …]
|
D | s_getpayloadl.c | 39 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()
|
D | s_fpclassifyl.c | 11 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/ |
D | s_fmod.c | 32 __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 …]
|
D | s_atan2.c | 58 __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()
|
D | s_atanh.c | 46 __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()
|
D | s_frexp.c | 78 __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/ |
D | s_remquo.c | 89 __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 …]
|
D | s_nextafter.c | 59 __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 …]
|
D | s_logb.c | 81 __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()
|
D | s_ilogb.c | 71 __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()
|
D | s_getpayload.c | 43 __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()
|
D | s_isnan.c | 198 __int32_t hx,lx; in isnan64() local 199 EXTRACT_WORDS(hx,lx,x); in isnan64() 201 hx |= (__uint32_t)(lx|(-lx))>>31; in isnan64()
|
D | s_isnand.c | 100 __int32_t hx,lx; in __isnan64() local 101 EXTRACT_WORDS(hx,lx,x); in __isnan64() 103 hx |= (__uint32_t)(lx|(-lx))>>31; in __isnan64()
|
D | s_isinf.c | 29 __int32_t hx,lx; in isinf64() local 30 EXTRACT_WORDS(hx,lx,x); in isinf64() 32 hx |= (__uint32_t)(lx|(-lx))>>31; in isinf64()
|
D | s_isinfd.c | 24 __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/ |
D | s_remquol.c | 53 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 …]
|
D | s_nexttoward.c | 26 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 …]
|
D | s_nextafterl.c | 26 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 …]
|
D | e_fmodl.c | 56 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()
|
D | s_getpayloadl.c | 39 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()
|
D | s_fpclassifyl.c | 10 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()
|