Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 32) 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 …]
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()
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()
Dbsearch.c52 const char *base = base0; in bsearch() local
57 p = base + (lim >> 1) * size; in bsearch()
62 base = (char *)p + size; in bsearch()
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()
/bionic/libc/inet/
Dinet_ntop.c105 struct { int base, len; } best, cur; in inet_ntop6() member
118 best.base = -1; in inet_ntop6()
120 cur.base = -1; in inet_ntop6()
124 if (cur.base == -1) in inet_ntop6()
125 cur.base = i, cur.len = 1; in inet_ntop6()
129 if (cur.base != -1) { in inet_ntop6()
130 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
132 cur.base = -1; in inet_ntop6()
136 if (cur.base != -1) { in inet_ntop6()
137 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
[all …]
Dinet_aton.c71 int base, n; in inet_aton() local
85 val = 0; base = 10; in inet_aton()
89 base = 16, c = *++cp; in inet_aton()
91 base = 8; in inet_aton()
95 val = (val * base) + (c - '0'); in inet_aton()
97 } else if (base == 16 && isascii(c) && isxdigit(c)) { in inet_aton()
/bionic/linker/
Dlinker.c153 map->l_addr = info->base; in insert_soinfo_into_debug_map()
309 if((addr >= si->base) && (addr < (si->base + si->size))) { in addr_to_name()
338 if ((addr >= si->base) && (addr < (si->base + si->size))) { in dl_unwind_find_exidx()
340 return (_Unwind_Ptr)(si->base + (unsigned long)si->ARM_exidx); in dl_unwind_find_exidx()
379 name, si->name, si->base, hash, hash % si->nbucket); in _elf_lookup()
432 _do_lookup(soinfo *user_si, const char *name, unsigned *base) in _do_lookup() argument
444 *base = user_si->base; in _do_lookup()
453 *base = si->base; in _do_lookup()
460 "si->base = 0x%08x\n", pid, name, s->st_value, si->base); in _do_lookup()
468 Elf32_Sym *lookup(const char *name, unsigned *base) in lookup() argument
[all …]
Ddlfcn.c77 unsigned base; in dlsym() local
93 sym = lookup(symbol, &base); in dlsym()
95 sym = lookup(symbol, &base); in dlsym()
98 base = ((soinfo*) handle)->base; in dlsym()
105 unsigned ret = sym->st_value + base; in dlsym()
Dba.c40 unsigned long base; member
63 #define BA_START_ADDR(index) (BA_OFFSET(index) + ba.base)
69 .base = BA_START,
Dlinker.h96 unsigned base; member
206 Elf32_Sym *lookup(const char *name, unsigned *base);
/bionic/libc/kernel/arch-arm/asm/
Ddiv64.h25 #define do_div(n,base) ({ register unsigned int __base asm("r4") = base; register unsigned lon… argument
/bionic/libc/stdio/
Dvfscanf.c112 int base; /* base argument to strtoimax/strtouimax */ in VFSCANF() local
124 base = 0; /* XXX just to keep gcc happy */ in VFSCANF()
207 base = 10; in VFSCANF()
212 base = 0; in VFSCANF()
221 base = 8; in VFSCANF()
227 base = 10; in VFSCANF()
235 base = 16; in VFSCANF()
267 base = 16; in VFSCANF()
301 base = 10; in VFSCANF()
474 if (base == 0) { in VFSCANF()
[all …]
/bionic/libc/kernel/common/linux/
Dtimer.h28 struct tvec_t_base_s *base; member
31 … .function = (_function), .expires = (_expires), .data = (_data), .base = &boot_tvec_bases,…
/bionic/libc/kernel/arch-arm/asm/arch/
Dmcbsp.h31 #define OMAP_MCBSP_READ(base, reg) __raw_readw((base) + OMAP_MCBSP_REG_##reg) argument
32 #define OMAP_MCBSP_WRITE(base, reg, val) __raw_writew((val), (base) + OMAP_MCBSP_REG_##reg) argument
/bionic/libc/bionic/
Dmalloc_leak.c740 void* base = dlmalloc(bytes + sizeof(AllocationEntry)); in leak_malloc() local
741 if (base != NULL) { in leak_malloc()
747 AllocationEntry* header = (AllocationEntry*)base; in leak_malloc()
753 base = (AllocationEntry*)base + 1; in leak_malloc()
758 return base; in leak_malloc()
850 void* base = leak_malloc(size); in leak_memalign() local
851 if (base != NULL) { in leak_memalign()
852 intptr_t ptr = (intptr_t)base; in leak_memalign()
854 return base; in leak_memalign()
861 ((void**)ptr)[-2] = base; in leak_memalign()
[all …]
Ddlmalloc.c1128 mspace create_mspace_with_base(void* base, size_t capacity, int locked);
1975 char* base; /* base address */ member
2164 ((char*)(A) >= S->base && (char*)(A) < S->base + S->size)
2170 if (addr >= sp->base && addr < sp->base + sp->size) in segment_holding()
2181 if ((char*)sp >= ss->base && (char*)sp < ss->base + ss->size) in has_segment_link()
2637 assert(sz == ((sp->base + sp->size) - (char*)p) - TOP_FOOT_SIZE); in do_check_top_chunk()
2833 mchunkptr q = align_as_chunk(s->base); in traverse_and_check()
2905 mchunkptr q = align_as_chunk(s->base); in internal_mallinfo()
2947 mchunkptr q = align_as_chunk(s->base); in internal_malloc_stats()
3345 m->seg.base = 0; in reset_on_error()
[all …]
/bionic/libc/kernel/arch-x86/asm/
Ddesc_32.h63 …fine GET_DESC_BASE(idx, gdt, base, lo_w, lo_b, hi_b) movb idx*8+4(gdt), lo_b; movb idx*8+7(gdt… argument
/bionic/libc/tzcode/
Dstrftime.c444 int base; local
450 base = TM_YEAR_BASE;
458 len = isleap_sum(year, base) ?
477 ++base;
486 --base;
487 yday += isleap_sum(year, base) ?
508 pt = _yconv(year, base, 0, 1,
510 } else pt = _yconv(year, base, 1, 1,
/bionic/libc/netbsd/resolv/
Dres_cache.c323 XLOG_BYTES( const void* base, int len ) in XLOG_BYTES() argument
328 p = _bprint_hexdump(p, end, base, len); in XLOG_BYTES()
442 const uint8_t* base; member
450 packet->base = buff; in _dnsPacket_init()
458 packet->cursor = packet->base; in _dnsPacket_rewind()
577 const uint8_t* p = packet->base; in _dnsPacket_checkQuery()
727 if (packet->base[2] & 0x1) { in _dnsPacket_bprintQuery()
828 hash = hash*FNV_MULT ^ (packet->base[2] & 1); in _dnsPacket_hashQuery()
936 if ((pack1->base[2] & 1) != (pack2->base[2] & 1)) { in _dnsPacket_isEqualQuery()
/bionic/libc/kernel/tools/
Dupdate_all.py47 base, ext = os.path.splitext(file) variable

12