/dragonfly/contrib/gmp/mpn/generic/ |
H A D | mu_bdiv_qr.c | 68 mp_size_t tn, wn; in mpn_mu_bdiv_qr() local 118 c0 = mpn_sub_n (tp + tn, tp, rp, wn); in mpn_mu_bdiv_qr() 148 tn = mpn_mulmod_bnm1_next_size (dn); in mpn_mu_bdiv_qr() 193 tn = mpn_mulmod_bnm1_next_size (dn); in mpn_mu_bdiv_qr() 213 tn = mpn_mulmod_bnm1_next_size (dn); in mpn_mu_bdiv_qr() 251 tn = dn + in; in mpn_mu_bdiv_qr_itch() 256 tn = mpn_mulmod_bnm1_next_size (dn); in mpn_mu_bdiv_qr_itch() 260 itches = tn + itch_out; in mpn_mu_bdiv_qr_itch() 268 tn = dn + in; in mpn_mu_bdiv_qr_itch() 273 tn = mpn_mulmod_bnm1_next_size (dn); in mpn_mu_bdiv_qr_itch() [all …]
|
H A D | mu_bdiv_q.c | 67 mp_size_t tn, wn; in mpn_mu_bdiv_q() local 113 tn = mpn_mulmod_bnm1_next_size (dn); in mpn_mu_bdiv_q() 118 c0 = mpn_sub_n (tp + tn, tp, rp, wn); in mpn_mu_bdiv_q() 149 tn = mpn_mulmod_bnm1_next_size (dn); in mpn_mu_bdiv_q() 198 tn = mpn_mulmod_bnm1_next_size (qn); in mpn_mu_bdiv_q() 231 tn = dn + in; in mpn_mu_bdiv_q_itch() 236 tn = mpn_mulmod_bnm1_next_size (dn); in mpn_mu_bdiv_q_itch() 240 itches = dn + tn + itch_out; in mpn_mu_bdiv_q_itch() 248 tn = qn + in; in mpn_mu_bdiv_q_itch() 253 tn = mpn_mulmod_bnm1_next_size (qn); in mpn_mu_bdiv_q_itch() [all …]
|
H A D | sqrtrem.c | 264 mp_size_t rn, tn; in mpn_sqrtrem() local 297 tp = TMP_ALLOC_LIMBS (2 * tn); in mpn_sqrtrem() 302 MPN_COPY (tp + 2 * tn - nn, np, nn); in mpn_sqrtrem() 310 rl -= (tn > 1) ? mpn_sub_1 (tp + 1, tp + 1, tn - 1, cc) : cc; in mpn_sqrtrem() 311 mpn_rshift (sp, sp, tn, c); in mpn_sqrtrem() 312 tp[tn] = rl; in mpn_sqrtrem() 317 tn++; in mpn_sqrtrem() 324 mpn_rshift (rp, tp, tn, c); in mpn_sqrtrem() 326 MPN_COPY_INCR (rp, tp, tn); in mpn_sqrtrem() 327 rn = tn; in mpn_sqrtrem() [all …]
|
H A D | trialdiv.c | 68 mpn_trialdiv (mp_srcptr tp, mp_size_t tn, mp_size_t nprimes, int *where) in mpn_trialdiv() argument 76 ASSERT (tn >= 1); in mpn_trialdiv() 84 if (tn < 4) in mpn_trialdiv() 85 r = mpn_mod_1 (tp, tn, ppp); /* FIXME */ in mpn_trialdiv() 88 r = mpn_mod_1s_4p (tp, tn, ppp << cps[1], cps); in mpn_trialdiv()
|
H A D | mu_divappr_q.c | 161 mp_size_t tn, wn; in mpn_preinv_mu_divappr_q() local 165 #define scratch_out (scratch + dn + tn) in mpn_preinv_mu_divappr_q() 209 tn = mpn_mulmod_bnm1_next_size (dn + 1); in mpn_preinv_mu_divappr_q() 210 mpn_mulmod_bnm1 (tp, tn, dp, dn, qp, in, scratch_out); in mpn_preinv_mu_divappr_q() 211 wn = dn + in - tn; /* number of wrapped limbs */ in mpn_preinv_mu_divappr_q() 215 cy = mpn_sub_1 (tp + wn, tp + wn, tn - wn, cy); in mpn_preinv_mu_divappr_q() 216 cx = mpn_cmp (rp + dn - in, tp + dn, tn - dn) < 0; in mpn_preinv_mu_divappr_q()
|
H A D | mu_div_qr.c | 236 mp_size_t tn, wn; in mpn_preinv_mu_div_qr() local 239 #define scratch_out (scratch + tn) in mpn_preinv_mu_div_qr() 281 tn = mpn_mulmod_bnm1_next_size (dn + 1); in mpn_preinv_mu_div_qr() 282 mpn_mulmod_bnm1 (tp, tn, dp, dn, qp, in, scratch_out); in mpn_preinv_mu_div_qr() 283 wn = dn + in - tn; /* number of wrapped limbs */ in mpn_preinv_mu_div_qr() 287 cy = mpn_sub_1 (tp + wn, tp + wn, tn - wn, cy); in mpn_preinv_mu_div_qr() 288 cx = mpn_cmp (rp + dn - in, tp + dn, tn - dn) < 0; in mpn_preinv_mu_div_qr()
|
H A D | powm.c | 168 mpn_sqr (tp, this_pp, tn); in mpn_powm() 169 tn = tn * 2 - 1, tn += tp[tn] != 0; in mpn_powm() 171 mpn_mul (..., tp, tn, bp, bn); in mpn_powm()
|
/dragonfly/contrib/gmp/ |
H A D | randlc2x.c | 66 mp_size_t tn, seedn, an; in lc() local 90 tn = BITS_TO_LIMBS (m2exp); in lc() 94 ta = tn + 1; in lc() 107 ASSERT (tn >= p->_cn); in lc() 120 tn -= xn; in lc() 121 if (tn > 0) in lc() 147 mp_size_t tn; in randget_lc() local 158 tp = TMP_ALLOC_LIMBS (tn); in randget_lc() 177 r2p[tn] = rcy; in randget_lc() 204 r2p[tn] = rcy; in randget_lc() [all …]
|
H A D | dumbmp.c | 371 mp_limb_t *tp; int tn; in mpz_add() local 372 tn = an; an = bn; bn = tn; in mpz_add() 424 mp_limb_t *tp; int tn; in mpz_sub() local 425 tn = an; an = bn; bn = tn; in mpz_sub()
|
/dragonfly/contrib/gmp/mpz/ |
H A D | powm_ui.c | 46 mp_size_t xn, tn, mn, bn; in mpz_powm_ui() local 130 tn = 2 * xn; tn -= tp[tn - 1] == 0; in mpz_powm_ui() 131 if (tn < mn) in mpz_powm_ui() 133 MPN_COPY (xp, tp, tn); in mpz_powm_ui() 134 xn = tn; in mpz_powm_ui() 138 mpn_tdiv_qr (qp, xp, 0L, tp, tn, mp, mn); in mpz_powm_ui() 145 tn = xn + bn; tn -= tp[tn - 1] == 0; in mpz_powm_ui() 146 if (tn < mn) in mpz_powm_ui() 148 MPN_COPY (xp, tp, tn); in mpz_powm_ui() 149 xn = tn; in mpz_powm_ui() [all …]
|
/dragonfly/contrib/mpfr/src/ |
H A D | rec_sqrt.c | 197 mp_size_t xn, rn, th, ln, tn, sn, ahn, un; in mpfr_mpn_rec_sqrt() local 225 tn = LIMB_SIZE(2 * h + 1 + as); in mpfr_mpn_rec_sqrt() 240 un = xn + (tn - th); in mpfr_mpn_rec_sqrt() 309 neg = t[tn - 1] & (MPFR_LIMB_HIGHBIT >> as); in mpfr_mpn_rec_sqrt() 317 MPFR_COM_N (t, t, tn); in mpfr_mpn_rec_sqrt() 326 t[tn - 1] ^= neg; in mpfr_mpn_rec_sqrt() 327 mpn_add_1 (t, t, tn, 1); in mpfr_mpn_rec_sqrt() 334 MPFR_ASSERTD(tn > 0); in mpfr_mpn_rec_sqrt() 338 MPFR_ASSERTD(tn >= xn); in mpfr_mpn_rec_sqrt() 339 if (tn == 1) /* necessarily xn=1 */ in mpfr_mpn_rec_sqrt() [all …]
|
H A D | frac.c | 35 mp_size_t un, tn, t0; in mpfr_frac() local 106 tn = (MPFR_PREC(t) - 1) / GMP_NUMB_BITS; in mpfr_frac() 107 MPFR_ASSERTN(tn >= un); in mpfr_frac() 108 t0 = tn - un; in mpfr_frac() 113 tp[tn] = k | ((un) ? mpn_lshift (tp + t0, up, un, sh) : (mp_limb_t) 0); in mpfr_frac() 132 (mpfr_prec_t) (tn + 1) * GMP_NUMB_BITS, in mpfr_frac() 137 tp[tn] = MPFR_LIMB_HIGHBIT; in mpfr_frac()
|
H A D | mul.c | 44 mp_size_t bn, cn, tn, k; in mpfr_mul3() local 104 tn = MPFR_PREC2LIMBS (bq + cq); in mpfr_mul3() 106 MPFR_ASSERTD(tn <= k); in mpfr_mul3() 125 tmp += k - tn; in mpfr_mul3() 220 mp_size_t bn, cn, tn, k, threshold; in mpfr_mul() local 300 tn = MPFR_PREC2LIMBS (bq + cq); in mpfr_mul() 301 MPFR_ASSERTD (tn <= k); /* tn <= k, thus no int overflow */ in mpfr_mul() 354 tmp += k - tn; in mpfr_mul() 497 tmp += k - tn; in mpfr_mul() 498 MPFR_ASSERTD (MPFR_LIMB_MSB (tmp[tn-1]) != 0); in mpfr_mul() [all …]
|
H A D | sqr.c | 33 mp_size_t bn, tn; in mpfr_sqr() local 62 tn = MPFR_PREC2LIMBS (2 * bq); /* number of limbs of square, in mpfr_sqr() 82 tmp += 2 * bn - tn; /* +0 or +1 */ in mpfr_sqr() 84 mpn_lshift (tmp, tmp, tn, 1); /* tn <= k, so no stack corruption */ in mpfr_sqr()
|
H A D | cmp2.c | 110 mp_size_t tn; in mpfr_cmp2() local 113 tn = bn; bn = cn; cn = tn; in mpfr_cmp2()
|
H A D | round_prec.c | 145 mp_size_t k, k1, tn; in mpfr_can_round_raw() local 185 tn = bn; in mpfr_can_round_raw() 187 tmp = MPFR_TMP_LIMBS_ALLOC (tn); in mpfr_can_round_raw()
|
/dragonfly/contrib/gmp/mpf/ |
H A D | get_str.c | 117 mp_size_t un, pn, tn; in mpf_get_str() local 202 tn = un + pn; in mpf_get_str() 203 tn -= tp[tn - 1] == 0; in mpf_get_str() 207 MPN_COPY_DECR (tp - off, tp, tn); in mpf_get_str() 209 tn -= off; in mpf_get_str() 212 n_digits_computed = mpn_get_str (tstr, base, tp + off, tn - off); in mpf_get_str() 244 tn = xn - pn + 1; in mpf_get_str() 245 tn -= tp[tn - 1] == 0; in mpf_get_str() 246 n_digits_computed = mpn_get_str (tstr, base, tp, tn); in mpf_get_str()
|
/dragonfly/usr.sbin/cron/crontab/ |
H A D | crontab.c | 502 sprintf(tn, CRON_TAB(n)); 503 if (!(tmp = fopen(tn, "w+"))) { 504 warn("%s", tn); 526 fclose(tmp); unlink(tn); 556 fclose(tmp); unlink(tn); 567 fclose(tmp); unlink(tn); 574 if (chmod(tn, 0600) < OK) 578 fclose(tmp); unlink(tn); 584 unlink(tn); 589 if (rename(tn, n)) { [all …]
|
/dragonfly/contrib/ncurses/ncurses/tinfo/ |
H A D | read_termcap.c | 960 _nc_read_termcap_entry(const char *const tn, TERMTYPE2 *const tp) in _nc_read_termcap_entry() argument 975 TR(TRACE_DATABASE, ("read termcap entry for %s", tn)); in _nc_read_termcap_entry() 977 if (strlen(tn) == 0 in _nc_read_termcap_entry() 978 || strcmp(tn, ".") == 0 in _nc_read_termcap_entry() 979 || strcmp(tn, "..") == 0 in _nc_read_termcap_entry() 980 || _nc_pathlast(tn) != 0) { in _nc_read_termcap_entry() 981 TR(TRACE_DATABASE, ("illegal or missing entry name '%s'", tn)); in _nc_read_termcap_entry() 986 && !_nc_is_abs_path(p) && _nc_name_match(p, tn, "|:")) { in _nc_read_termcap_entry() 992 if ((status = _nc_tgetent(tc, &source, &lineno, tn)) < 0) in _nc_read_termcap_entry() 1125 TR(TRACE_DATABASE, ("Looking for %s in %s", tn, termpaths[i])); in _nc_read_termcap_entry() [all …]
|
/dragonfly/sbin/routed/ |
H A D | input.c | 144 struct tgate_net *tn; in input() local 656 if (tg && (tn = tg->tgate_nets)->mask != 0) { in input() 657 for (i = 0; i < MAX_TGATE_NETS; i++, tn++) { in input() 658 if (on_net(dst, tn->net, tn->mask) in input() 659 && tn->mask <= mask) in input() 662 if (i >= MAX_TGATE_NETS || tn->mask == 0) { in input()
|
/dragonfly/sys/dev/disk/sym/ |
H A D | sym_hipd.c | 6394 cp->target = tn; in sym_get_ccb() 6398 PRINT_LUN(np, tn, ln); in sym_get_ccb() 6635 sym_init_tcb (np, tn); in sym_alloc_lcb() 8216 u_int tn; local 8230 tp = &np->target[tn]; 9141 tp->tinfo.user.period = tn->sync_period ? (tn->sync_period + 3) / 4 : 0; 9165 i = tn->sync_index & 0xf; 9211 tn->bus_width, 9212 tn->sync_period / 4, 9213 tn->timeout); [all …]
|
/dragonfly/contrib/file/magic/Magdir/ |
H A D | vicar | 6 # From: Ossama Othman <othman@astrosun.tn.cornell.edu
|
/dragonfly/sys/dev/powermng/amdtemp/ |
H A D | amdtemp.c | 363 char tn[32]; in amdtemp_attach() local 567 ksnprintf(tn, sizeof(tn), "dev.amdtemp.%d.sensor_offset", unit); in amdtemp_attach() 568 TUNABLE_INT_FETCH(tn, &sc->sc_offset); in amdtemp_attach()
|
/dragonfly/sys/netgraph/ |
H A D | netgraph.h | 312 #define NETGRAPH_INIT(tn, tp) \ argument 313 NETGRAPH_INIT_ORDERED(tn, tp, SI_SUB_PSEUDO, SI_ORDER_ANY)
|
/dragonfly/contrib/lvm2/dist/lib/config/ |
H A D | config.c | 1205 static int _match_host_tags(struct dm_list *tags, struct config_node *tn) in _match_host_tags() argument 1210 for (tv = tn->v; tv; tv = tv->next) { in _match_host_tags() 1230 struct config_node *cn, *nextn, *oldn, *tn, *cn2; in merge_config_tree() local 1238 if ((tn = find_config_node(cn->child, "tags"))) { in merge_config_tree() 1239 if (!_match_host_tags(&cmd->tags, tn)) in merge_config_tree()
|