/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 | 11 static int alignment_ok(const void *base, int align) in alignment_ok() argument 14 ((unsigned long)base & (align - 1)) == 0; in alignment_ok() 59 void sort(void *base, size_t num, size_t size, in sort() argument 67 if (size == 4 && alignment_ok(base, 4)) in sort() 69 else if (size == 8 && alignment_ok(base, 8)) in sort() 80 cmp_func(base + c, base + c + size) < 0) in sort() 82 if (cmp_func(base + r, base + c) >= 0) in sort() 84 swap_func(base + r, base + c, size); in sort() 90 swap_func(base, base + i, size); in sort() 94 cmp_func(base + c, base + c + size) < 0) in sort() [all …]
|
D | locking-selftest.c | 951 I_WW(t); I_WW(t2); I_WW(o.base); I_WW(o2.base); I_WW(o3.base); 1182 mutex_lock(&o.base); in ww_test_normal() 1183 mutex_unlock(&o.base); in ww_test_normal() 1188 ret = mutex_lock_interruptible(&o.base); in ww_test_normal() 1190 mutex_unlock(&o.base); in ww_test_normal() 1197 ret = mutex_lock_killable(&o.base); in ww_test_normal() 1199 mutex_unlock(&o.base); in ww_test_normal() 1206 ret = mutex_trylock(&o.base); in ww_test_normal() 1209 mutex_unlock(&o.base); in ww_test_normal() 1216 mutex_lock(&o.base); in ww_test_normal() [all …]
|
D | bsearch.c | 34 void *bsearch(const void *key, const void *base, size_t num, size_t size, in bsearch() argument 43 result = cmp(key, base + mid * size); in bsearch() 49 return (void *)base + mid * size; in bsearch()
|
D | vsprintf.c | 50 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) in simple_strtoull() argument 55 cp = _parse_integer_fixup_radix(cp, &base); in simple_strtoull() 56 rv = _parse_integer(cp, base, &result); in simple_strtoull() 75 unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base) in simple_strtoul() argument 77 return simple_strtoull(cp, endp, base); in simple_strtoul() 89 long simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument 92 return -simple_strtoul(cp + 1, endp, base); in simple_strtol() 94 return simple_strtoul(cp, endp, base); in simple_strtol() 106 long long simple_strtoll(const char *cp, char **endp, unsigned int base) in simple_strtoll() argument 109 return -simple_strtoull(cp + 1, endp, base); in simple_strtoll() [all …]
|
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 | 128 static int match_number(substring_t *s, int *result, int base) in match_number() argument 143 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 | 37 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) in mpi_powm() argument 93 bsize = base->nlimbs; in mpi_powm() 94 bsign = base->sign; in mpi_powm() 101 MPN_COPY(bp, base->d, bsize); in mpi_powm() 110 bp = base->d; in mpi_powm() 173 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()
|