Searched refs:base (Results 1 - 25 of 42) sorted by relevance

12

/bionic/libc/stdlib/
H A Dstrntoimax.c31 intmax_t strntoimax(const char *nptr, char **endptr, int base, size_t n) argument
33 return (intmax_t) strntoumax(nptr, endptr, base, n);
H A Dstrtol.c44 strtol(const char *nptr, char **endptr, int base) argument
53 * If base is 0, allow 0x for hex and 0 for octal, else
54 * assume decimal; if base is already 16, allow 0x.
68 if ((base == 0 || base == 16) &&
72 base = 16;
74 if (base == 0)
75 base = c == '0' ? 8 : 10;
80 * base. An input number that is greater than this value, if
85 * [-2147483648..2147483647] and the input base i
[all...]
H A Dstrtoumax.c43 strtoumax(const char *nptr, char **endptr, int base) argument
65 if ((base == 0 || base == 16) &&
69 base = 16;
71 if (base == 0)
72 base = c == '0' ? 8 : 10;
80 switch (base) {
85 cutoff = UINTMAX_MAX / base;
86 cutlim = UINTMAX_MAX % base;
96 if (c >= base)
[all...]
H A Dstrtoul.c43 strtoul(const char *nptr, char **endptr, int base) argument
65 if ((base == 0 || base == 16) &&
69 base = 16;
71 if (base == 0)
72 base = c == '0' ? 8 : 10;
74 cutoff = ULONG_MAX / (unsigned long)base;
75 cutlim = ULONG_MAX % (unsigned long)base;
83 if (c >= base)
93 acc *= (unsigned long)base;
[all...]
H A Dstrtoimax.c43 strtoimax(const char *nptr, char **endptr, int base) argument
52 * If base is 0, allow 0x for hex and 0 for octal, else
53 * assume decimal; if base is already 16, allow 0x.
67 if ((base == 0 || base == 16) &&
71 base = 16;
73 if (base == 0)
74 base = c == '0' ? 8 : 10;
79 * base. An input number that is greater than this value, if
84 * [-9223372036854775808..9223372036854775807] and the input base
[all...]
H A Dbsearch.c41 * the base up one item past p: e.g., when lim is 5 we change base
52 const char *base = base0; local
57 p = base + (lim >> 1) * size;
60 base = (char *)p + size;
H A Dstrntoumax.c49 strntoumax(const char *nptr, char **endptr, int base, size_t n) argument
70 if ( base == 0 ) {
73 base = 16;
76 base = 8;
78 base = 10;
80 } else if ( base == 16 ) {
86 while ( p < end && (d = digitval(*p)) >= 0 && d < base ) {
87 v = v*base + d;
H A Dstrtoll.c46 strtoll(const char *nptr, char **endptr, int base) argument
48 return strtoimax(nptr, endptr, base);
H A Dstrtoull.c46 strtoull(const char *nptr, char **endptr, int base) argument
48 return (unsigned long long)strtoumax(nptr, endptr, base);
/bionic/libc/kernel/arch-arm/asm/
H A Ddiv64.h31 #define do_div(n,base) ({ register unsigned int __base asm("r4") = base; register unsigned long long __n asm("r0") = n; register unsigned long long __res asm("r2"); register unsigned int __rem asm(__xh); asm( __asmeq("%0", __xh) __asmeq("%1", "r2") __asmeq("%2", "r0") __asmeq("%3", "r4") "bl __do_div64" : "=r" (__rem), "=r" (__res) : "r" (__n), "r" (__base) : "ip", "lr", "cc"); n = __res; __rem; })
/bionic/libc/inet/
H A Dinet_ntop.c105 struct { int base, len; } best, cur; member in struct:__anon49
118 best.base = -1;
120 cur.base = -1;
124 if (cur.base == -1)
125 cur.base = i, cur.len = 1;
129 if (cur.base != -1) {
130 if (best.base == -1 || cur.len > best.len)
132 cur.base = -1;
136 if (cur.base != -1) {
137 if (best.base
[all...]
H A Dinet_aton.c71 int base, n; local
85 val = 0; base = 10;
89 base = 16, c = *++cp;
91 base = 8;
95 val = (val * base) + (c - '0');
97 } else if (base == 16 && isascii(c) && isxdigit(c)) {
H A Dinet_pton.c109 u_int digit, base; local
127 val = 0; base = 10;
131 base = 16, c = *++src;
133 base = 8;
136 if (pton && base != 10)
141 if (digit >= base)
143 val = (val * base) + digit;
145 } else if (base == 16 && isxdigit(c)) {
/bionic/libc/kernel/arch-mips/asm/
H A Ddiv64.h25 #define do_div64_32(res, high, low, base) ({ unsigned long __quot32, __mod32; unsigned long __cf, __tmp, __tmp2, __i; __asm__(".set push\n\t" ".set noat\n\t" ".set noreorder\n\t" "move %2, $0\n\t" "move %3, $0\n\t" "b 1f\n\t" " li %4, 0x21\n" "0:\n\t" "sll $1, %0, 0x1\n\t" "srl %3, %0, 0x1f\n\t" "or %0, $1, %5\n\t" "sll %1, %1, 0x1\n\t" "sll %2, %2, 0x1\n" "1:\n\t" "bnez %3, 2f\n\t" " sltu %5, %0, %z6\n\t" "bnez %5, 3f\n" "2:\n\t" " addiu %4, %4, -1\n\t" "subu %0, %0, %z6\n\t" "addiu %2, %2, 1\n" "3:\n\t" "bnez %4, 0b\n\t" " srl %5, %1, 0x1f\n\t" ".set pop" : "=&r" (__mod32), "=&r" (__tmp), "=&r" (__quot32), "=&r" (__cf), "=&r" (__i), "=&r" (__tmp2) : "Jr" (base), "0" (high), "1" (low)); (res) = __quot32; __mod32; })
26 #define do_div(n, base) ({ unsigned long long __quot; unsigned long __mod; unsigned long long __div; unsigned long __upper, __low, __high, __base; __div = (n); __base = (base); __high = __div >> 32; __low = __div; __upper = __high; if (__high) __asm__("divu $0, %z2, %z3" : "=h" (__upper), "=l" (__high) : "Jr" (__high), "Jr" (__base) : GCC_REG_ACCUM); __mod = do_div64_32(__low, __upper, __low, __base); __quot = __high; __quot = __quot << 32 | __low; (n) = __quot; __mod; })
30 #define do_div(n, base) ({ unsigned long __quot; unsigned int __mod; unsigned long __div; unsigned int __base; __div = (n); __base = (base); __mod = __div % __base; __quot = __div / __base; (n) = __quot; __mod; })
/bionic/libc/kernel/arch-x86/asm/
H A Ddiv64.h22 #define do_div(n,base) ({ unsigned long __upper, __low, __high, __mod, __base; __base = (base); asm("":"=a" (__low), "=d" (__high):"A" (n)); __upper = __high; if (__high) { __upper = __high % (__base); __high = __high / (__base); } asm("divl %2":"=a" (__low), "=d" (__mod):"rm" (__base), "0" (__low), "1" (__upper)); asm("":"=A" (n):"a" (__low),"d" (__high)); __mod; })
H A Ddesc_32.h74 #define GET_DESC_BASE(idx, gdt, base, lo_w, lo_b, hi_b) movb idx*8+4(gdt), lo_b; movb idx*8+7(gdt), hi_b; shll $16, base; movw idx*8+2(gdt), lo_w;
/bionic/libc/kernel/common/linux/
H A Dtimer.h32 struct tvec_t_base_s *base; member in struct:timer_list
35 #define TIMER_INITIALIZER(_function, _expires, _data) { .function = (_function), .expires = (_expires), .data = (_data), .base = &boot_tvec_bases, }
/bionic/linker/
H A Dlinker.c177 map->l_addr = info->base;
324 if((addr >= si->base) && (addr < (si->base + si->size))) {
333 * Returns the base address of the .ARM.exidx section
348 if ((addr >= si->base) && (addr < (si->base + si->size))) {
350 return (_Unwind_Ptr)(si->base + (unsigned long)si->ARM_exidx);
388 name, si->name, si->base, hash, hash % si->nbucket);
426 _do_lookup(soinfo *si, const char *name, unsigned *base) argument
489 "found in %s, base
689 verify_elf_object(void *base, const char *name) argument
802 void *base = mmap((void *)si->base, si->size, PROT_NONE, local
831 void *base = mmap(NULL, si->size, PROT_NONE, local
873 Elf32_Addr base = (Elf32_Addr) si->base; local
1285 unsigned base; local
[all...]
H A Ddlfcn.c113 unsigned ret = sym->st_value + found->base;
141 info->dli_fbase = (void*)si->base;
148 info->dli_saddr = (void*)(si->base + sym->st_value);
/bionic/libc/stdio/
H A Dvfscanf.c112 int base; /* base argument to strtoimax/strtouimax */ local
125 base = 0; /* XXX just to keep gcc happy */
216 base = 10;
221 base = 0;
230 base = 8;
236 base = 10;
244 base = 16;
276 base = 16;
311 base
[all...]
/bionic/libc/tools/zoneinfo/
H A DZoneInfo.java56 int base = 44;
60 transitions[i] = read4(data, base + 4 * i);
61 base += 4 * ntransition;
65 type[i] = data[base + i];
66 base += ntransition;
72 gmtoff[i] = read4(data, base + 6 * i);
73 isdst[i] = data[base + 6 * i + 4];
74 abbrev[i] = data[base + 6 * i + 5];
77 base += 6 * ngmtoff;
79 return new ZoneInfo(name, transitions, type, gmtoff, isdst, abbrev, data, base);
[all...]
/bionic/libc/bionic/
H A Dmalloc_debug_leak.c264 // 2. set the base pointer to be right after our header
266 void* base = dlmalloc(bytes + sizeof(AllocationEntry)); local
267 if (base != NULL) {
273 AllocationEntry* header = (AllocationEntry*)base;
277 // now increment base to point to after our header.
279 base = (AllocationEntry*)base + 1;
284 return base;
376 void* base = leak_malloc(size); local
377 if (base !
[all...]
/bionic/libc/kernel/arch-arm/asm/arch/
H A Dmcbsp.h35 #define OMAP_MCBSP_READ(base, reg) __raw_readw((base) + OMAP_MCBSP_REG_##reg)
36 #define OMAP_MCBSP_WRITE(base, reg, val) __raw_writew((val), (base) + OMAP_MCBSP_REG_##reg)
/bionic/libc/tools/
H A Dchecksyscalls.py91 base = 10
95 base = 16
96 dict["ARM_"+m.group(1)] = int(offset_str, base) + 0x0f0000
/bionic/libc/include/
H A Dinttypes.h257 intmax_t strntoimax(const char *nptr, char **endptr, int base, size_t n);
258 uintmax_t strntoumax(const char *nptr, char **endptr, int base, size_t n);

Completed in 242 milliseconds

12