Home
last modified time | relevance | path

Searched refs:m (Results 1 – 25 of 165) sorted by relevance

1234567

/picolibc-latest/newlib/libc/locale/
Dlocaleconv.c43 const struct lc_monetary_T *m = __get_monetary_locale (locale); in __localeconv_l() local
48 lconv->int_curr_symbol = (char *) m->int_curr_symbol; in __localeconv_l()
49 lconv->currency_symbol = (char *) m->currency_symbol; in __localeconv_l()
50 lconv->mon_decimal_point = (char *) m->mon_decimal_point; in __localeconv_l()
51 lconv->mon_thousands_sep = (char *) m->mon_thousands_sep; in __localeconv_l()
52 lconv->mon_grouping = (char *) m->mon_grouping; in __localeconv_l()
53 lconv->positive_sign = (char *) m->positive_sign; in __localeconv_l()
54 lconv->negative_sign = (char *) m->negative_sign; in __localeconv_l()
55 lconv->int_frac_digits = m->int_frac_digits[0]; in __localeconv_l()
56 lconv->frac_digits = m->frac_digits[0]; in __localeconv_l()
[all …]
/picolibc-latest/newlib/libc/posix/
Dengine.c91 static char *dissect(struct match *m, char *start, char *stop, sopno startst, sopno stopst);
92 static char *backref(struct match *m, char *start, char *stop, sopno startst, sopno stopst, sopno l…
93 static char *fast(struct match *m, char *start, char *stop, sopno startst, sopno stopst);
94 static char *slow(struct match *m, char *start, char *stop, sopno startst, sopno stopst);
106 static void print(struct match *m, char *caption, states st, int ch, FILE *d);
109 static void at(struct match *m, char *title, char *start, char *stop, sopno startst, sopno stopst);
121 #define SP(t, s, c) print(m, t, s, c, stdout)
122 #define AT(t, p1, p2, s1, s2) at(m, t, p1, p2, s1, s2)
123 #define NOTE(str) { if (m->eflags&REG_TRACE) printf("=%s\n", (str)); }
145 struct match *m = &mv; in matcher() local
[all …]
Dregexec.c74 #define STATESETUP(m, n) /* nothing */ argument
75 #define STATETEARDOWN(m) /* nothing */ argument
114 #define CLEAR(v) memset(v, 0, m->g->nstates)
118 #define ASSIGN(d, s) memcpy(d, s, m->g->nstates)
119 #define EQ(a, b) (memcmp(a, b, m->g->nstates) == 0)
121 #define STATESETUP(m, nv) { (m)->space = malloc((nv)*(m)->g->nstates); \ argument
122 if ((m)->space == NULL) return(REG_ESPACE); \
123 (m)->vn = 0; }
124 #define STATETEARDOWN(m) { free((m)->space); } argument
125 #define SETUP(v) ((v) = &m->space[m->vn++ * m->g->nstates])
/picolibc-latest/test/
Dregex.c77 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-latest/newlib/libc/stdio/
Dflags.c38 register int ret, m, o; in __sflags() local
44 m = O_RDONLY; in __sflags()
50 m = O_WRONLY; in __sflags()
56 m = O_WRONLY; in __sflags()
69 m = (m & ~O_ACCMODE) | O_RDWR; in __sflags()
73 m |= O_BINARY; in __sflags()
78 m |= O_CLOEXEC; in __sflags()
82 m |= O_EXCL; in __sflags()
88 *optr = m | o; in __sflags()
/picolibc-latest/newlib/libm/ld/ld128/
De_logl.c192 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 …]
Ds_truncl.c46 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-latest/newlib/libc/tinystdio/
Dsflags.c43 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()
Dryu_divpow2.c22 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()
Dryu_table.c106 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-latest/newlib/libm/ld/common/
Ds_logbl.c18 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()
Ds_ilogbl.c20 uint64_t m; in ilogbl() local
32 m = 1llu << (LDBL_MANL_SIZE - 1); in ilogbl()
33 for (b = LDBL_MANH_SIZE; !(u.bits.manl & m); m >>= 1) in ilogbl()
38 m = 1llu << (LDBL_MANH_SIZE - 1); in ilogbl()
39 for (b = 0; !(u.bits.manh & m); m >>= 1) in ilogbl()
/picolibc-latest/newlib/libc/tinystdio/ryu/
Dd2s_intrinsics.h215 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 …]
Df2s_intrinsics.h52 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-latest/
Dfind-copyright71 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-latest/newlib/libm/math/
Dsf_sqrt.c23 __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()
Ds_sqrt.c94 __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()
/picolibc-latest/newlib/testsuite/newlib.string/
Dstrcmp-1.c146 unsigned n, m, len; in main() local
156 for (m = 1; m < n + MAX_DIFF; m++) in main()
160 if (n - m > MAX_DIFF) in main()
180 p = dest + da + m - 1; in main()
189 if (n == m) in main()
199 testname, n, sa, da, m, len, ret); in main()
209 testname, n, sa, da, m, len, ret); in main()
212 else if (m > n) in main()
220 testname, n, sa, da, m, len, ret); in main()
232 testname, n, sa, da, m, len, ret); in main()
[all …]
/picolibc-latest/newlib/libm/ld/ld80/
Ds_truncl.c48 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-latest/scripts/
Dcross-clang-thumbv6m-none-eabi.txt23m/nofp/', '-L/usr/lib/gcc/arm-none-eabi/10.3.1/thumb/v6-m/nofp/', '-L/usr/lib/gcc/arm-none-eabi/11…
24m/nofp/', '-L/usr/lib/gcc/arm-none-eabi/10.3.1/thumb/v6-m/nofp/', '-L/usr/lib/gcc/arm-none-eabi/11…
Dcross-clang-thumbv7m-none-eabi.txt23m/nofp/', '-L/usr/lib/gcc/arm-none-eabi/10.3.1/thumb/v7-m/nofp/', '-L/usr/lib/gcc/arm-none-eabi/11…
24m/nofp/', '-L/usr/lib/gcc/arm-none-eabi/10.3.1/thumb/v7-m/nofp/', '-L/usr/lib/gcc/arm-none-eabi/11…
Dcross-clang-thumbv7e+fp-none-eabi.txt23m+fp/hard/', '-L/usr/lib/gcc/arm-none-eabi/10.3.1/thumb/v7e-m+fp/hard/', '-L/usr/lib/gcc/arm-none-…
24m+fp/hard/', '-L/usr/lib/gcc/arm-none-eabi/10.3.1/thumb/v7e-m+fp/hard/', '-L/usr/lib/gcc/arm-none-…
/picolibc-latest/newlib/libm/test/
Dscalb_vec.c44 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
Dscalbn_vec.c48 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
Dtest_ieee.c118 double m; variable
129 m = dnumber(0x40400000, 0x00000003); /* near 3.4 */ in test_round()
141 r1 = n + m; in test_round()
147 r2 = n + m; in test_round()
153 r3 = n + m; in test_round()
159 r4 = n + m; in test_round()
166 r1 = - n - m; in test_round()
172 r2 = - n - m; in test_round()
179 r3 = - n - m; in test_round()
185 r4 = - n - m; in test_round()

1234567