Home
last modified time | relevance | path

Searched refs:den (Results 1 – 25 of 80) sorted by relevance

1234

/dragonfly/sbin/hammer2/
HDcmd_info.c52 struct dirent *den; in h2disk_check_serno() local
54 while ((den = readdir(dir)) != NULL) { in h2disk_check_serno()
60 if (!strcmp(den->d_name, ".") || in h2disk_check_serno()
61 !strcmp(den->d_name, "..")) in h2disk_check_serno()
63 ptr = strrchr(den->d_name, '.'); in h2disk_check_serno()
66 den->d_name); in h2disk_check_serno()
82 struct dirent *den; in h2disk_check_dm() local
84 while ((den = readdir(dir)) != NULL) { in h2disk_check_dm()
87 if (!strcmp(den->d_name, ".") || in h2disk_check_dm()
88 !strcmp(den->d_name, "..") || in h2disk_check_dm()
[all …]
HDcmd_setcheck.c131 struct dirent *den; in cmd_setcheck_core() local
134 while ((den = readdir(dir)) != NULL) { in cmd_setcheck_core()
135 if (strcmp(den->d_name, ".") == 0 || in cmd_setcheck_core()
136 strcmp(den->d_name, "..") == 0) { in cmd_setcheck_core()
139 asprintf(&path, "%s/%s", path_str, den->d_name); in cmd_setcheck_core()
/dragonfly/contrib/gcc-4.7/libgcc/
HDudivmodsi4.c25 udivmodsi4(unsigned long num, unsigned long den, int modwanted) in udivmodsi4() argument
30 while (den < num && bit && !(den & (1L<<31))) in udivmodsi4()
32 den <<=1; in udivmodsi4()
37 if (num >= den) in udivmodsi4()
39 num -= den; in udivmodsi4()
43 den >>=1; in udivmodsi4()
/dragonfly/contrib/gcc-4.7/libstdc++-v3/include/std/
Dratio261 * std::ratio<7,-21>::den == 3;
276 static constexpr intmax_t den =
279 typedef ratio<num, den> type;
286 constexpr intmax_t ratio<_Num, _Den>::den;
294 __static_gcd<_R1::num, _R2::den>::value;
296 __static_gcd<_R2::num, _R1::den>::value;
302 __safe_multiply<(_R1::den / __gcd2),
303 (_R2::den / __gcd1)>::value> type;
306 static constexpr intmax_t den = type::den;
313 constexpr intmax_t ratio_multiply<_R1, _R2>::den;
[all …]
/dragonfly/sys/dev/drm/amd/amdgpu/
HDamdgpu_pll.c44 static void amdgpu_pll_reduce_ratio(unsigned *nom, unsigned *den, in amdgpu_pll_reduce_ratio() argument
50 tmp = gcd(*nom, *den); in amdgpu_pll_reduce_ratio()
52 *den /= tmp; in amdgpu_pll_reduce_ratio()
58 *den *= tmp; in amdgpu_pll_reduce_ratio()
62 if (*den < den_min) { in amdgpu_pll_reduce_ratio()
63 tmp = DIV_ROUND_UP(den_min, *den); in amdgpu_pll_reduce_ratio()
65 *den *= tmp; in amdgpu_pll_reduce_ratio()
83 static void amdgpu_pll_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, in amdgpu_pll_get_fb_ref_div() argument
91 *ref_div = min(max(DIV_ROUND_CLOSEST(den, post_div), 1u), ref_div_max); in amdgpu_pll_get_fb_ref_div()
92 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); in amdgpu_pll_get_fb_ref_div()
[all …]
/dragonfly/contrib/gcc-8.0/libstdc++-v3/include/std/
Dratio258 * std::ratio<7,-21>::den == 3;
273 static constexpr intmax_t den =
276 typedef ratio<num, den> type;
283 constexpr intmax_t ratio<_Num, _Den>::den;
290 __static_gcd<_R1::num, _R2::den>::value;
292 __static_gcd<_R2::num, _R1::den>::value;
298 __safe_multiply<(_R1::den / __gcd2),
299 (_R2::den / __gcd1)>::value> type;
302 static constexpr intmax_t den = type::den;
309 constexpr intmax_t __ratio_multiply<_R1, _R2>::den;
[all …]
/dragonfly/contrib/gmp/mpq/
HDset_ui.c25 mpq_set_ui (MP_RAT *dest, unsigned long int num, unsigned long int den) in mpq_set_ui() argument
30 den = 1; in mpq_set_ui()
32 mpz_set_ui (mpq_denref (dest), den); in mpq_set_ui()
39 den = 1; in mpq_set_ui()
48 dest->_mp_den._mp_d[0] = den; in mpq_set_ui()
49 dest->_mp_den._mp_size = (den != 0); in mpq_set_ui()
HDset_si.c25 mpq_set_si (MP_RAT *dest, signed long int num, unsigned long int den) in mpq_set_si() argument
32 den = 1; in mpq_set_si()
34 mpz_set_ui (mpq_denref (dest), den); in mpq_set_si()
43 den = 1; in mpq_set_si()
52 dest->_mp_den._mp_d[0] = den; in mpq_set_si()
53 dest->_mp_den._mp_size = (den != 0); in mpq_set_si()
HDget_den.c24 mpq_get_den (MP_INT *den, const MP_RAT *src) in mpq_get_den() argument
28 if (den->_mp_alloc < size) in mpq_get_den()
29 _mpz_realloc (den, size); in mpq_get_den()
31 MPN_COPY (den->_mp_d, src->_mp_den._mp_d, size); in mpq_get_den()
32 den->_mp_size = size; in mpq_get_den()
HDset_den.c24 mpq_set_den (MP_RAT *dest, const MP_INT *den) in mpq_set_den() argument
26 mp_size_t size = den->_mp_size; in mpq_set_den()
32 MPN_COPY (dest->_mp_den._mp_d, den->_mp_d, abs_size); in mpq_set_den()
/dragonfly/usr.bin/dsynth/
HDrepo.c474 struct dirent *den; in scanit() local
482 while ((den = readdir(dir)) != NULL) { in scanit()
483 if (den->d_namlen == 1 && den->d_name[0] == '.') in scanit()
485 if (den->d_namlen == 2 && den->d_name[0] == '.' && in scanit()
486 den->d_name[1] == '.') in scanit()
488 asprintf(&npath, "%s/%s", path, den->d_name); in scanit()
497 (strcmp(den->d_name, ".locks") == 0); in scanit()
501 subpath, den->d_name); in scanit()
506 scanit(npath, den->d_name, countp, in scanit()
513 subpath, den->d_name); in scanit()
[all …]
HDpkglist.c1311 struct dirent *den; in scan_and_queue_dir() local
1318 while ((den = readdir(dir)) != NULL) { in scan_and_queue_dir()
1319 if (den->d_namlen == 1 && den->d_name[0] == '.') in scan_and_queue_dir()
1321 if (den->d_namlen == 2 && in scan_and_queue_dir()
1322 den->d_name[0] == '.' && den->d_name[1] == '.') in scan_and_queue_dir()
1324 asprintf(&s1, "%s/%s", path, den->d_name); in scan_and_queue_dir()
1330 count += scan_and_queue_dir(s1, den->d_name, 2); in scan_and_queue_dir()
1336 queuebulk(level1, den->d_name, NULL, NULL); in scan_and_queue_dir()
1351 struct dirent *den; in scan_binary_repo() local
1361 while ((den = readdir(dir)) != NULL) { in scan_binary_repo()
[all …]
/dragonfly/contrib/gmp/mpz/
HDdivexact.c29 mpz_divexact (mpz_ptr quot, mpz_srcptr num, mpz_srcptr den) in mpz_divexact() argument
41 mpz_tdiv_r (rem, num, den); in mpz_divexact()
48 dn = ABSIZ (den); in mpz_divexact()
66 if (quot == num || quot == den) in mpz_divexact()
70 dp = PTR(den); in mpz_divexact()
75 SIZ(quot) = (SIZ(num) ^ SIZ(den)) >= 0 ? qn : -qn; in mpz_divexact()
HDtdiv_qr.c30 mpz_tdiv_qr (mpz_ptr quot, mpz_ptr rem, mpz_srcptr num, mpz_srcptr den) in mpz_tdiv_qr() argument
32 mdiv (mpz_srcptr num, mpz_srcptr den, mpz_ptr quot, mpz_ptr rem) in mpz_tdiv_qr()
41 ds = SIZ (den); in mpz_tdiv_qr()
73 dp = PTR (den); in mpz_tdiv_qr()
HDtdiv_q.c26 mpz_tdiv_q (mpz_ptr quot, mpz_srcptr num, mpz_srcptr den) in mpz_tdiv_q() argument
34 ds = SIZ (den); in mpz_tdiv_q()
53 dp = PTR (den); in mpz_tdiv_q()
/dragonfly/stand/lib/
HDhammer2.c927 hammer2_readdir(struct open_file *f, struct dirent *den) in hammer2_readdir() argument
945 den->d_namlen = ipdata->meta.name_len; in hammer2_readdir()
946 den->d_type = hammer2_get_dtype(ipdata->meta.type); in hammer2_readdir()
947 den->d_ino = ipdata->meta.inum; in hammer2_readdir()
948 bcopy(ipdata->filename, den->d_name, den->d_namlen); in hammer2_readdir()
949 den->d_name[den->d_namlen] = 0; in hammer2_readdir()
952 den->d_namlen = bres.embed.dirent.namlen; in hammer2_readdir()
953 den->d_type = hammer2_get_dtype(bres.embed.dirent.type); in hammer2_readdir()
954 den->d_ino = bres.embed.dirent.inum; in hammer2_readdir()
955 if (den->d_namlen <= sizeof(bres.check.buf)) { in hammer2_readdir()
[all …]
/dragonfly/sbin/hammer/
HDcmd_abort.c60 struct dirent *den; in hammer_cmd_abort_cleanup() local
69 while ((den = readdir(dir)) != NULL) { in hammer_cmd_abort_cleanup()
70 if (strncmp(den->d_name, prefix, pflen) == 0) { in hammer_cmd_abort_cleanup()
72 pidfile_loc, den->d_name); in hammer_cmd_abort_cleanup()
73 pid = strtol((char *)(den->d_name + pflen), &str, 10); in hammer_cmd_abort_cleanup()
HDcmd_cleanup.c599 struct dirent *den; in migrate_snapshots() local
607 while ((den = readdir(dir)) != NULL) { in migrate_snapshots()
608 if (den->d_name[0] == '.') in migrate_snapshots()
610 asprintf(&fpath, "%s/%s", snapshots_path, den->d_name); in migrate_snapshots()
861 struct dirent *den; in check_softlinks() local
871 while ((den = readdir(dir)) != NULL) { in check_softlinks()
872 if (den->d_name[0] == '.') in check_softlinks()
874 asprintf(&fpath, "%s/%s", snapshots_path, den->d_name); in check_softlinks()
910 struct dirent *den; in cleanup_softlinks() local
920 while ((den = readdir(dir)) != NULL) { in cleanup_softlinks()
[all …]
/dragonfly/contrib/less/
HDos.c399 public uintmax umuldiv(uintmax val, uintmax num, uintmax den) in umuldiv() argument
405 uintmax q = val / den; in umuldiv()
406 uintmax r = val % den; in umuldiv()
409 uintmax quot = qnum + rnum / den; in umuldiv()
410 uintmax rem = rnum % den; in umuldiv()
411 return quot + (den / 2 < rem + (quot & ~den & 1)); in umuldiv()
418 public int percentage(POSITION num, POSITION den) in percentage() argument
420 return (int) muldiv(num, 100, den); in percentage()
/dragonfly/lib/libhammer/
HDcompat.c53 struct dirent *den; in libhammer_compat_old_snapcount() local
76 while ((den = readdir(dir)) != NULL) { in libhammer_compat_old_snapcount()
77 if (den->d_name[0] == '.') in libhammer_compat_old_snapcount()
80 den->d_name); in libhammer_compat_old_snapcount()
/dragonfly/contrib/mpfr/src/
HDset_q.c67 mpz_srcptr num, den; in mpfr_set_q() local
76 den = mpq_denref (q); in mpfr_set_q()
80 if (MPFR_UNLIKELY (mpz_sgn (den) == 0)) in mpfr_set_q()
92 if (MPFR_UNLIKELY (mpz_sgn (den) == 0)) in mpfr_set_q()
102 cd = set_z (d, den, &sd); in mpfr_set_q()
/dragonfly/contrib/gcc-8.0/gcc/
HDipa-inline-transform.c58 profile_count num, profile_count den) in update_noncloned_counts() argument
62 profile_count::adjust_for_ipa_scaling (&num, &den); in update_noncloned_counts()
67 update_noncloned_counts (e->callee, num, den); in update_noncloned_counts()
68 e->count = e->count.apply_scale (num, den); in update_noncloned_counts()
71 e->count = e->count.apply_scale (num, den); in update_noncloned_counts()
72 node->count = node->count.apply_scale (num, den); in update_noncloned_counts()
659 profile_count den = ENTRY_BLOCK_PTR_FOR_FN (cfun)->count; in inline_transform() local
660 bool scale = num.initialized_p () && !(num == den); in inline_transform()
663 profile_count::adjust_for_ipa_scaling (&num, &den); in inline_transform()
669 den.dump (dump_file); in inline_transform()
[all …]
HDprofile-count.c296 profile_count *den) in adjust_for_ipa_scaling() argument
299 if (*num == *den) in adjust_for_ipa_scaling()
305 if (den->force_nonzero () == *den) in adjust_for_ipa_scaling()
309 *den = den->force_nonzero (); in adjust_for_ipa_scaling()
/dragonfly/contrib/gcc-4.7/gcc/
HDdouble-int.c337 HOST_WIDE_INT den[4], quo[4]; in div_and_round_double() local
388 memset (den, 0, sizeof den); in div_and_round_double()
391 encode (den, lden, hden); in div_and_round_double()
413 if (den[i] != 0) in div_and_round_double()
422 scale = BASE / (den[den_hi_sig] + 1); in div_and_round_double()
437 work = (den[i] * scale) + carry; in div_and_round_double()
438 den[i] = LOWPART (work); in div_and_round_double()
440 if (den[i] != 0) den_hi_sig = i; in div_and_round_double()
456 if (num[num_hi_sig] != den[den_hi_sig]) in div_and_round_double()
457 quo_est = work / den[den_hi_sig]; in div_and_round_double()
[all …]
/dragonfly/bin/cpdup/
HDhcproto.c413 struct HCDirEntry *den; in hc_opendir() local
431 den = malloc(sizeof(*den)); in hc_opendir()
432 hcc_set_descriptor(hc, desc, den, HC_DESC_DIR); in hc_opendir()
490 struct HCDirEntry *den; in hc_readdir() local
498 den = hcc_get_descriptor(hc, (intptr_t)dir, HC_DESC_DIR); in hc_readdir()
499 if (den == NULL) in hc_readdir()
501 den->d_name[0] = 0; in hc_readdir()
504 strlcpy(den->d_name, HCC_STRING(item), MAXNAMLEN + 1); in hc_readdir()
506 return (den->d_name[0] ? den : NULL); in hc_readdir()
536 struct dirent *den; in rc_readdir() local
[all …]

1234