/lib/ |
D | flex_proportions.c | 144 s64 num, den; in fprop_fraction_single() local 149 num = pl->events; in fprop_fraction_single() 157 if (den <= num) { in fprop_fraction_single() 158 if (num) in fprop_fraction_single() 159 den = num; in fprop_fraction_single() 164 *numerator = num; in fprop_fraction_single() 232 s64 num, den; in fprop_fraction_percpu() local 237 num = percpu_counter_read_positive(&pl->events); in fprop_fraction_percpu() 245 if (den <= num) { in fprop_fraction_percpu() 246 if (num) in fprop_fraction_percpu() [all …]
|
D | oid_registry.c | 109 unsigned long num; in sprint_oid() local 125 num = 0; in sprint_oid() 128 num = n; in sprint_oid() 130 num = n & 0x7f; in sprint_oid() 135 num <<= 7; in sprint_oid() 136 num |= n & 0x7f; in sprint_oid() 139 ret += count = snprintf(buffer, bufsize, ".%lu", num); in sprint_oid()
|
D | string_helpers.c | 164 u8 num; in unescape_octal() local 169 num = (*q++) & 7; in unescape_octal() 170 while (num < 32 && isodigit(*q) && (q - *src < 3)) { in unescape_octal() 171 num <<= 3; in unescape_octal() 172 num += (*q++) & 7; in unescape_octal() 174 *p = num; in unescape_octal() 184 u8 num; in unescape_hex() local 189 num = digit = hex_to_bin(*q++); in unescape_hex() 196 num = (num << 4) | digit; in unescape_hex() 198 *p = num; in unescape_hex()
|
D | vsprintf.c | 375 int num_to_str(char *buf, int size, unsigned long long num, unsigned int width) in num_to_str() argument 378 char tmp[sizeof(num) * 3] __aligned(2); in num_to_str() 382 if (num <= 9) { in num_to_str() 383 tmp[0] = '0' + num; in num_to_str() 386 len = put_dec(tmp, num) - tmp; in num_to_str() 452 char *number(char *buf, char *end, unsigned long long num, in number() argument 456 char tmp[3 * sizeof(num)] __aligned(2); in number() 461 bool is_zero = num == 0LL; in number() 472 if ((signed long long)num < 0) { in number() 474 num = -(signed long long)num; in number() [all …]
|
D | test_memcat_p.c | 12 int num; member 48 in0[i]->num = r; in test_memcat_p_init() 49 in1[i]->num = -r; in test_memcat_p_init() 62 total += (*p)->num; in test_memcat_p_init()
|
D | sort.c | 199 void sort_r(void *base, size_t num, size_t size, in sort_r() argument 205 size_t n = num * size, a = (num/2) * size; in sort_r() 266 void sort(void *base, size_t num, size_t size, in sort() argument 270 return sort_r(base, num, size, _CMP_WRAPPER, swap_func, cmp_func); in sort()
|
D | bsearch.c | 31 void *bsearch(const void *key, const void *base, size_t num, size_t size, cmp_func_t cmp) in bsearch() argument 33 return __inline_bsearch(key, base, num, size, cmp); in bsearch()
|
D | parser.c | 71 goto num; in match_one() 74 goto num; in match_one() 77 goto num; in match_one() 80 num: in match_one()
|
D | test_meminit.c | 322 int num, bytes; in do_kmem_cache_size_bulk() local 328 num = kmem_cache_alloc_bulk(c, GFP_KERNEL, ARRAY_SIZE(objects), in do_kmem_cache_size_bulk() 330 for (i = 0; i < num; i++) { in do_kmem_cache_size_bulk() 337 if (num) in do_kmem_cache_size_bulk() 338 kmem_cache_free_bulk(c, num, objects); in do_kmem_cache_size_bulk()
|
D | extable.c | 117 const size_t num, in search_extable() argument 120 return bsearch(&value, base, num, in search_extable()
|
D | bitmap.c | 526 static const char *bitmap_getnum(const char *str, unsigned int *num) in bitmap_getnum() argument 537 *num = n; in bitmap_getnum() 700 const char *end, u32 *num) in bitmap_get_x32_reverse() argument 719 *num = ret; in bitmap_get_x32_reverse()
|
/lib/mpi/ |
D | mpi-div.c | 17 void mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den); 78 void mpi_tdiv_r(MPI rem, MPI num, MPI den) in mpi_tdiv_r() argument 80 mpi_tdiv_qr(NULL, rem, num, den); in mpi_tdiv_r() 83 void mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den) in mpi_tdiv_qr() argument 87 mpi_size_t nsize = num->nlimbs; in mpi_tdiv_qr() 90 mpi_size_t sign_remainder = num->sign; in mpi_tdiv_qr() 91 mpi_size_t sign_quotient = num->sign ^ den->sign; in mpi_tdiv_qr() 106 if (num != rem) { in mpi_tdiv_qr() 107 rem->nlimbs = num->nlimbs; in mpi_tdiv_qr() 108 rem->sign = num->sign; in mpi_tdiv_qr() [all …]
|