/picolibc-3.7.0-3.6.0/newlib/libc/locale/ |
D | localeconv.c | 42 const struct lc_monetary_T *m = __get_monetary_locale (locale); in __localeconv_l() local 47 lconv->int_curr_symbol = (char *) m->int_curr_symbol; in __localeconv_l() 48 lconv->currency_symbol = (char *) m->currency_symbol; in __localeconv_l() 49 lconv->mon_decimal_point = (char *) m->mon_decimal_point; in __localeconv_l() 50 lconv->mon_thousands_sep = (char *) m->mon_thousands_sep; in __localeconv_l() 51 lconv->mon_grouping = (char *) m->mon_grouping; in __localeconv_l() 52 lconv->positive_sign = (char *) m->positive_sign; in __localeconv_l() 53 lconv->negative_sign = (char *) m->negative_sign; in __localeconv_l() 54 lconv->int_frac_digits = m->int_frac_digits[0]; in __localeconv_l() 55 lconv->frac_digits = m->frac_digits[0]; in __localeconv_l() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/posix/ |
D | engine.c | 93 static char *dissect(struct match *m, char *start, char *stop, sopno startst, sopno stopst); 94 static char *backref(struct match *m, char *start, char *stop, sopno startst, sopno stopst, sopno l… 95 static char *fast(struct match *m, char *start, char *stop, sopno startst, sopno stopst); 96 static char *slow(struct match *m, char *start, char *stop, sopno startst, sopno stopst); 108 static void print(struct match *m, char *caption, states st, int ch, FILE *d); 111 static void at(struct match *m, char *title, char *start, char *stop, sopno startst, sopno stopst); 123 #define SP(t, s, c) print(m, t, s, c, stdout) 124 #define AT(t, p1, p2, s1, s2) at(m, t, p1, p2, s1, s2) 125 #define NOTE(str) { if (m->eflags®_TRACE) printf("=%s\n", (str)); } 147 struct match *m = &mv; in matcher() local [all …]
|
D | regexec.c | 75 #define STATESETUP(m, n) /* nothing */ argument 76 #define STATETEARDOWN(m) /* nothing */ argument 115 #define CLEAR(v) memset(v, 0, m->g->nstates) 119 #define ASSIGN(d, s) memcpy(d, s, m->g->nstates) 120 #define EQ(a, b) (memcmp(a, b, m->g->nstates) == 0) 122 #define STATESETUP(m, nv) { (m)->space = malloc((nv)*(m)->g->nstates); \ argument 123 if ((m)->space == NULL) return(REG_ESPACE); \ 124 (m)->vn = 0; } 125 #define STATETEARDOWN(m) { free((m)->space); } argument 126 #define SETUP(v) ((v) = &m->space[m->vn++ * m->g->nstates])
|
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/ |
D | flags.c | 39 register int ret, m, o; in __sflags() local 45 m = O_RDONLY; in __sflags() 51 m = O_WRONLY; in __sflags() 57 m = O_WRONLY; in __sflags() 70 m = (m & ~O_ACCMODE) | O_RDWR; in __sflags() 74 m |= O_BINARY; in __sflags() 79 m |= O_TEXT; in __sflags() 84 m |= O_CLOEXEC; in __sflags() 88 m |= O_EXCL; in __sflags() 94 *optr = m | o; in __sflags()
|
/picolibc-3.7.0-3.6.0/test/ |
D | regex.c | 77 int m; in main() local 100 for (m = 0; m < MAX_MATCH; m++) { in main() 101 if (m < tests[t].nmatch) { in main() 102 if (matches[m].rm_so != tests[t].matches[m].rm_so || in main() 103 matches[m].rm_eo != tests[t].matches[m].rm_eo) { in main() 105 m, in main() 106 matches[m].rm_so, in main() 107 matches[m].rm_eo, in main() 108 tests[t].matches[m].rm_so, in main() 109 tests[t].matches[m].rm_eo); in main() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld128/ |
D | e_logl.c | 192 unsigned int m; in logl() local 196 m = u.parts32.mswhi; in logl() 199 k = m & 0x7fffffff; in logl() 206 if (m & 0x80000000) in logl() 217 e = (int) (m >> 16); in logl() 222 while (!(m & 0x10000)) { in logl() 223 m = (m << 1) | ((int32_t) u.parts32.mswlo < 0); in logl() 230 m &= 0xffff; in logl() 232 u.parts32.mswhi = m | 0x3ffe0000; in logl() 233 m |= 0x10000; in logl() [all …]
|
D | s_truncl.c | 46 uint64_t m = ((1llu << MANH_SIZE) - 1) >> (e + 1); in truncl() local 47 if (((ix0 & m) | ix1) == 0) in truncl() 50 ix0 &= ~m; in truncl() 55 uint64_t m = (uint64_t)-1 >> (64 - LDBL_MANT_DIG + e + 1); in truncl() local 56 if ((ix1 & m) == 0) in truncl() 59 ix1 &= ~m; in truncl()
|
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/ |
D | sflags.c | 43 int m, o; in __posix_sflags() local 51 m = O_RDONLY; in __posix_sflags() 59 m = O_WRONLY; in __posix_sflags() 67 m = O_WRONLY; in __posix_sflags() 82 m = (m & ~O_ACCMODE) | O_RDWR; in __posix_sflags() 90 *optr = m | o; in __posix_sflags()
|
D | ryu_divpow2.c | 22 static inline uint32_t mulShift32(const uint32_t m, const uint64_t factor, const int32_t shift) { in mulShift32() argument 29 const uint64_t bits0 = (uint64_t)m * factorLo; in mulShift32() 30 const uint64_t bits1 = (uint64_t)m * factorHi; in mulShift32() 60 uint32_t __mulPow5InvDivPow2(const uint32_t m, const uint32_t q, const int32_t j) { in __mulPow5InvDivPow2() argument 66 return mulShift32(m, pow5[1] + 1, j); in __mulPow5InvDivPow2() 69 uint32_t __mulPow5divPow2(const uint32_t m, const uint32_t i, const int32_t j) { in __mulPow5divPow2() argument 72 return mulShift32(m, pow5[1], j); in __mulPow5divPow2()
|
D | ryu_table.c | 106 const uint64_t m = DOUBLE_POW5_TABLE[offset]; in __double_computePow5() local 107 const uint128_t b0 = ((uint128_t) m) * mul[0]; in __double_computePow5() 108 const uint128_t b2 = ((uint128_t) m) * mul[1]; in __double_computePow5() 126 const uint64_t m = DOUBLE_POW5_TABLE[offset]; // 5^offset in __double_computeInvPow5() local 127 const uint128_t b0 = ((uint128_t) m) * (mul[0] - 1); in __double_computeInvPow5() 128 …const uint128_t b2 = ((uint128_t) m) * mul[1]; // 1/5^base2 * 5^offset = 1/5^(base2-offset) = 1/5^i in __double_computeInvPow5() 149 const uint64_t m = DOUBLE_POW5_TABLE[offset]; in __double_computePow5() local 151 const uint64_t low1 = umul128(m, mul[1], &high1); in __double_computePow5() 153 const uint64_t low0 = umul128(m, mul[0], &high0); in __double_computePow5() 175 const uint64_t m = DOUBLE_POW5_TABLE[offset]; in __double_computeInvPow5() local [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libm/ld/common/ |
D | s_logbl.c | 18 uint64_t m; in logbl() local 30 m = 1llu << (LDBL_MANL_SIZE - 1); in logbl() 31 for (b = LDBL_MANH_SIZE; !(u.bits.manl & m); m >>= 1) in logbl() 36 m = 1llu << (LDBL_MANH_SIZE - 1); in logbl() 37 for (b = 0; !(u.bits.manh & m); m >>= 1) in logbl()
|
D | s_ilogbl.c | 21 uint64_t m; in ilogbl() local 33 m = 1llu << (LDBL_MANL_SIZE - 1); in ilogbl() 34 for (b = LDBL_MANH_SIZE; !(u.bits.manl & m); m >>= 1) in ilogbl() 39 m = 1llu << (LDBL_MANH_SIZE - 1); in ilogbl() 40 for (b = 0; !(u.bits.manh & m); m >>= 1) in ilogbl()
|
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/ryu/ |
D | d2s_intrinsics.h | 215 static inline uint64_t mulShift64(const uint64_t m, const uint64_t* const mul, const int32_t j) { in mulShift64() argument 216 const uint128_t b0 = ((uint128_t) m) * mul[0]; in mulShift64() 217 const uint128_t b2 = ((uint128_t) m) * mul[1]; in mulShift64() 221 static inline uint64_t mulShiftAll64(const uint64_t m, const uint64_t* const mul, const int32_t j, in mulShiftAll64() argument 235 *vp = mulShift64(4 * m + 2, mul, j); in mulShiftAll64() 236 *vm = mulShift64(4 * m - 1 - mmShift, mul, j); in mulShiftAll64() 237 return mulShift64(4 * m, mul, j); in mulShiftAll64() 242 static inline uint64_t mulShift64(const uint64_t m, const uint64_t* const mul, const int32_t j) { in mulShift64() argument 245 const uint64_t low1 = umul128(m, mul[1], &high1); // 64 in mulShift64() 247 umul128(m, mul[0], &high0); // 0 in mulShift64() [all …]
|
D | f2s_intrinsics.h | 52 uint32_t __mulPow5InvDivPow2(const uint32_t m, const uint32_t q, const int32_t j); 53 #define mulPow5InvDivPow2(m,q,j) __mulPow5InvDivPow2(m,q,j) argument 55 uint32_t __mulPow5divPow2(const uint32_t m, const uint32_t i, const int32_t j); 56 #define mulPow5divPow2(m,i,j) __mulPow5divPow2(m,i,j) argument
|
/picolibc-3.7.0-3.6.0/ |
D | find-copyright | 71 m = cpr_line.search(line) 72 if m: 73 line = line[m.start():] 74 m = re.match(r'(.*<[^>]+>).*', line) 75 if m: 76 line = line[:m.end()] 104 m = right_res.match(line) 105 if not m: 107 line = m.group(1) 156 m = re.compile(r'.*copyright.*', re.I | re.S) [all …]
|
/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 42 m = (ix >> 23); in sqrtf() 46 m -= i - 1; in sqrtf() 48 m -= 127; /* unbias exponent */ in sqrtf() 50 if (m & 1) /* odd m, double x to make it even */ in sqrtf() 52 m >>= 1; /* m = [m/2] */ in sqrtf() 78 ix += (m << 23); in sqrtf()
|
D | s_sqrt.c | 94 __int32_t ix0, s0, q, m, t, i; in sqrt64() local 112 m = (ix0 >> 20); in sqrt64() 113 if (m == 0) { /* subnormal x */ in sqrt64() 115 m -= 21; in sqrt64() 121 m -= i - 1; in sqrt64() 126 m -= 1023; /* unbias exponent */ in sqrt64() 128 if (m & 1) { /* odd m, double x to make it even */ in sqrt64() 132 m >>= 1; /* m = [m/2] */ in sqrt64() 189 ix0 += (m << 20); in sqrt64()
|
D | sf_atan2.c | 29 __int32_t k, m, hx, hy, ix, iy; in atan2f() local 39 m = ((hy >> 31) & 1) | ((hx >> 30) & 2); /* 2*sign(x)+sign(y) */ in atan2f() 43 switch (m) { in atan2f() 60 switch (m) { in atan2f() 71 switch (m) { in atan2f() 95 switch (m) { in atan2f()
|
/picolibc-3.7.0-3.6.0/newlib/testsuite/newlib.string/ |
D | strcmp-1.c | 144 unsigned n, m, len; in main() local 154 for (m = 1; m < n + MAX_DIFF; m++) in main() 158 if (n - m > MAX_DIFF) in main() 178 p = dest + da + m - 1; in main() 187 if (n == m) in main() 197 testname, n, sa, da, m, len, ret); in main() 207 testname, n, sa, da, m, len, ret); in main() 210 else if (m > n) in main() 218 testname, n, sa, da, m, len, ret); in main() 230 testname, n, sa, da, m, len, ret); in main() [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libm/ld/ld80/ |
D | s_truncl.c | 48 uint64_t m = ((1llu << MANH_SIZE) - 1) >> (e + 1); in truncl() local 49 if (((ix0 & m) | ix1) == 0) in truncl() 52 ix0 &= ~m; in truncl() 57 uint64_t m = (uint64_t)-1 >> (64 - LDBL_MANT_DIG + e + 1); in truncl() local 58 if ((ix1 & m) == 0) in truncl() 61 ix1 &= ~m; in truncl()
|
/picolibc-3.7.0-3.6.0/newlib/libm/test/ |
D | scalb_vec.c | 44 void test_scalb(int m) { run_vector_1(m, scalb_vec, (void*)scalb,"scalb","ddd"); } in test_scalb() argument 45 void test_scalbf(int m) { run_vector_1(m, scalb_vec, (void*)scalbf,"scalbf","fff"); } in test_scalbf() argument
|
D | scalbn_vec.c | 48 void test_scalbn(int m) { run_vector_1(m, scalbn_vec, (void*)scalbn,"scalbn","ddi"); } in test_scalbn() argument 49 void test_scalbnf(int m) { run_vector_1(m, scalbn_vec, (void*)scalbnf,"scalbnf","ffi"); } in test_scalbnf() argument
|
D | test_ieee.c | 116 double m; variable 126 m = dnumber(0x40400000, 0x00000003); /* near 3.4 */ in test_round() 138 r1 = n + m; in test_round() 144 r2 = n + m; in test_round() 150 r3 = n + m; in test_round() 156 r4 = n + m; in test_round() 163 r1 = - n - m; in test_round() 169 r2 = - n - m; in test_round() 176 r3 = - n - m; in test_round() 182 r4 = - n - m; in test_round()
|
/picolibc-3.7.0-3.6.0/newlib/libc/include/sys/ |
D | stat.h | 231 #define S_ISBLK(m) (((m)&_IFMT) == _IFBLK) argument 232 #define S_ISCHR(m) (((m)&_IFMT) == _IFCHR) argument 233 #define S_ISDIR(m) (((m)&_IFMT) == _IFDIR) argument 234 #define S_ISFIFO(m) (((m)&_IFMT) == _IFIFO) argument 235 #define S_ISREG(m) (((m)&_IFMT) == _IFREG) argument 236 #define S_ISLNK(m) (((m)&_IFMT) == _IFLNK) argument 237 #define S_ISSOCK(m) (((m)&_IFMT) == _IFSOCK) argument
|
/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/ |
D | chacha_private.h | 106 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) in chacha_encrypt_bytes() argument 135 for (i = 0;i < bytes;++i) tmp[i] = m[i]; in chacha_encrypt_bytes() 136 m = tmp; in chacha_encrypt_bytes() 184 x0 = XOR(x0,U8TO32_LITTLE(m + 0)); in chacha_encrypt_bytes() 185 x1 = XOR(x1,U8TO32_LITTLE(m + 4)); in chacha_encrypt_bytes() 186 x2 = XOR(x2,U8TO32_LITTLE(m + 8)); in chacha_encrypt_bytes() 187 x3 = XOR(x3,U8TO32_LITTLE(m + 12)); in chacha_encrypt_bytes() 188 x4 = XOR(x4,U8TO32_LITTLE(m + 16)); in chacha_encrypt_bytes() 189 x5 = XOR(x5,U8TO32_LITTLE(m + 20)); in chacha_encrypt_bytes() 190 x6 = XOR(x6,U8TO32_LITTLE(m + 24)); in chacha_encrypt_bytes() [all …]
|