| /third_party/ulib/jemalloc/src/ |
| A D | base.c | 127 assert(base->allocated <= base->resident); in base_extent_bump_alloc_post() 128 assert(base->resident <= base->mapped); in base_extent_bump_alloc_post() 194 assert(base->allocated <= base->resident); in base_extent_alloc() 195 assert(base->resident <= base->mapped); in base_extent_alloc() 209 base_t *base; in base_new() local 224 base->ind = ind; in base_new() 238 assert(base->allocated <= base->resident); in base_new() 239 assert(base->resident <= base->mapped); in base_new() 244 return (base); in base_new() 332 assert(base->allocated <= base->resident); in base_stats_get() [all …]
|
| A D | util.c | 35 static char *u2s(uintmax_t x, unsigned base, bool uppercase, char *s, 106 malloc_strtoumax(const char *restrict nptr, char **restrict endptr, int base) in malloc_strtoumax() argument 114 if (base < 0 || base == 1 || base > 36) { in malloc_strtoumax() 120 b = base; in malloc_strtoumax() 221 u2s(uintmax_t x, unsigned base, bool uppercase, char *s, size_t *slen_p) in u2s() argument 227 switch (base) { in u2s() 251 assert(base >= 2 && base <= 36); in u2s() 254 s[i] = digits[x % (uint64_t)base]; in u2s() 255 x /= (uint64_t)base; in u2s()
|
| /third_party/ulib/musl/src/internal/ |
| A D | intscan.c | 26 if (base > 36) { in __intscan() 36 if ((base == 0 || base == 16) && c == '0') { in __intscan() 48 base = 16; in __intscan() 50 base = 8; in __intscan() 53 if (base == 0) in __intscan() 54 base = 10; in __intscan() 55 if (val[c] >= base) { in __intscan() 62 if (base == 10) { in __intscan() 70 } else if (!(base & (base - 1))) { in __intscan() 79 for (y = x; val[c] < base && y <= ULLONG_MAX / base && base * y <= ULLONG_MAX - val[c]; in __intscan() [all …]
|
| /third_party/ulib/jemalloc/test/unit/ |
| A D | base.c | 30 base_t *base; in TEST_BEGIN() local 51 base_delete(base); in TEST_BEGIN() 59 base_t *base; in TEST_BEGIN() local 71 base = base_new(tsdn, 0, &hooks); in TEST_BEGIN() 89 base_delete(base); in TEST_BEGIN() 99 base_t *base; in TEST_BEGIN() local 112 base = base_new(tsdn, 0, &hooks); in TEST_BEGIN() 134 p = base_alloc(tsdn, base, 1, alignment); in TEST_BEGIN() 146 r = base_alloc(tsdn, base, 1, alignment); in TEST_BEGIN() 173 r = base_alloc(tsdn, base, QUANTUM, QUANTUM); in TEST_BEGIN() [all …]
|
| /third_party/ulib/musl/src/stdlib/ |
| A D | strtol.c | 20 unsigned long long y = __intscan(&f, base, 1, lim); in strtox() 29 return strtox(s, p, base, ULLONG_MAX); in strtoull() 32 long long strtoll(const char* restrict s, char** restrict p, int base) { in strtoll() argument 33 return strtox(s, p, base, LLONG_MIN); in strtoll() 37 return strtox(s, p, base, ULONG_MAX); in strtoul() 40 long strtol(const char* restrict s, char** restrict p, int base) { in strtol() argument 41 return strtox(s, p, base, 0UL + LONG_MIN); in strtol() 44 intmax_t strtoimax(const char* restrict s, char** restrict p, int base) { in strtoimax() argument 45 return strtoll(s, p, base); in strtoimax() 48 uintmax_t strtoumax(const char* restrict s, char** restrict p, int base) { in strtoumax() argument [all …]
|
| A D | wcstol.c | 46 unsigned long long y = __intscan(&f, base, 1, lim); in wcstox() 55 return wcstox(s, p, base, ULLONG_MAX); in wcstoull() 58 long long wcstoll(const wchar_t* restrict s, wchar_t** restrict p, int base) { in wcstoll() argument 59 return wcstox(s, p, base, LLONG_MIN); in wcstoll() 63 return wcstox(s, p, base, ULONG_MAX); in wcstoul() 66 long wcstol(const wchar_t* restrict s, wchar_t** restrict p, int base) { in wcstol() argument 67 return wcstox(s, p, base, 0UL + LONG_MIN); in wcstol() 70 intmax_t wcstoimax(const wchar_t* restrict s, wchar_t** restrict p, int base) { in wcstoimax() argument 71 return wcstoll(s, p, base); in wcstoimax() 74 uintmax_t wcstoumax(const wchar_t* restrict s, wchar_t** restrict p, int base) { in wcstoumax() argument [all …]
|
| A D | bsearch.c | 3 void* bsearch(const void* key, const void* base, size_t nel, size_t width, in bsearch() argument 10 = (char*)base + width * (nel / 2); in bsearch() 20 base = try in bsearch()
|
| /third_party/ulib/backtrace/ |
| A D | sort.c | 64 char *base = (char *) basearg; in backtrace_qsort() local 76 swap (base, base + (count / 2) * size, size); in backtrace_qsort() 81 if ((*compar) (base, base + i * size) > 0) in backtrace_qsort() 85 swap (base + mid * size, base + i * size, size); in backtrace_qsort() 90 swap (base, base + mid * size, size); in backtrace_qsort() 96 backtrace_qsort (base, mid, size, compar); in backtrace_qsort() 97 base += (mid + 1) * size; in backtrace_qsort() 103 backtrace_qsort (base + (mid + 1) * size, count - (mid + 1), in backtrace_qsort()
|
| A D | alloc.c | 89 void *base; in backtrace_vector_grow() local 101 base = realloc (vec->base, alc); in backtrace_vector_grow() 102 if (base == NULL) in backtrace_vector_grow() 108 vec->base = base; in backtrace_vector_grow() 112 ret = (char *) vec->base + vec->size; in backtrace_vector_grow() 133 ret = vec->base; in backtrace_vector_finish() 134 vec->base = NULL; in backtrace_vector_finish() 148 vec->base = realloc (vec->base, vec->size); in backtrace_vector_release() 149 if (vec->base == NULL) in backtrace_vector_release()
|
| A D | read.c | 61 view->base = backtrace_alloc (state, size, error_callback, data); in backtrace_get_view() 62 if (view->base == NULL) in backtrace_get_view() 64 view->data = view->base; in backtrace_get_view() 67 got = read (descriptor, view->base, size); in backtrace_get_view() 71 free (view->base); in backtrace_get_view() 78 free (view->base); in backtrace_get_view() 93 backtrace_free (state, view->base, view->len, error_callback, data); in backtrace_release_view() 95 view->base = NULL; in backtrace_release_view()
|
| A D | mmap.c | 227 void *base; in backtrace_vector_grow() local 244 base = backtrace_alloc (state, alc, error_callback, data); in backtrace_vector_grow() 245 if (base == NULL) in backtrace_vector_grow() 247 if (vec->base != NULL) in backtrace_vector_grow() 249 memcpy (base, vec->base, vec->size); in backtrace_vector_grow() 250 backtrace_free (state, vec->base, vec->size + vec->alc, in backtrace_vector_grow() 253 vec->base = base; in backtrace_vector_grow() 257 ret = (char *) vec->base + vec->size; in backtrace_vector_grow() 274 ret = vec->base; in backtrace_vector_finish() 275 vec->base = (char *) vec->base + vec->size; in backtrace_vector_finish() [all …]
|
| /third_party/ulib/jemalloc/include/jemalloc/internal/ |
| A D | base_externs.h | 8 void base_delete(base_t *base); 9 extent_hooks_t *base_extent_hooks_get(base_t *base); 10 extent_hooks_t *base_extent_hooks_set(base_t *base, 12 void *base_alloc(tsdn_t *tsdn, base_t *base, size_t size, size_t alignment); 13 void base_stats_get(tsdn_t *tsdn, base_t *base, size_t *allocated, 15 void base_prefork(tsdn_t *tsdn, base_t *base); 16 void base_postfork_parent(tsdn_t *tsdn, base_t *base); 17 void base_postfork_child(tsdn_t *tsdn, base_t *base);
|
| A D | base_inlines.h | 5 unsigned base_ind_get(const base_t *base); 10 base_ind_get(const base_t *base) in base_ind_get() argument 12 return (base->ind); in base_ind_get()
|
| /third_party/ulib/musl/ldso/ |
| A D | dlstart.c | 22 ElfW(Addr) base = (uintptr_t)__ehdr_start; in _dl_start() 35 rel = (const void*)(base + d->d_un.d_ptr); in _dl_start() 38 rela = (const void*)(base + d->d_un.d_ptr); in _dl_start() 41 relr = (const void*)(base + d->d_un.d_ptr); in _dl_start() 61 ElfW(Addr)* addr = (uintptr_t*)(base + rel[i].r_offset); in _dl_start() 63 *addr += base; in _dl_start() 67 ElfW(Addr)* addr = (uintptr_t*)(base + rela[i].r_offset); in _dl_start() 69 *addr = base + rela[i].r_addend; in _dl_start() 72 apply_relr(base, relr, relrsz); in _dl_start()
|
| A D | relr.h | 7 __NO_SAFESTACK NO_ASAN static inline void apply_relr(ElfW(Addr) base, in apply_relr() argument 13 ElfW(Addr)* addr = (void*)(base + relr[i++]); in apply_relr() 14 *addr++ += base; in apply_relr() 28 run[-1] += base; in apply_relr()
|
| /third_party/ulib/musl/src/network/ |
| A D | dn_comp.c | 8 static int getoffs(short* offs, const unsigned char* base, const unsigned char* s) { in getoffs() argument 14 s = base + ((s[0] & 0x3f) << 8 | s[1]); in getoffs() 18 if (s - base >= 0x4000) in getoffs() 20 offs[i++] = s - base; in getoffs() 41 static int match(int* offset, const unsigned char* base, const unsigned char* dn, const char* end, in match() argument 45 int noff = getoffs(offs, base, dn); in match() 52 if (l != base[o] || memcmp(base + o + 1, end, l)) in match()
|
| A D | dn_expand.c | 4 int __dn_expand(const unsigned char* base, const unsigned char* end, const unsigned char* src, in __dn_expand() argument 13 for (i = 0; i < end - base; i += 2) { in __dn_expand() 21 if (j >= end - base) in __dn_expand() 23 p = base + j; in __dn_expand()
|
| /third_party/ulib/musl/src/time/ |
| A D | timespec_get.c | 7 int timespec_get(struct timespec* ts, int base) { in timespec_get() argument 8 if (base != TIME_UTC) in timespec_get() 11 return ret < 0 ? 0 : base; in timespec_get()
|
| /third_party/ulib/lz4/ |
| A D | lz4hc.c | 121 hc4->base = start - 64 KB; in LZ4HC_init() 134 const BYTE* const base = hc4->base; in LZ4HC_Insert() local 135 const U32 target = (U32)(ip - base); in LZ4HC_Insert() 140 U32 h = LZ4HC_hashPtr(base+idx); in LZ4HC_Insert() 159 const BYTE* const base = hc4->base; in LZ4HC_InsertAndFindBestMatch() local 162 …const U32 lowLimit = (hc4->lowLimit + 64 KB > (U32)(ip-base)) ? hc4->lowLimit : (U32)(ip - base) -… in LZ4HC_InsertAndFindBestMatch() 177 match = base + matchIndex; in LZ4HC_InsertAndFindBestMatch() 218 const BYTE* const base = hc4->base; in LZ4HC_InsertAndGetWiderMatch() local 593 if (ctxPtr->end >= ctxPtr->base + 4) in LZ4HC_setExternalDict() 598 ctxPtr->dictBase = ctxPtr->base; in LZ4HC_setExternalDict() [all …]
|
| /third_party/ulib/musl/sanitizers/ |
| A D | __asan_early_init.c | 30 uintptr_t top = info.base + info.len; in __asan_early_init() 54 0, shadow_virtual_size - info.base, &shadow_vmar, &shadow_addr); in __asan_early_init() 55 if (status != ZX_OK || shadow_addr != info.base) in __asan_early_init() 62 ((((info.base + info.len) >> ASAN_SHADOW_SHIFT) + in __asan_early_init() 77 shadow_shadow_size - info.base, vmo, 0, shadow_used_size, &shadow_addr); in __asan_early_init()
|
| /third_party/ulib/musl/src/stdio/ |
| A D | open_memstream.c | 16 ssize_t base; in ms_seek() local 23 base = (size_t[3]){0, c->pos, c->len}[whence]; in ms_seek() 24 if (off < -base || off > SSIZE_MAX - base) in ms_seek() 26 return c->pos = base + off; in ms_seek()
|
| A D | open_wmemstream.c | 18 ssize_t base; in wms_seek() local 25 base = (size_t[3]){0, c->pos, c->len}[whence]; in wms_seek() 26 if (off < -base || off > SSIZE_MAX / 4 - base) in wms_seek() 29 return c->pos = base + off; in wms_seek()
|
| A D | fmemopen.c | 13 ssize_t base; in mseek() local 20 base = (size_t[3]){0, c->pos, c->len}[whence]; in mseek() 21 if (off < -base || off > (ssize_t)c->size - base) in mseek() 23 return c->pos = base + off; in mseek()
|
| /third_party/lib/jitterentropy/ |
| A D | Makefile | 15 LIBMAJOR=$(shell cat jitterentropy-base.c | grep define | grep MAJVERSION | awk '{print $$3}') 16 LIBMINOR=$(shell cat jitterentropy-base.c | grep define | grep MINVERSION | awk '{print $$3}') 17 LIBPATCH=$(shell cat jitterentropy-base.c | grep define | grep PATCHLEVEL | awk '{print $$3}') 21 C_SRCS := jitterentropy-base.c
|
| /third_party/ulib/musl/src/misc/ |
| A D | nftw.c | 14 int base; member 60 new.base = l + 1; in do_nftw() 63 lev.base = h ? h->base : (name = strrchr(path, '/')) ? name - path : 0; in do_nftw()
|