/lib/ |
D | kstrtox.c | 23 const char *_parse_integer_fixup_radix(const char *s, unsigned int *base) in _parse_integer_fixup_radix() argument 25 if (*base == 0) { in _parse_integer_fixup_radix() 28 *base = 16; in _parse_integer_fixup_radix() 30 *base = 8; in _parse_integer_fixup_radix() 32 *base = 10; in _parse_integer_fixup_radix() 34 if (*base == 16 && s[0] == '0' && _tolower(s[1]) == 'x') in _parse_integer_fixup_radix() 47 unsigned int _parse_integer(const char *s, unsigned int base, unsigned long long *p) in _parse_integer() argument 66 if (val >= base) in _parse_integer() 73 if (res > div_u64(ULLONG_MAX - val, base)) in _parse_integer() 76 res = res * base + val; in _parse_integer() [all …]
|
D | sort.c | 47 void sort(void *base, size_t num, size_t size, in sort() argument 62 cmp_func(base + c, base + c + size) < 0) in sort() 64 if (cmp_func(base + r, base + c) >= 0) in sort() 66 swap_func(base + r, base + c, size); in sort() 72 swap_func(base, base + i, size); in sort() 76 cmp_func(base + c, base + c + size) < 0) in sort() 78 if (cmp_func(base + r, base + c) >= 0) in sort() 80 swap_func(base + r, base + c, size); in sort()
|
D | vsprintf.c | 44 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) in simple_strtoull() argument 49 cp = _parse_integer_fixup_radix(cp, &base); in simple_strtoull() 50 rv = _parse_integer(cp, base, &result); in simple_strtoull() 69 unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base) in simple_strtoul() argument 71 return simple_strtoull(cp, endp, base); in simple_strtoul() 83 long simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument 86 return -simple_strtoul(cp + 1, endp, base); in simple_strtol() 88 return simple_strtoul(cp, endp, base); in simple_strtol() 100 long long simple_strtoll(const char *cp, char **endp, unsigned int base) in simple_strtoll() argument 103 return -simple_strtoull(cp + 1, endp, base); in simple_strtoll() [all …]
|
D | bsearch.c | 33 void *bsearch(const void *key, const void *base, size_t num, size_t size, in bsearch() argument 42 result = cmp(key, base + mid * size); in bsearch() 48 return (void *)base + mid * size; in bsearch()
|
D | test-kstrtox.c | 10 unsigned int base; member 19 unsigned int base; \ 36 rv = fn(t->str, t->base, &tmp); \ 39 t->str, t->base, rv, tmp); \ 54 rv = fn(t->str, t->base, &res); \ 57 t->str, t->base, t->expected_res, rv); \ 62 t->str, t->base, t->expected_res, res); \
|
D | div64.c | 26 uint32_t __attribute__((weak)) __div64_32(uint64_t *n, uint32_t base) in __div64_32() argument 29 uint64_t b = base; in __div64_32() 35 if (high >= base) { in __div64_32() 36 high /= base; in __div64_32() 38 rem -= (uint64_t) (high*base) << 32; in __div64_32()
|
D | kstrtox.h | 5 const char *_parse_integer_fixup_radix(const char *s, unsigned int *base); 6 unsigned int _parse_integer(const char *s, unsigned int base, unsigned long long *res);
|
D | decompress_bunzip2.c | 84 int base[MAX_HUFCODE_BITS]; member 158 int *base = NULL; in get_next_block() local 302 base = hufGroup->base-1; in get_next_block() 337 base[i+1] = pp-(t += temp[i]); in get_next_block() 342 base[minLen] = 0; in get_next_block() 364 base = hufGroup->base-1; in get_next_block() 400 || (((unsigned)(j = (j>>(hufGroup->maxLen-i))-base[i])) in get_next_block()
|
D | parser.c | 127 static int match_number(substring_t *s, int *result, int base) in match_number() argument 142 val = simple_strtol(buf, &endp, base); in match_number()
|
/lib/lz4/ |
D | lz4hc_compress.c | 44 const u8 *base; member 50 static inline int lz4hc_init(struct lz4hc_data *hc4, const u8 *base) in lz4hc_init() argument 56 hc4->nexttoupdate = base + 1; in lz4hc_init() 58 hc4->nexttoupdate = base; in lz4hc_init() 60 hc4->base = base; in lz4hc_init() 70 const BYTE * const base = hc4->base; in lz4hc_insert() local 72 const int base = 0; in lz4hc_insert() local 77 size_t delta = p - (hashtable[HASH_VALUE(p)] + base); in lz4hc_insert() 81 hashtable[HASH_VALUE(p)] = (p) - base; in lz4hc_insert() 128 const BYTE * const base = hc4->base; in lz4hc_insertandfindbestmatch() local [all …]
|
D | lz4_compress.c | 61 const BYTE * const base = ip; in lz4_compressctx() local 63 const int base = 0; in lz4_compressctx() local 84 hashtable[LZ4_HASH_VALUE(ip)] = ip - base; in lz4_compressctx() 106 ref = base + hashtable[h]; in lz4_compressctx() 107 hashtable[h] = ip - base; in lz4_compressctx() 200 hashtable[LZ4_HASH_VALUE(ip-2)] = ip - 2 - base; in lz4_compressctx() 203 ref = base + hashtable[LZ4_HASH_VALUE(ip)]; in lz4_compressctx() 204 hashtable[LZ4_HASH_VALUE(ip)] = ip - base; in lz4_compressctx() 247 const u8 *const base = ip; in lz4_compress64kctx() local 287 ref = base + hashtable[h]; in lz4_compress64kctx() [all …]
|
/lib/zlib_inflate/ |
D | inftrees.c | 41 const unsigned short *base; /* base value table to use */ in zlib_inflate_table() local 170 base = extra = work; /* dummy value--not used */ in zlib_inflate_table() 174 base = lbase; in zlib_inflate_table() 175 base -= 257; in zlib_inflate_table() 181 base = dbase; in zlib_inflate_table() 211 this.val = base[work[sym]]; in zlib_inflate_table()
|
/lib/mpi/ |
D | mpi-pow.c | 36 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) in mpi_powm() argument 86 bsize = base->nlimbs; in mpi_powm() 87 bsign = base->sign; in mpi_powm() 94 MPN_COPY(bp, base->d, bsize); in mpi_powm() 103 bp = base->d; in mpi_powm() 168 negative_result = (ep[0] & 1) && base->sign; in mpi_powm()
|
/lib/zlib_deflate/ |
D | deftree.c | 416 int base = desc->stat_desc->extra_base; in gen_bitlen() local 443 if (n >= base) xbits = extra[n-base]; in gen_bitlen()
|