Home
last modified time | relevance | path

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

12

/bionic/libc/stdlib/
Dstrtol.c44 strtol(const char *nptr, char **endptr, int base) in strtol() argument
68 if ((base == 0 || base == 16) && in strtol()
72 base = 16; in strtol()
74 if (base == 0) in strtol()
75 base = c == '0' ? 8 : 10; in strtol()
95 cutlim = cutoff % base; in strtol()
96 cutoff /= base; in strtol()
99 cutlim -= base; in strtol()
111 if (c >= base) in strtol()
122 acc *= base; in strtol()
[all …]
Dstrtoumax.c43 strtoumax(const char *nptr, char **endptr, int base) in strtoumax() argument
65 if ((base == 0 || base == 16) && in strtoumax()
69 base = 16; in strtoumax()
71 if (base == 0) in strtoumax()
72 base = c == '0' ? 8 : 10; in strtoumax()
80 switch (base) { in strtoumax()
85 cutoff = UINTMAX_MAX / base; in strtoumax()
86 cutlim = UINTMAX_MAX % base; in strtoumax()
96 if (c >= base) in strtoumax()
106 acc *= (uintmax_t)base; in strtoumax()
Dstrtoul.c43 strtoul(const char *nptr, char **endptr, int base) in strtoul() argument
65 if ((base == 0 || base == 16) && in strtoul()
69 base = 16; in strtoul()
71 if (base == 0) in strtoul()
72 base = c == '0' ? 8 : 10; in strtoul()
74 cutoff = ULONG_MAX / (unsigned long)base; in strtoul()
75 cutlim = ULONG_MAX % (unsigned long)base; in strtoul()
83 if (c >= base) in strtoul()
93 acc *= (unsigned long)base; in strtoul()
Dstrtoimax.c43 strtoimax(const char *nptr, char **endptr, int base) in strtoimax() argument
67 if ((base == 0 || base == 16) && in strtoimax()
71 base = 16; in strtoimax()
73 if (base == 0) in strtoimax()
74 base = c == '0' ? 8 : 10; in strtoimax()
107 switch (base) { in strtoimax()
123 cutlim = cutoff % base; in strtoimax()
124 cutoff /= base; in strtoimax()
130 cutlim -= base; in strtoimax()
142 if (c >= base) in strtoimax()
[all …]
Dstrtoll.c46 strtoll(const char *nptr, char **endptr, int base) in strtoll() argument
48 return strtoimax(nptr, endptr, base); in strtoll()
Dstrtoull.c46 strtoull(const char *nptr, char **endptr, int base) in strtoull() argument
48 return (unsigned long long)strtoumax(nptr, endptr, base); in strtoull()
/bionic/libc/upstream-netbsd/libc/inet/
Dinet_ntop.c135 struct { int base, len; } best, cur; in inet_ntop6() member
151 best.base = -1; in inet_ntop6()
153 cur.base = -1; in inet_ntop6()
157 if (cur.base == -1) in inet_ntop6()
158 cur.base = i, cur.len = 1; in inet_ntop6()
162 if (cur.base != -1) { in inet_ntop6()
163 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
165 cur.base = -1; in inet_ntop6()
169 if (cur.base != -1) { in inet_ntop6()
170 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
[all …]
Dinet_pton.c103 u_int digit, base; in inet_pton4() local
121 val = 0; base = 10; in inet_pton4()
125 base = 16, c = *++src; in inet_pton4()
127 base = 8; in inet_pton4()
130 if (pton && base != 10) in inet_pton4()
135 if (digit >= base) in inet_pton4()
137 val = (val * base) + digit; in inet_pton4()
139 } else if (base == 16 && isxdigit(c)) { in inet_pton4()
/bionic/libc/bionic/
Dstrntoumax.c49 strntoumax(const char *nptr, char **endptr, int base, size_t n) in strntoumax() argument
70 if ( base == 0 ) { in strntoumax()
73 base = 16; in strntoumax()
76 base = 8; in strntoumax()
78 base = 10; in strntoumax()
80 } else if ( base == 16 ) { in strntoumax()
86 while ( p < end && (d = digitval(*p)) >= 0 && d < base ) { in strntoumax()
87 v = v*base + d; in strntoumax()
Dstrntoimax.c31 intmax_t strntoimax(const char *nptr, char **endptr, int base, size_t n) in strntoimax() argument
33 return (intmax_t) strntoumax(nptr, endptr, base, n); in strntoimax()
Dmalloc_debug_leak.cpp277 void* base = dlmalloc(size); in leak_malloc() local
278 if (base != NULL) { in leak_malloc()
284 AllocationEntry* header = reinterpret_cast<AllocationEntry*>(base); in leak_malloc()
290 base = reinterpret_cast<AllocationEntry*>(base) + 1; in leak_malloc()
293 return base; in leak_malloc()
390 void* base = leak_malloc(size); in leak_memalign() local
391 if (base != NULL) { in leak_memalign()
392 uintptr_t ptr = reinterpret_cast<uintptr_t>(base); in leak_memalign()
394 return base; in leak_memalign()
405 header->entry = reinterpret_cast<HashEntry*>(base); in leak_memalign()
[all …]
Dmalloc_debug_check.cpp77 void* base; // Always points to the memory allocated using dlmalloc. member
321 dlfree(gone->base); in add_to_backlog()
330 hdr->base = hdr; in chk_malloc()
356 void* base = dlmalloc(sizeof(hdr_t) + size + sizeof(ftr_t)); in chk_memalign() local
357 if (base != NULL) { in chk_memalign()
360 uintptr_t ptr = reinterpret_cast<uintptr_t>(user(reinterpret_cast<hdr_t*>(base))); in chk_memalign()
367 hdr->base = base; in chk_memalign()
372 return base; in chk_memalign()
458 if (hdr->base != hdr) { in chk_realloc()
464 dlfree(hdr->base); in chk_realloc()
[all …]
Dlibc_logging.cpp154 static void format_unsigned(char* buf, size_t buf_size, uint64_t value, int base, bool caps) { in format_unsigned() argument
160 unsigned d = value % base; in format_unsigned()
161 value /= base; in format_unsigned()
193 int base = 10; in format_integer() local
195 base = 16; in format_integer()
197 base = 8; in format_integer()
207 format_unsigned(buf, buf_size, value, base, caps); in format_integer()
/bionic/libc/kernel/arch-mips/asm/
Ddiv64.h25base) ({ unsigned long __quot32, __mod32; unsigned long __cf, __tmp, __tmp2, __i; __asm__(… argument
26base) ({ unsigned long long __quot; unsigned long __mod; unsigned long long __div; unsigne… argument
30 …o_div(n, base) ({ unsigned long __quot; unsigned int __mod; unsigned long __div; unsigned … argument
/bionic/libc/upstream-netbsd/common/lib/libc/inet/
Dinet_addr.c128 int base; in inet_aton() local
144 val = 0; base = 10; digit = 0; in inet_aton()
148 base = 16, c = *++cp; in inet_aton()
150 base = 8; in inet_aton()
156 if (base == 8 && (c == '8' || c == '9')) in inet_aton()
158 val = (val * base) + (c - '0'); in inet_aton()
161 } else if (base == 16 && isascii(c) && in inet_aton()
/bionic/libc/upstream-netbsd/libc/stdlib/
Dbsearch.c65 const char *base = base0; in bsearch() local
75 p = base + (lim >> 1) * size; in bsearch()
80 base = (const char *)p + size; in bsearch()
/bionic/libc/stdio/
Dvfscanf.c112 int base; /* base argument to strtoimax/strtouimax */ in VFSCANF() local
125 base = 0; /* XXX just to keep gcc happy */ in VFSCANF()
216 base = 10; in VFSCANF()
221 base = 0; in VFSCANF()
230 base = 8; in VFSCANF()
236 base = 10; in VFSCANF()
244 base = 16; in VFSCANF()
276 base = 16; in VFSCANF()
311 base = 10; in VFSCANF()
484 if (base == 0) { in VFSCANF()
[all …]
/bionic/libc/kernel/arch-arm/asm/
Ddiv64.h31 #define do_div(n,base) ({ register unsigned int __base asm("r4") = base; register unsigned lon… argument
/bionic/libc/arch-arm/bionic/
Dmemcpy.a9.S112 .macro cpy_line_vfp vreg, base argument
113 vstr \vreg, [dst, #\base]
114 vldr \vreg, [src, #\base]
115 vstr d0, [dst, #\base + 8]
116 vldr d0, [src, #\base + 8]
117 vstr d1, [dst, #\base + 16]
118 vldr d1, [src, #\base + 16]
119 vstr d2, [dst, #\base + 24]
120 vldr d2, [src, #\base + 24]
121 vstr \vreg, [dst, #\base + 32]
[all …]
/bionic/tests/
Dbenchmark_main.cpp35 int base = 1; in Round() local
36 while (base*10 < n) { in Round()
37 base *= 10; in Round()
39 if (n < 2*base) { in Round()
40 return 2*base; in Round()
42 if (n < 5*base) { in Round()
43 return 5*base; in Round()
45 return 10*base; in Round()
/bionic/libc/kernel/arch-x86/asm/
Ddiv64.h22 #define do_div(n,base) ({ unsigned long __upper, __low, __high, __mod, __base; __base = (base);… argument
/bionic/libc/kernel/common/linux/
Dtimer.h32 struct tvec_t_base_s *base; member
35 … .function = (_function), .expires = (_expires), .data = (_data), .base = &boot_tvec_bases,…
/bionic/linker/
Dlinker.cpp184 map->l_addr = info->base; in insert_soinfo_into_debug_map()
408 if ((addr >= si->base) && (addr < (si->base + si->size))) { in dl_unwind_find_exidx()
447 name, si->name, si->base, hash, hash % si->nbucket); in soinfo_elf_lookup()
576 (*lsi)->name, (*lsi)->base, (*lsi)->load_bias); in soinfo_do_lookup()
620 name, s->st_value, (*found)->base); in dlsym_linear_lookup()
629 if (address >= si->base && address - si->base < si->size) { in find_containing_library()
637 Elf32_Addr soaddr = reinterpret_cast<Elf32_Addr>(addr) - si->base; in dladdr_find_symbol()
721 si->base = elf_reader.load_start(); in load_library()
774 si->base, si->size, si->name); in find_library_internal()
777 munmap(reinterpret_cast<void*>(si->base), si->size); in find_library_internal()
[all …]
/bionic/libc/kernel/arch-arm/asm/arch/
Dmcbsp.h35 #define OMAP_MCBSP_READ(base, reg) __raw_readw((base) + OMAP_MCBSP_REG_##reg) argument
36 #define OMAP_MCBSP_WRITE(base, reg, val) __raw_writew((val), (base) + OMAP_MCBSP_REG_##reg) argument
/bionic/libc/include/
Dftw.h52 int base; member

12