/picolibc-3.7.0-3.6.0/newlib/libm/math/ |
D | sf_sqrt.c | 23 __int32_t ix, s, q, m, t, i; in sqrtf() local 25 GET_FLOAT_WORD(ix, x); in sqrtf() 26 hx = ix & 0x7fffffff; in sqrtf() 30 if (ix < 0 && !isnanf(x)) in sqrtf() 38 if (ix < 0) in sqrtf() 42 m = (ix >> 23); in sqrtf() 44 for (i = 0; (ix & 0x00800000L) == 0; i++) in sqrtf() 45 ix <<= 1; in sqrtf() 49 ix = (ix & 0x007fffffL) | 0x00800000L; in sqrtf() 51 ix += ix; in sqrtf() [all …]
|
D | sf_j1.c | 40 __int32_t hx, ix; in j1f() local 49 ix = hx & 0x7fffffff; in j1f() 52 if (ix >= 0x40000000) { /* |x| >= 2.0 */ in j1f() 57 if (ix <= FLT_UWORD_HALF_MAX) { /* make sure y+y not overflow */ in j1f() 68 if (ix > 0x5c000000) in j1f() 80 if (ix < 0x32000000) { /* |x|<2**-27 */ in j1f() 81 if (ix == 0) in j1f() 111 __int32_t hx, ix; in y1f() local 114 ix = 0x7fffffff & hx; in y1f() 116 if (ix == 0) in y1f() [all …]
|
D | sf_j0.c | 39 __int32_t hx, ix; in j0f() local 48 ix = hx & 0x7fffffff; in j0f() 50 if (ix >= 0x40000000) { /* |x| >= 2.0 */ in j0f() 55 if (ix <= FLT_UWORD_HALF_MAX) { /* make sure x+x not overflow */ in j0f() 66 if (ix > 0x5c000000) in j0f() 75 if (ix < 0x39000000) { /* |x| < 2**-13 */ in j0f() 77 if (ix < 0x32000000) in j0f() 86 if (ix < 0x3F800000) { /* |x| < 1.00 */ in j0f() 110 __int32_t hx, ix; in y0f() local 113 ix = 0x7fffffff & hx; in y0f() [all …]
|
D | s_cosh.c | 45 __int32_t ix; in cosh64() local 51 GET_HIGH_WORD(ix, x); in cosh64() 52 ix &= 0x7fffffff; in cosh64() 55 if (ix >= 0x7ff00000) in cosh64() 59 if (ix < 0x3fd62e43) { in cosh64() 62 if (ix < 0x3c800000) in cosh64() 68 if (ix < 0x40360000) { in cosh64() 74 if (ix < 0x40862E42) in cosh64() 79 if (ix < 0x408633CE || (ix == 0x408633ce && lx <= (__uint32_t)0x8fb9f87d)) { in cosh64()
|
D | sf_log.c | 36 __int32_t k, ix, i, j; in logf() local 38 GET_FLOAT_WORD(ix, x); in logf() 41 if (FLT_UWORD_IS_ZERO(ix & 0x7fffffff)) in logf() 43 if (ix < 0) in logf() 45 if (!FLT_UWORD_IS_FINITE(ix)) in logf() 47 if (FLT_UWORD_IS_SUBNORMAL(ix)) { in logf() 50 GET_FLOAT_WORD(ix, x); in logf() 52 k += (ix >> 23) - 127; in logf() 53 ix &= 0x007fffff; in logf() 54 i = (ix + (0x95f64 << 3)) & 0x800000; in logf() [all …]
|
D | sf_cosh.c | 29 __int32_t ix; in coshf() local 31 GET_FLOAT_WORD(ix, x); in coshf() 32 ix &= 0x7fffffff; in coshf() 37 if (!FLT_UWORD_IS_FINITE(ix)) in coshf() 41 if (ix < 0x3eb17218) { in coshf() 44 if (ix < 0x24000000) in coshf() 50 if (ix < 0x41b00000) { in coshf() 56 if (ix <= FLT_UWORD_LOG_MAX) in coshf() 60 if (ix <= FLT_UWORD_LOG_2MAX) { in coshf()
|
D | s_sinh.c | 42 __int32_t ix, jx; in sinh64() local 47 ix = jx & 0x7fffffff; in sinh64() 50 if (ix >= 0x7ff00000) in sinh64() 57 if (ix < 0x40360000) { /* |x|<22 */ in sinh64() 58 if (ix < 0x3e300000) /* |x|<2**-28 */ in sinh64() 62 if (ix < 0x3ff00000) in sinh64() 68 if (ix < 0x40862E42) in sinh64() 73 if (ix < 0x408633CE || (ix == 0x408633ce && lx <= (__uint32_t)0x8fb9f87d)) { in sinh64()
|
D | sf_frexp.c | 23 __int32_t hx, ix; in frexpf() local 25 ix = 0x7fffffff & hx; in frexpf() 27 if (!FLT_UWORD_IS_FINITE(ix) || FLT_UWORD_IS_ZERO(ix)) in frexpf() 29 if (FLT_UWORD_IS_SUBNORMAL(ix)) { /* subnormal */ in frexpf() 32 ix = hx & 0x7fffffff; in frexpf() 35 *eptr += (ix >> 23) - 126; in frexpf()
|
D | s_j0.c | 86 __int32_t hx, ix; in j064() local 95 ix = hx & 0x7fffffff; in j064() 97 if (ix >= 0x40000000) { /* |x| >= 2.0 */ in j064() 102 if (ix < 0x7fe00000) { /* make sure x+x not overflow */ in j064() 113 if (ix > 0x48000000) in j064() 122 if (ix < 0x3f200000) { /* |x| < 2**-13 */ in j064() 124 if (ix < 0x3e400000) in j064() 133 if (ix < 0x3FF00000) { /* |x| < 1.00 */ in j064() 160 __int32_t hx, ix, lx; in y064() local 163 ix = 0x7fffffff & hx; in y064() [all …]
|
D | s_frexp.c | 78 __int32_t hx, ix, lx; in frexp64() local 80 ix = 0x7fffffff & hx; in frexp64() 82 if (ix >= 0x7ff00000 || ((ix | lx) == 0)) in frexp64() 84 if (ix < 0x00100000) { /* subnormal */ in frexp64() 87 ix = hx & 0x7fffffff; in frexp64() 90 *eptr += (ix >> 20) - 1022; in frexp64()
|
D | sf_sinh.c | 24 __int32_t ix, jx; in sinhf() local 27 ix = jx & 0x7fffffff; in sinhf() 30 if (!FLT_UWORD_IS_FINITE(ix)) in sinhf() 37 if (ix < 0x41b00000) { /* |x|<22 */ in sinhf() 38 if (ix < 0x31800000) /* |x|<2**-28 */ in sinhf() 42 if (ix < 0x3f800000) in sinhf() 48 if (ix <= FLT_UWORD_LOG_MAX) in sinhf() 52 if (ix <= FLT_UWORD_LOG_2MAX) { in sinhf()
|
D | s_j1.c | 88 __int32_t hx, ix, lx; in j164() local 97 ix = hx & 0x7fffffff; in j164() 99 if (ix >= 0x40000000) { /* |x| >= 2.0 */ in j164() 104 if (ix < 0x7fe00000) { /* make sure y+y not overflow */ in j164() 115 if (ix > 0x48000000) in j164() 127 if (ix < 0x3e400000) { /* |x|<2**-27 */ in j164() 129 if (ix == 0 && lx == 0) in j164() 161 __int32_t hx, ix, lx; in y164() local 164 ix = 0x7fffffff & hx; in y164() 166 if ((ix | lx) == 0) in y164() [all …]
|
D | sf_atanh.c | 27 __int32_t hx, ix; in atanhf() local 29 ix = hx & 0x7fffffff; in atanhf() 30 if (ix > 0x3f800000) /* |x|>1 */ in atanhf() 32 if (ix == 0x3f800000) in atanhf() 34 if (ix < 0x31800000 && (huge + x) > zero) in atanhf() 36 SET_FLOAT_WORD(x, ix); in atanhf() 37 if (ix < 0x3f000000) { /* x < 0.5 */ in atanhf()
|
D | sf_atan.c | 53 __int32_t ix, hx, id; in atanf() local 56 ix = hx & 0x7fffffff; in atanf() 57 if (ix >= 0x50800000) { /* if |x| >= 2^34 */ in atanf() 58 if (FLT_UWORD_IS_NAN(ix)) in atanf() 65 if (ix < 0x3ee00000) { /* |x| < 0.4375 */ in atanf() 66 if (ix < 0x31000000) { /* |x| < 2^-29 */ in atanf() 73 if (ix < 0x3f980000) { /* |x| < 1.1875 */ in atanf() 74 if (ix < 0x3f300000) { /* 7/16 <=|x|<11/16 */ in atanf() 82 if (ix < 0x401c0000) { /* |x| < 2.4375 */ in atanf()
|
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld80/ |
D | e_sinhl.c | 39 u_int32_t jx,ix,i0,i1; in sinhl() local 43 ix = jx&0x7fff; in sinhl() 46 if(ix==0x7fff) return x+x; in sinhl() 51 if (ix < 0x4003 || (ix == 0x4003 && i0 <= 0xc8000000)) { /* |x|<25 */ in sinhl() 52 if (ix<0x3fdf) /* |x|<2**-32 */ in sinhl() 55 if(ix<0x3fff) return h*(2.0l*t-t*t/(t+one)); in sinhl() 60 if (ix < 0x400c || (ix == 0x400c && i0 < 0xb17217f7)) in sinhl() 64 if (ix<0x400c || (ix == 0x400c && (i0 < 0xb174ddc0 in sinhl()
|
D | s_tanhl.c | 46 u_int32_t jj0,jj1,ix; in tanhl() local 50 ix = se&0x7fff; in tanhl() 53 if(ix==0x7fff) { in tanhl() 60 if (ix < 0x4003 || (ix == 0x4003 && jj0 < 0xb8000000u)) {/* |x|<23 */ in tanhl() 61 if ((ix|jj0|jj1) == 0) in tanhl() 63 if (ix<0x3fc8) /* |x|<2**-55 */ in tanhl() 65 if (ix>=0x3fff) { /* |x|>=1 */ in tanhl()
|
D | e_lgammal_r.c | 203 int n, ix; in sin_pi() local 207 ix = se & 0x7fff; in sin_pi() 208 ix = (ix << 16) | (i0 >> 16); in sin_pi() 209 if (ix < 0x3ffd8000) /* 0.25 */ in sin_pi() 226 if (ix >= 0x403f8000) /* 2^64 */ in sin_pi() 232 if (ix < 0x403e8000) /* 2^63 */ in sin_pi() 270 int i, ix; in lgammal_r() local 275 ix = se & 0x7fff; in lgammal_r() 277 if ((ix | i0 | i1) == 0) in lgammal_r() 284 ix = (ix << 16) | (i0 >> 16); in lgammal_r() [all …]
|
D | e_atanhl.c | 41 int32_t ix; in atanhl() local 44 ix = se&0x7fff; in atanhl() 45 if ((ix+((((i0&0x7fffffff)|i1)|(-((i0&0x7fffffff)|i1)))>>31))>0x3fff) in atanhl() 48 if(ix==0x3fff) in atanhl() 50 if(ix<0x3fe3&&(huge+x)>zero) return x; /* x<2**-28 */ in atanhl() 51 SET_LDOUBLE_EXP(x,ix); in atanhl() 52 if(ix<0x3ffe) { /* x < 0.5 */ in atanhl()
|
/picolibc-3.7.0-3.6.0/newlib/libm/common/ |
D | sf_scalbln.c | 25 __int32_t ix; in scalblnf() local 29 GET_FLOAT_WORD(ix,x); in scalblnf() 30 hx = ix&0x7fffffff; in scalblnf() 35 GET_FLOAT_WORD(ix,x); in scalblnf() 36 k = ((ix&0x7f800000)>>23) - 25; in scalblnf() 38 return __math_uflowf(ix<0); /*underflow*/ in scalblnf() 43 return __math_oflowf(ix < 0); /* overflow */ in scalblnf() 45 {SET_FLOAT_WORD(x,(ix&0x807fffff)|(k<<23)); return x;} in scalblnf() 47 return __math_uflowf(ix < 0); /*underflow*/ in scalblnf() 49 SET_FLOAT_WORD(x,(ix&0x807fffff)|(k<<23)); in scalblnf()
|
D | sf_log.c | 55 uint32_t ix, iz, tmp; in logf() local 58 ix = asuint (x); in logf() 61 if (__builtin_expect (ix == 0x3f800000, 0)) in logf() 64 if (__builtin_expect (ix - 0x00800000 >= 0x7f800000 - 0x00800000, 0)) in logf() 67 if (ix * 2 == 0) in logf() 69 if (ix == 0x7f800000) /* log(inf) == inf. */ in logf() 71 if ((ix & 0x80000000) || ix * 2 >= 0xff000000) in logf() 74 ix = asuint (x * 0x1p23f); in logf() 75 ix -= (int32_t) 23 << 23; in logf() 81 tmp = ix - OFF; in logf() [all …]
|
D | sf_log2.c | 54 uint32_t ix, iz, top, tmp; in log2f() local 57 ix = asuint (x); in log2f() 60 if (__builtin_expect (ix == 0x3f800000, 0)) in log2f() 63 if (__builtin_expect (ix - 0x00800000 >= 0x7f800000 - 0x00800000, 0)) in log2f() 66 if (ix * 2 == 0) in log2f() 68 if (ix == 0x7f800000) /* log2(inf) == inf. */ in log2f() 70 if ((ix & 0x80000000) || ix * 2 >= 0xff000000) in log2f() 73 ix = asuint (x * 0x1p23f); in log2f() 74 ix -= (uint32_t) 23 << 23; in log2f() 80 tmp = ix - OFF; in log2f() [all …]
|
D | sf_scalbn.c | 32 __int32_t k,ix; in scalbnf() local 35 GET_FLOAT_WORD(ix,x); in scalbnf() 36 hx = ix&0x7fffffff; in scalbnf() 41 GET_FLOAT_WORD(ix,x); in scalbnf() 42 k = ((ix&0x7f800000)>>23) - 25; in scalbnf() 45 return __math_uflowf(ix<0); /*underflow*/ in scalbnf() 50 return __math_oflowf(ix<0); /*overflow*/ in scalbnf() 53 return __math_oflowf(ix<0); /* overflow */ in scalbnf() 55 {SET_FLOAT_WORD(x,(ix&0x807fffff)|(k<<23)); return x;} in scalbnf() 57 return __math_uflowf(ix<0); /*underflow*/ in scalbnf() [all …]
|
D | sf_pow.c | 54 log2_inline (uint32_t ix) in log2_inline() argument 64 tmp = ix - OFF; in log2_inline() 67 iz = ix - top; in log2_inline() 150 zeroinfnan (uint32_t ix) in zeroinfnan() argument 152 return 2 * ix - 1 >= 2u * (uint32_t) 0x7f800000 - 1; in zeroinfnan() 159 uint32_t ix, iy; in powf() local 161 ix = asuint (x); in powf() 163 if (__builtin_expect (ix - 0x00800000 >= 0x7f800000 - 0x00800000 in powf() 172 if (ix == 0x3f800000) in powf() 174 if (2 * ix > 2u * (uint32_t) 0x7f800000 || 2 * iy > 2u * (uint32_t) 0x7f800000) in powf() [all …]
|
D | sf_getpayload.c | 40 __int32_t ix; in getpayloadf() local 41 GET_FLOAT_WORD(ix, *x); in getpayloadf() 43 if ((ix & 0x7f800000) != 0x7f800000 || in getpayloadf() 44 ((ix & 0x7fffff) == 0)) in getpayloadf() 46 ix &= 0x3fffff; in getpayloadf() 47 return (float) ix; in getpayloadf()
|
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld128/ |
D | e_sinhl.c | 57 u_int32_t ix; in sinhl() local 63 ix = jx & 0x7fffffff; in sinhl() 66 if (ix >= 0x7fff0000) in sinhl() 74 u.parts32.mswhi = ix; in sinhl() 77 if (ix <= 0x40044000) in sinhl() 79 if (ix < 0x3fc60000) /* |x| < 2^-57 */ in sinhl() 83 if (ix < 0x3fff0000) in sinhl() 89 if (ix <= 0x400c62e3) /* 11356.375 */ in sinhl()
|