Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 61) sorted by relevance

123

/picolibc-3.7.0-3.6.0/picocrt/machine/x86/
Dcrt0-64.S60 # set the page table base address
138 #define page1(base) \ argument
139 ((0x00000000000000E7) | ((base) << 21))
140 #define page2(base) \ argument
141 page1(base), \
142 page1((base)+1)
143 #define page4(base) \ argument
144 page2(base), \
145 page2((base)+2)
146 #define page8(base) \ argument
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/
Dstrtol.c124 char **__restrict endptr, int base, locale_t loc) in _strtol_l() argument
132 if (base < 0 || base == 1 || base > 36) { in _strtol_l()
152 if ((base == 0 || base == 16) && in _strtol_l()
158 base = 16; in _strtol_l()
160 if (base == 0) in _strtol_l()
161 base = c == '0' ? 8 : 10; in _strtol_l()
181 cutlim = cutoff % (unsigned long)base; in _strtol_l()
182 cutoff /= (unsigned long)base; in _strtol_l()
192 if (c >= base) in _strtol_l()
198 acc *= base; in _strtol_l()
[all …]
Dstrtoull.c128 char **__restrict endptr, int base, locale_t loc) in _strtoull_l() argument
147 if ((base == 0 || base == 16) && in _strtoull_l()
151 base = 16; in _strtoull_l()
153 if (base == 0) in _strtoull_l()
154 base = c == '0' ? 8 : 10; in _strtoull_l()
155 cutoff = (unsigned long long)ULLONG_MAX / (unsigned long long)base; in _strtoull_l()
156 cutlim = (unsigned long long)ULLONG_MAX % (unsigned long long)base; in _strtoull_l()
166 if (c >= base) in _strtoull_l()
172 acc *= base; in _strtoull_l()
189 strtoull_l (const char *__restrict s, char **__restrict ptr, int base, in strtoull_l() argument
[all …]
Dwcstoull.c145 int base, locale_t loc) in wcstoull_l() argument
153 if(base < 0 || base == 1 || base > 36) { in wcstoull_l()
168 if ((base == 0 || base == 16) && in wcstoull_l()
172 base = 16; in wcstoull_l()
174 if (base == 0) in wcstoull_l()
175 base = c == L'0' ? 8 : 10; in wcstoull_l()
176 cutoff = (unsigned long long)ULLONG_MAX / (unsigned long long)base; in wcstoull_l()
177 cutlim = (unsigned long long)ULLONG_MAX % (unsigned long long)base; in wcstoull_l()
187 if ((int) c >= base) in wcstoull_l()
193 acc *= base; in wcstoull_l()
[all …]
Dstrtoimax.c59 strtoimax_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoimax_l() argument
84 if ((base == 0 || base == 16) && in strtoimax_l()
88 base = 16; in strtoimax_l()
90 if (base == 0) in strtoimax_l()
91 base = c == '0' ? 8 : 10; in strtoimax_l()
93 if (base < 2 || base > 36) in strtoimax_l()
115 cutlim = cutoff % base; in strtoimax_l()
116 cutoff /= base; in strtoimax_l()
126 if (c >= base) in strtoimax_l()
132 acc *= base; in strtoimax_l()
[all …]
Dstrtoll.c132 char **__restrict endptr, int base, locale_t loc) in _strtoll_l() argument
153 if ((base == 0 || base == 16) && in _strtoll_l()
157 base = 16; in _strtoll_l()
159 if (base == 0) in _strtoll_l()
160 base = c == '0' ? 8 : 10; in _strtoll_l()
180 cutlim = cutoff % (unsigned long long)base; in _strtoll_l()
181 cutoff /= (unsigned long long)base; in _strtoll_l()
191 if (c >= base) in _strtoll_l()
197 acc *= base; in _strtoll_l()
214 strtoll_l (const char *__restrict s, char **__restrict ptr, int base, in strtoll_l() argument
[all …]
Dstrtoumax.c60 char ** __restrict endptr, int base, locale_t loc) in strtoumax_l() argument
82 if ((base == 0 || base == 16) && in strtoumax_l()
86 base = 16; in strtoumax_l()
88 if (base == 0) in strtoumax_l()
89 base = c == '0' ? 8 : 10; in strtoumax_l()
91 if (base < 2 || base > 36) in strtoumax_l()
94 cutoff = UINTMAX_MAX / base; in strtoumax_l()
95 cutlim = UINTMAX_MAX % base; in strtoumax_l()
105 if (c >= base) in strtoumax_l()
111 acc *= base; in strtoumax_l()
[all …]
Dstrtoul.c131 strtoul_l (const char *__restrict nptr, char **__restrict endptr, int base, in strtoul_l() argument
151 if ((base == 0 || base == 16) && in strtoul_l()
155 base = 16; in strtoul_l()
157 if (base == 0) in strtoul_l()
158 base = c == '0' ? 8 : 10; in strtoul_l()
159 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base; in strtoul_l()
160 cutlim = (unsigned long)ULONG_MAX % (unsigned long)base; in strtoul_l()
170 if (c >= base) in strtoul_l()
176 acc *= base; in strtoul_l()
193 int base) in strtoul() argument
[all …]
Dwcstoimax.c61 wchar_t ** __restrict endptr, int base, locale_t loc) in wcstoimax_l() argument
83 if ((base == 0 || base == 16) && in wcstoimax_l()
87 base = 16; in wcstoimax_l()
89 if (base == 0) in wcstoimax_l()
90 base = c == L'0' ? 8 : 10; in wcstoimax_l()
92 if (base < 2 || base > 36) in wcstoimax_l()
96 cutlim = cutoff % base; in wcstoimax_l()
97 cutoff /= base; in wcstoimax_l()
112 if ((int) c >= base) in wcstoimax_l()
118 acc *= base; in wcstoimax_l()
[all …]
Dwcstoumax.c60 wchar_t ** __restrict endptr, int base, locale_t loc) in wcstoumax_l() argument
82 if ((base == 0 || base == 16) && in wcstoumax_l()
86 base = 16; in wcstoumax_l()
88 if (base == 0) in wcstoumax_l()
89 base = c == L'0' ? 8 : 10; in wcstoumax_l()
91 if (base < 2 || base > 36) in wcstoumax_l()
94 cutoff = UINTMAX_MAX / base; in wcstoumax_l()
95 cutlim = UINTMAX_MAX % base; in wcstoumax_l()
110 if ((int) c >= base) in wcstoumax_l()
116 acc *= base; in wcstoumax_l()
[all …]
Dwcstol.c134 int base, locale_t loc) in wcstol_l() argument
155 if ((base == 0 || base == 16) && in wcstol_l()
159 base = 16; in wcstol_l()
161 if (base == 0) in wcstol_l()
162 base = c == L'0' ? 8 : 10; in wcstol_l()
182 cutlim = cutoff % (unsigned long)base; in wcstol_l()
183 cutoff /= (unsigned long)base; in wcstol_l()
193 if ((int) c >= base) in wcstol_l()
199 acc *= base; in wcstol_l()
217 int base) in wcstol() argument
[all …]
Dwcstoll.c133 int base, locale_t loc) in wcstoll_l() argument
154 if ((base == 0 || base == 16) && in wcstoll_l()
158 base = 16; in wcstoll_l()
160 if (base == 0) in wcstoll_l()
161 base = c == L'0' ? 8 : 10; in wcstoll_l()
181 cutlim = cutoff % (unsigned long long)base; in wcstoll_l()
182 cutoff /= (unsigned long long)base; in wcstoll_l()
192 if ((int) c >= base) in wcstoll_l()
198 acc *= base; in wcstoll_l()
215 int base) in wcstoll() argument
[all …]
Dwcstoul.c134 int base, locale_t loc) in wcstoul_l() argument
153 if ((base == 0 || base == 16) && in wcstoul_l()
157 base = 16; in wcstoul_l()
159 if (base == 0) in wcstoul_l()
160 base = c == L'0' ? 8 : 10; in wcstoul_l()
161 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base; in wcstoul_l()
162 cutlim = (unsigned long)ULONG_MAX % (unsigned long)base; in wcstoul_l()
172 if ((int) c >= base) in wcstoul_l()
178 acc *= base; in wcstoul_l()
195 int base) in wcstoul() argument
[all …]
Ditoa.c36 int base) in __itoa() argument
42 if ((base < 2) || (base > 36)) in __itoa()
50 if ((base == 10) && (value < 0)) in __itoa()
58 __utoa (uvalue, &str[i], base); in __itoa()
65 int base) in itoa() argument
67 return __itoa (value, str, base); in itoa()
Dutoa.c34 int base) in __utoa() argument
42 if ((base < 2) || (base > 36)) in __utoa()
52 remainder = value % base; in __utoa()
54 value = value / base; in __utoa()
72 int base) in utoa() argument
74 return __utoa (value, str, base); in utoa()
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/
Dstrtoi.h42 unsigned int base = ibase; in strtoi() local
45 if (base > 36 || base == 1) { in strtoi()
76 if (TOLOWER(*s) == 'x' && ((base | 16) == 16)) { in strtoi()
77 base = 16; in strtoi()
82 } else if (base == 0) { in strtoi()
83 base = 8; in strtoi()
85 } else if (base == 0) { in strtoi()
86 base = 10; in strtoi()
94 strtoi_type cutoff = ucutoff / base; in strtoi()
95 unsigned int cutlim = ucutoff % base; in strtoi()
[all …]
Dultoa_invert.c110 udivmod(ultoa_unsigned_t val, int base, char *dig) in udivmod() argument
112 switch(base) { in udivmod()
132 __ultoa_invert(ultoa_unsigned_t val, char *str, int base) in __ultoa_invert() argument
134 char hex = ('a' - '0' - 10 + 16) - base; in __ultoa_invert()
136 base &= 31; in __ultoa_invert()
142 val = udivmod(val, base, &v); in __ultoa_invert()
144 v = val % base; in __ultoa_invert()
145 val /= base; in __ultoa_invert()
Dvfscanf.c106 conv_int (FILE *stream, int *lenp, width_t width, void *addr, uint16_t flags, unsigned int base) in conv_int() argument
131 if (TOLOWER(i) == 'x' && (base == 0 || base == 16)) { in conv_int()
132 base = 16; in conv_int()
136 } else if (i == 'b' && base <= 2) { in conv_int()
137 base = 2; in conv_int()
141 } else if (base == 0 || base == 8) { in conv_int()
142 base = 8; in conv_int()
144 } else if (base == 0) in conv_int()
145 base = 10; in conv_int()
149 if (c >= base) { in conv_int()
[all …]
Dryu_table.c97 const uint32_t base = i / POW5_TABLE_SIZE; in __double_computePow5() local
98 const uint32_t base2 = base * POW5_TABLE_SIZE; in __double_computePow5()
100 const uint64_t* const mul = DOUBLE_POW5_SPLIT2[base]; in __double_computePow5()
117 const uint32_t base = (i + POW5_TABLE_SIZE - 1) / POW5_TABLE_SIZE; in __double_computeInvPow5() local
118 const uint32_t base2 = base * POW5_TABLE_SIZE; in __double_computeInvPow5()
120 const uint64_t* const mul = DOUBLE_POW5_INV_SPLIT2[base]; // 1/5^base2 in __double_computeInvPow5()
140 const uint32_t base = i / POW5_TABLE_SIZE; in __double_computePow5() local
141 const uint32_t base2 = base * POW5_TABLE_SIZE; in __double_computePow5()
143 const uint64_t* const mul = DOUBLE_POW5_SPLIT2[base]; in __double_computePow5()
166 const uint32_t base = (i + POW5_TABLE_SIZE - 1) / POW5_TABLE_SIZE; in __double_computeInvPow5() local
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/locale/
Dnewlocale.c116 struct __locale_t *base) in newlocale() argument
120 (void) base; in newlocale()
143 if ((!base && category_mask == 0) in newlocale()
166 strcpy (new_categories[i], base ? base->categories[i] : "C"); in newlocale()
173 if (base && (((1 << i) & category_mask) == 0 in newlocale()
174 || !strcmp (base->categories[i], new_categories[i]))) in newlocale()
179 tmp_locale.wctomb = base->wctomb; in newlocale()
180 tmp_locale.mbtowc = base->mbtowc; in newlocale()
181 tmp_locale.cjk_lang = base->cjk_lang; in newlocale()
182 tmp_locale.ctype_ptr = base->ctype_ptr; in newlocale()
[all …]
/picolibc-3.7.0-3.6.0/picocrt/machine/riscv/
Dcrt0.c120 #define SAVE_REGS_8(base) \ in _trap() argument
121 SAVE_REG(base+0); SAVE_REG(base+1); SAVE_REG(base+2); SAVE_REG(base+3); \ in _trap()
122 SAVE_REG(base+4); SAVE_REG(base+5); SAVE_REG(base+6); SAVE_REG(base+7) in _trap()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/arm/
Dmemcpy-armv7a.S109 .macro cpy_line_vfp vreg, base
110 vstr \vreg, [dst, #\base]
111 vldr \vreg, [src, #\base]
112 vstr d0, [dst, #\base + 8]
113 vldr d0, [src, #\base + 8]
114 vstr d1, [dst, #\base + 16]
115 vldr d1, [src, #\base + 16]
116 vstr d2, [dst, #\base + 24]
117 vldr d2, [src, #\base + 24]
118 vstr \vreg, [dst, #\base + 32]
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/
Dnano-vfscanf_i.c132 if (pdata->base == 0) in _scanf_i()
134 pdata->base = 8; in _scanf_i()
143 pdata->base = 16; in _scanf_i()
161 if (pdata->base == 0) in _scanf_i()
162 pdata->base = 10; in _scanf_i()
167 if (pdata->base != 16) in _scanf_i()
169 xdigits = xdigits + 16 - pdata->base; in _scanf_i()
217 ul = (*ccfn) (pdata->buf, (char **) NULL, pdata->base); in _scanf_i()
Dnano-vfprintf_i.c115 int base; in _printf_i() local
135 base = 10; in _printf_i()
140 base = (pdata->code == 'o') ? 8 : 10; in _printf_i()
163 base = 16; in _printf_i()
192 *--cp = xdigs[_uquad % base]; in _printf_i()
193 _uquad /= base; in _printf_i()
199 if (base == 8 && (pdata->flags & ALT) && pdata->prec <= pdata->size) in _printf_i()
/picolibc-3.7.0-3.6.0/test/
Dlong_double.c216 long double base = 10.0L; in naive_strtold() local
225 base = 16.0L; in naive_strtold()
228 frac_mul = 1.0L / base; in naive_strtold()
239 if (base == 16.0L) { in naive_strtold()
263 if (base == 10.0L) { in naive_strtold()
271 if (base == 10.0L) { in naive_strtold()
287 if (base == 10.0L) { in naive_strtold()
307 v = v * base + digit; in naive_strtold()
311 frac_mul *= 1.0L / base; in naive_strtold()
318 if (base == 10.0L) { in naive_strtold()

123