/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/ryu/ |
D | common.h | 45 int32_t __log2pow5(const int32_t e); 47 #define log2pow5(e) __log2pow5(e) argument 50 int32_t __ceil_log2pow5(const int32_t e); 52 #define ceil_log2pow5(e) __ceil_log2pow5(e) argument 55 int32_t __pow5bits(const int32_t e); 57 #define pow5bits(e) __pow5bits(e) argument 60 uint32_t __log10Pow2(const int32_t e); 62 #define log10Pow2(e) __log10Pow2(e) argument 65 uint32_t __log10Pow5(const int32_t e); 67 #define log10Pow5(e) __log10Pow5(e) argument
|
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/ |
D | ryu_log10.c | 20 uint32_t __log10Pow2(const int32_t e) { in __log10Pow2() argument 22 assert(e >= 0); in __log10Pow2() 23 assert(e <= 1650); in __log10Pow2() 24 return (((uint32_t) e) * 78913) >> 18; in __log10Pow2() 28 uint32_t __log10Pow5(const int32_t e) { in __log10Pow5() argument 30 assert(e >= 0); in __log10Pow5() 31 assert(e <= 2620); in __log10Pow5() 32 return (((uint32_t) e) * 732923) >> 20; in __log10Pow5()
|
D | ryu_log2pow5.c | 21 int32_t __log2pow5(const int32_t e) { in __log2pow5() argument 25 assert(e >= 0); in __log2pow5() 26 assert(e <= 3528); in __log2pow5() 27 return (int32_t) ((((uint32_t) e) * 1217359) >> 19); in __log2pow5() 31 int32_t __ceil_log2pow5(const int32_t e) { in __ceil_log2pow5() argument 32 return log2pow5(e) + 1; in __ceil_log2pow5()
|
D | ryu_pow5bits.c | 20 int32_t __pow5bits(const int32_t e) { in __pow5bits() argument 24 assert(e >= 0); in __pow5bits() 25 assert(e <= 3528); in __pow5bits() 26 return (int32_t) (((((uint32_t) e) * 1217359) >> 19) + 1); in __pow5bits()
|
/picolibc-3.7.0-3.6.0/newlib/testsuite/newlib.search/ |
D | hsearchtest.c | 50 #define TEST(e) ((e) ? (void)0 : testfail(__FILE__, __LINE__, #e)) argument 64 ENTRY e, *ep, *ep2; in main() local 78 e.key = strdup(ch); /* ptr to provided key is kept! */ in main() 79 TEST(e.key != NULL); in main() 80 e.data = (void *)(uintptr_t)i; in main() 81 ep = hsearch(e, ENTER); in main() 88 e.key = ch; in main() 93 ep = hsearch(e, FIND); in main() 101 e.data = (void *)(long)12345; in main() 102 ep = hsearch(e, FIND); in main() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libm/ld/common/ |
D | e_sqrtl.c | 36 u.e = x; in inc() 43 return (u.e); in inc() 52 u.e = x; in dec() 59 return (u.e); in dec() 83 u.e = x; in sqrtl() 106 u.e *= 0x1.0p514L; in sqrtl() 133 xn = (long double)sqrt((double)u.e); /* 53-bit estimate of sqrtl(x). */ in sqrtl() 134 xn = (xn + (u.e / xn)) * 0.5L; /* 106-bit estimate. */ in sqrtl() 136 lo = u.e; in sqrtl() 142 lo = (lo - u.e) / xn; /* Low bits divided by xn. */ in sqrtl() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld80/ |
D | s_log1pl.c | 115 int e; in log1pl() local 137 x = frexpl( x, &e ); in log1pl() 141 if( (e > 2) || (e < -2) ) in log1pl() 145 e -= 1; in log1pl() 158 z = z + e * C2; in log1pl() 160 z = z + e * C1; in log1pl() 169 e -= 1; in log1pl() 170 if (e != 0) in log1pl() 177 if (e != 0) in log1pl() 184 y = y + e * C2; in log1pl() [all …]
|
D | e_logl.c | 118 int e; in logl() local 138 x = frexpl( x, &e ); in logl() 143 if( (e > 2) || (e < -2) ) in logl() 147 e -= 1; in logl() 160 z = z + e * C2; in logl() 162 z = z + e * C1; in logl() 171 e -= 1; in logl() 180 y = y + e * C2; in logl() 186 z = z + e * C1; /* This sum has an error of 1/2 lsb. */ in logl()
|
D | s_truncl.c | 37 int e, es; in truncl() local 41 e = (es&0x7fff) - LDBL_MAX_EXP + 1; in truncl() 43 if (e < MANH_SIZE - 1) { in truncl() 44 if (e < 0) { /* raise inexact if x != 0 */ in truncl() 48 uint64_t m = ((1llu << MANH_SIZE) - 1) >> (e + 1); in truncl() 56 } else if (e < LDBL_MANT_DIG - 1) { in truncl() 57 uint64_t m = (uint64_t)-1 >> (64 - LDBL_MANT_DIG + e + 1); in truncl() 62 } else if (e == 0x7fff - LDBL_MAX_EXP + 1) { in truncl()
|
D | e_log10l.c | 124 int e; in log10l() local 143 x = frexpl( x, &e ); in log10l() 149 if( (e > 2) || (e < -2) ) in log10l() 153 e -= 1; in log10l() 174 e -= 1; in log10l() 197 z += e * (L102B); in log10l() 200 z += e * (L102A); in log10l()
|
D | e_log2l.c | 119 int e; in log2l() local 140 x = frexpl( x, &e ); in log2l() 146 if( (e > 2) || (e < -2) ) in log2l() 150 e -= 1; in log2l() 171 e -= 1; in log2l() 196 z += e; in log2l()
|
/picolibc-3.7.0-3.6.0/newlib/libm/machine/spu/headers/ |
D | ldexp.h | 50 vec_int4 e, e1, e2; in _ldexp() local 59 e = spu_promote(exp, 0); in _ldexp() 63 cmp_min = spu_cmpgt(e, min); in _ldexp() 64 cmp_max = spu_cmpgt(e, max); in _ldexp() 65 e = spu_sel(min, e, cmp_min); in _ldexp() 66 e = spu_sel(e, max, cmp_max); in _ldexp() 70 e1 = spu_rlmaska(e, -1); in _ldexp() 71 e2 = spu_sub(e, e1); in _ldexp()
|
D | scalbn.h | 50 vec_int4 e, e1, e2; in _scalbn() local 59 e = spu_promote(exp, 0); in _scalbn() 63 cmp_min = spu_cmpgt(e, min); in _scalbn() 64 cmp_max = spu_cmpgt(e, max); in _scalbn() 65 e = spu_sel(min, e, cmp_min); in _scalbn() 66 e = spu_sel(e, max, cmp_max); in _scalbn() 70 e1 = spu_rlmaska(e, -1); in _scalbn() 71 e2 = spu_sub(e, e1); in _scalbn()
|
/picolibc-3.7.0-3.6.0/test/ |
D | fenv.c | 106 e_to_str(int e) in e_to_str() argument 108 if (e == 0) in e_to_str() 112 if (e == FE_DIVBYZERO) in e_to_str() 116 if (e == FE_OVERFLOW) in e_to_str() 120 if (e == FE_UNDERFLOW) in e_to_str() 124 if (e == FE_INEXACT) in e_to_str() 128 if (e == FE_INVALID) in e_to_str() 132 if (e == (FE_OVERFLOW|FE_INEXACT)) in e_to_str() 136 if (e == (FE_UNDERFLOW|FE_INEXACT)) in e_to_str() 140 sprintf(buf, "Invalid 0x%x", e); in e_to_str() [all …]
|
D | math_errhandling.c | 86 e_to_str(int e) in e_to_str() argument 88 if (e == 0) in e_to_str() 92 if (e == FE_DIVBYZERO) in e_to_str() 96 if (e == FE_OVERFLOW) in e_to_str() 100 if (e == FE_UNDERFLOW) in e_to_str() 104 if (e == FE_INEXACT) in e_to_str() 108 if (e == FE_INVALID) in e_to_str() 112 if (e == (FE_OVERFLOW|FE_INEXACT)) in e_to_str() 116 if (e == (FE_UNDERFLOW|FE_INEXACT)) in e_to_str() 122 while (e) { in e_to_str() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld128/ |
D | s_truncl.c | 35 int e; in truncl() local 39 e = ((ix0>>48)&0x7fff) - LDBL_MAX_EXP + 1; in truncl() 41 if (e < MANH_SIZE - 1) { in truncl() 42 if (e < 0) { /* raise inexact if x != 0 */ in truncl() 46 uint64_t m = ((1llu << MANH_SIZE) - 1) >> (e + 1); in truncl() 54 } else if (e < LDBL_MANT_DIG - 1) { in truncl() 55 uint64_t m = (uint64_t)-1 >> (64 - LDBL_MANT_DIG + e + 1); in truncl() 60 } else if (e == 0x7fff - LDBL_MAX_EXP + 1) { in truncl()
|
D | s_log1pl.c | 127 int e; in log1pl() local 154 x = frexpl (x, &e); in log1pl() 158 if ((e > 2) || (e < -2)) in log1pl() 162 e -= 1; in log1pl() 188 z = z + e * C2; in log1pl() 190 z = z + e * C1; in log1pl() 199 e -= 1; in log1pl() 200 if (e != 0) in log1pl() 207 if (e != 0) in log1pl() 240 y = y + e * C2; in log1pl() [all …]
|
D | e_logl.c | 193 int k, e; in logl() local 217 e = (int) (m >> 16); in logl() 219 if (e == 0) { in logl() 221 e = 1; in logl() 227 e--; in logl() 231 e -= (int) 0x3ffe; in logl() 245 e -= 1; in logl() 262 e = 0; in logl() 288 y += e * ln2b; /* Base 2 exponent offset times ln(2). */ in logl() 292 y += e * ln2a; in logl()
|
D | e_log10l.c | 182 int e; in log10l() local 199 x = frexpl (x, &e); in log10l() 205 if ((e > 2) || (e < -2)) in log10l() 209 e -= 1; in log10l() 230 e -= 1; in log10l() 248 z += e * L102B; in log10l() 251 z += e * L102A; in log10l()
|
D | e_log2l.c | 176 int e; in log2l() local 193 x = frexpl (x, &e); in log2l() 199 if ((e > 2) || (e < -2)) in log2l() 203 e -= 1; in log2l() 224 e -= 1; in log2l() 244 z += e; in log2l()
|
/picolibc-3.7.0-3.6.0/newlib/libm/common/ |
D | sf_expm1.c | 39 float y,hi,lo,c,t,e,hxs,hfx,r1; in expm1f() local 89 e = hxs*((r1-t)/(6.0f - x*t)); in expm1f() 90 if(k==0) return x - (x*e-hxs); /* c is 0 */ in expm1f() 92 e = (x*(e-c)-c); in expm1f() 93 e -= hxs; in expm1f() 94 if(k== -1) return 0.5f*(x-e)-0.5f; in expm1f() 96 if(x < -0.25f) return -2.0f*(e-(x+0.5f)); in expm1f() 97 else return one+2.0f*(x-e); in expm1f() 101 y = one-(e-x); in expm1f() 110 y = t-(e-x); in expm1f() [all …]
|
D | s_expm1.c | 167 __float64 y,hi,lo,c,t,e,hxs,hfx,r1; in _NAME_64() local 221 e = hxs*((r1-t)/(_F_64(6.0) - x*t)); in _NAME_64() 222 if(k==0) return x - (x*e-hxs); /* c is 0 */ in _NAME_64() 224 e = (x*(e-c)-c); in _NAME_64() 225 e -= hxs; in _NAME_64() 226 if(k== -1) return _F_64(0.5)*(x-e)_F_64(-0.5); in _NAME_64() 228 if(x < _F_64(-0.25)) return _F_64(-2.0)*(e-(x+_F_64(0.5))); in _NAME_64() 229 else return one+_F_64(2.0)*(x-e); in _NAME_64() 233 y = one-(e-x); in _NAME_64() 242 y = t-(e-x); in _NAME_64() [all …]
|
/picolibc-3.7.0-3.6.0/test/semihost/ |
D | semihost-readc.c | 44 char e; in main() local 48 while ((e = *expect++) != '\0') { in main() 50 printf("got %c expect %c\n", ch, e); in main() 51 if ((int) (uint8_t) e != ch) { in main() 53 (uint8_t) e, ch, i); in main()
|
/picolibc-3.7.0-3.6.0/newlib/libm/complex/ |
D | cephes_subr.c | 45 double e, ei; in _cchsh() local 51 e = exp(x); in _cchsh() 52 ei = 0.5 / e; in _cchsh() 53 e = 0.5 * e; in _cchsh() 54 *s = e - ei; in _cchsh() 55 *c = e + ei; in _cchsh()
|
D | cephes_subrf.c | 45 float e, ei; in _cchshf() local 51 e = expf(x); in _cchshf() 52 ei = 0.5f / e; in _cchshf() 53 e = 0.5f * e; in _cchshf() 54 *s = e - ei; in _cchshf() 55 *c = e + ei; in _cchshf()
|