/picolibc-latest/picocrt/machine/x86/ |
D | crt0-64.S | 61 # set the page table base address 139 #define page1(base) \ argument 140 ((0x00000000000000E7) | ((base) << 21)) 141 #define page2(base) \ argument 142 page1(base), \ 143 page1((base)+1) 144 #define page4(base) \ argument 145 page2(base), \ 146 page2((base)+2) 147 #define page8(base) \ argument [all …]
|
/picolibc-latest/newlib/libc/stdlib/ |
D | strtol.c | 123 char **__restrict endptr, int base, locale_t loc) in _strtol_l() argument 131 if (base < 0 || base == 1 || base > 36) { in _strtol_l() 151 if ((base == 0 || base == 16) && in _strtol_l() 157 base = 16; in _strtol_l() 159 if (base == 0) in _strtol_l() 160 base = c == '0' ? 8 : 10; in _strtol_l() 180 cutlim = cutoff % (unsigned long)base; in _strtol_l() 181 cutoff /= (unsigned long)base; in _strtol_l() 191 if (c >= base) in _strtol_l() 197 acc *= base; in _strtol_l() [all …]
|
D | strtoull.c | 127 char **__restrict endptr, int base, locale_t loc) in _strtoull_l() argument 146 if ((base == 0 || base == 16) && in _strtoull_l() 150 base = 16; in _strtoull_l() 152 if (base == 0) in _strtoull_l() 153 base = c == '0' ? 8 : 10; in _strtoull_l() 154 cutoff = (unsigned long long)ULLONG_MAX / (unsigned long long)base; in _strtoull_l() 155 cutlim = (unsigned long long)ULLONG_MAX % (unsigned long long)base; in _strtoull_l() 165 if (c >= base) in _strtoull_l() 171 acc *= base; in _strtoull_l() 188 strtoull_l (const char *__restrict s, char **__restrict ptr, int base, in strtoull_l() argument [all …]
|
D | strtoumax.c | 58 char ** __restrict endptr, int base, locale_t loc) in strtoumax_l() argument 80 if ((base == 0 || base == 16) && in strtoumax_l() 84 base = 16; in strtoumax_l() 86 if (base == 0) in strtoumax_l() 87 base = c == '0' ? 8 : 10; in strtoumax_l() 89 if (base < 2 || base > 36) in strtoumax_l() 92 cutoff = UINTMAX_MAX / base; in strtoumax_l() 93 cutlim = UINTMAX_MAX % base; in strtoumax_l() 103 if (c >= base) in strtoumax_l() 109 acc *= base; in strtoumax_l() [all …]
|
D | wcstoull.c | 144 int base, locale_t loc) in wcstoull_l() argument 152 if(base < 0 || base == 1 || base > 36) { in wcstoull_l() 167 if ((base == 0 || base == 16) && in wcstoull_l() 171 base = 16; in wcstoull_l() 173 if (base == 0) in wcstoull_l() 174 base = c == L'0' ? 8 : 10; in wcstoull_l() 175 cutoff = (unsigned long long)ULLONG_MAX / (unsigned long long)base; in wcstoull_l() 176 cutlim = (unsigned long long)ULLONG_MAX % (unsigned long long)base; in wcstoull_l() 186 if ((int) c >= base) in wcstoull_l() 192 acc *= base; in wcstoull_l() [all …]
|
D | strtoimax.c | 57 strtoimax_l(const char * __restrict nptr, char ** __restrict endptr, int base, in strtoimax_l() argument 82 if ((base == 0 || base == 16) && in strtoimax_l() 86 base = 16; in strtoimax_l() 88 if (base == 0) in strtoimax_l() 89 base = c == '0' ? 8 : 10; in strtoimax_l() 91 if (base < 2 || base > 36) in strtoimax_l() 113 cutlim = cutoff % base; in strtoimax_l() 114 cutoff /= base; in strtoimax_l() 124 if (c >= base) in strtoimax_l() 130 acc *= base; in strtoimax_l() [all …]
|
D | strtoll.c | 131 char **__restrict endptr, int base, locale_t loc) in _strtoll_l() argument 152 if ((base == 0 || base == 16) && in _strtoll_l() 156 base = 16; in _strtoll_l() 158 if (base == 0) in _strtoll_l() 159 base = c == '0' ? 8 : 10; in _strtoll_l() 179 cutlim = cutoff % (unsigned long long)base; in _strtoll_l() 180 cutoff /= (unsigned long long)base; in _strtoll_l() 190 if (c >= base) in _strtoll_l() 196 acc *= base; in _strtoll_l() 213 strtoll_l (const char *__restrict s, char **__restrict ptr, int base, in strtoll_l() argument [all …]
|
D | strtoul.c | 130 strtoul_l (const char *__restrict nptr, char **__restrict endptr, int base, in strtoul_l() argument 150 if ((base == 0 || base == 16) && in strtoul_l() 154 base = 16; in strtoul_l() 156 if (base == 0) in strtoul_l() 157 base = c == '0' ? 8 : 10; in strtoul_l() 158 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base; in strtoul_l() 159 cutlim = (unsigned long)ULONG_MAX % (unsigned long)base; in strtoul_l() 169 if (c >= base) in strtoul_l() 175 acc *= base; in strtoul_l() 192 int base) in strtoul() argument [all …]
|
D | wcstoumax.c | 57 wchar_t ** __restrict endptr, int base, locale_t loc) in wcstoumax_l() argument 79 if ((base == 0 || base == 16) && in wcstoumax_l() 83 base = 16; in wcstoumax_l() 85 if (base == 0) in wcstoumax_l() 86 base = c == L'0' ? 8 : 10; in wcstoumax_l() 88 if (base < 2 || base > 36) in wcstoumax_l() 91 cutoff = UINTMAX_MAX / base; in wcstoumax_l() 92 cutlim = UINTMAX_MAX % base; in wcstoumax_l() 107 if ((int) c >= base) in wcstoumax_l() 113 acc *= base; in wcstoumax_l() [all …]
|
D | wcstoimax.c | 58 wchar_t ** __restrict endptr, int base, locale_t loc) in wcstoimax_l() argument 80 if ((base == 0 || base == 16) && in wcstoimax_l() 84 base = 16; in wcstoimax_l() 86 if (base == 0) in wcstoimax_l() 87 base = c == L'0' ? 8 : 10; in wcstoimax_l() 89 if (base < 2 || base > 36) in wcstoimax_l() 93 cutlim = cutoff % base; in wcstoimax_l() 94 cutoff /= base; in wcstoimax_l() 109 if ((int) c >= base) in wcstoimax_l() 115 acc *= base; in wcstoimax_l() [all …]
|
D | wcstol.c | 131 int base, locale_t loc) in wcstol_l() argument 152 if ((base == 0 || base == 16) && in wcstol_l() 156 base = 16; in wcstol_l() 158 if (base == 0) in wcstol_l() 159 base = c == L'0' ? 8 : 10; in wcstol_l() 179 cutlim = cutoff % (unsigned long)base; in wcstol_l() 180 cutoff /= (unsigned long)base; in wcstol_l() 190 if ((int) c >= base) in wcstol_l() 196 acc *= base; in wcstol_l() 214 int base) in wcstol() argument [all …]
|
D | wcstoll.c | 132 int base, locale_t loc) in wcstoll_l() argument 153 if ((base == 0 || base == 16) && in wcstoll_l() 157 base = 16; in wcstoll_l() 159 if (base == 0) in wcstoll_l() 160 base = c == L'0' ? 8 : 10; in wcstoll_l() 180 cutlim = cutoff % (unsigned long long)base; in wcstoll_l() 181 cutoff /= (unsigned long long)base; in wcstoll_l() 191 if ((int) c >= base) in wcstoll_l() 197 acc *= base; in wcstoll_l() 214 int base) in wcstoll() argument [all …]
|
D | wcstoul.c | 132 int base, locale_t loc) in wcstoul_l() argument 151 if ((base == 0 || base == 16) && in wcstoul_l() 155 base = 16; in wcstoul_l() 157 if (base == 0) in wcstoul_l() 158 base = c == L'0' ? 8 : 10; in wcstoul_l() 159 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base; in wcstoul_l() 160 cutlim = (unsigned long)ULONG_MAX % (unsigned long)base; in wcstoul_l() 170 if ((int) c >= base) in wcstoul_l() 176 acc *= base; in wcstoul_l() 193 int base) in wcstoul() argument [all …]
|
D | itoa.c | 37 int base) in __itoa() argument 43 if ((base < 2) || (base > 36)) in __itoa() 51 if ((base == 10) && (value < 0)) in __itoa() 59 __utoa (uvalue, &str[i], base); in __itoa() 66 int base) in itoa() argument 68 return __itoa (value, str, base); in itoa()
|
D | utoa.c | 35 int base) in __utoa() argument 43 if ((base < 2) || (base > 36)) in __utoa() 53 remainder = value % base; in __utoa() 55 value = value / base; in __utoa() 73 int base) in utoa() argument 75 return __utoa (value, str, base); in utoa()
|
/picolibc-latest/newlib/libc/tinystdio/ |
D | strtoi.h | 43 unsigned int base = ibase; in strtoi() local 46 if (base > 36 || base == 1) { in strtoi() 77 if (TOLOWER(*s) == 'x' && ((base | 16) == 16)) { in strtoi() 78 base = 16; in strtoi() 83 } else if (base == 0) { in strtoi() 84 base = 8; in strtoi() 86 } else if (base == 0) { in strtoi() 87 base = 10; in strtoi() 95 strtoi_type cutoff = ucutoff / base; in strtoi() 96 unsigned int cutlim = ucutoff % base; in strtoi() [all …]
|
D | ultoa_invert.c | 110 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()
|
D | ryu_table.c | 97 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 …]
|
D | vfscanf.c | 253 …LE *stream, scanf_context_t *context, width_t width, void *addr, uint16_t flags, unsigned int base) in conv_int() argument 278 if (TOLOWER(i) == 'x' && (base == 0 || base == 16)) { in conv_int() 279 base = 16; in conv_int() 283 } else if (i == 'b' && base <= 2) { in conv_int() 284 base = 2; in conv_int() 288 } else if (base == 0 || base == 8) { in conv_int() 289 base = 8; in conv_int() 291 } else if (base == 0) in conv_int() 292 base = 10; in conv_int() 296 if (c >= base) { in conv_int() [all …]
|
D | strtol_l.c | 41 int base, in strtol_l() argument 45 return strtol(s, ptr, base); in strtol_l()
|
/picolibc-latest/newlib/libc/locale/ |
D | newlocale.c | 110 struct __locale_t *base) in newlocale() argument 114 (void) base; in newlocale() 124 if ((!base && category_mask == 0) in newlocale() 156 strcpy (new_categories[i], base ? base->categories[i] : "C"); in newlocale() 163 if (base && (((1 << i) & category_mask) == 0 in newlocale() 164 || !strcmp (base->categories[i], new_categories[i]))) in newlocale() 169 tmp_locale.wctomb = base->wctomb; in newlocale() 170 tmp_locale.mbtowc = base->mbtowc; in newlocale() 171 tmp_locale.cjk_lang = base->cjk_lang; in newlocale() 172 tmp_locale.ctype_ptr = base->ctype_ptr; in newlocale() [all …]
|
/picolibc-latest/picocrt/machine/riscv/ |
D | crt0.c | 121 #define SAVE_REGS_8(base) \ in _trap() argument 122 SAVE_REG(base+0); SAVE_REG(base+1); SAVE_REG(base+2); SAVE_REG(base+3); \ in _trap() 123 SAVE_REG(base+4); SAVE_REG(base+5); SAVE_REG(base+6); SAVE_REG(base+7) in _trap()
|
/picolibc-latest/newlib/libc/machine/arm/ |
D | memcpy-armv7a.S | 113 .macro cpy_line_vfp vreg, base 114 vstr \vreg, [dst, #\base] 115 vldr \vreg, [src, #\base] 116 vstr d0, [dst, #\base + 8] 117 vldr d0, [src, #\base + 8] 118 vstr d1, [dst, #\base + 16] 119 vldr d1, [src, #\base + 16] 120 vstr d2, [dst, #\base + 24] 121 vldr d2, [src, #\base + 24] 122 vstr \vreg, [dst, #\base + 32] [all …]
|
/picolibc-latest/newlib/libc/stdio/ |
D | nano-vfscanf_i.c | 130 if (pdata->base == 0) in _scanf_i() 132 pdata->base = 8; in _scanf_i() 141 pdata->base = 16; in _scanf_i() 159 if (pdata->base == 0) in _scanf_i() 160 pdata->base = 10; in _scanf_i() 165 if (pdata->base != 16) in _scanf_i() 167 xdigits = xdigits + 16 - pdata->base; in _scanf_i() 215 ul = (*ccfn) (pdata->buf, (char **) NULL, pdata->base); in _scanf_i()
|
D | nano-vfprintf_i.c | 113 int base; in _printf_i() local 133 base = 10; in _printf_i() 138 base = (pdata->code == 'o') ? 8 : 10; in _printf_i() 161 base = 16; in _printf_i() 190 *--cp = xdigs[_uquad % base]; in _printf_i() 191 _uquad /= base; in _printf_i() 197 if (base == 8 && (pdata->flags & ALT) && pdata->prec <= pdata->size) in _printf_i()
|