Home
last modified time | relevance | path

Searched refs:factor (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/netbsd/src/external/lgpl3/gmp/dist/
Dgen-psqr.c129 struct factor_t *factor; variable
246 factor = (struct factor_t *) xmalloc (factor_alloc * sizeof (*factor)); in generate_mod()
390 factor[nfactor].divisor = 1; in generate_mod()
392 factor[nfactor].divisor *= rawfactor[i].divisor; in generate_mod()
400 qsort (factor, nfactor, sizeof (factor[0]), f_cmp_divisor); in generate_mod()
403 if (factor[i].divisor <= max_divisor / factor[0].divisor) in generate_mod()
405 factor[0].divisor *= factor[i].divisor; in generate_mod()
406 COLLAPSE_ELEMENT (factor, i, nfactor); in generate_mod()
414 mpz_init (factor[i].inverse); in generate_mod()
415 mpz_invert_ui_2exp (factor[i].inverse, in generate_mod()
[all …]
/netbsd/src/games/primes/
Dprimes.c212 uint64_t factor; /* index and factor */ in primes() local
249 for (p = &prime[0], factor = prime[0]; in primes()
250 factor < stop && p <= pr_limit; factor = *(++p)) { in primes()
251 if (factor >= start) { in primes()
252 printf(hflag ? "%" PRIx64 : "%" PRIu64, factor); in primes()
254 printf(" (%" PRIu64 ")", factor - prev); in primes()
258 prev = factor; in primes()
276 factor = (start%(2*3*5*7*11*13))/2; /* starting copy spot */ in primes()
277 memcpy(table, &pattern[factor], pattern_size-factor); in primes()
279 for (fact_lim=pattern_size-factor; in primes()
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/config/sh/
Ddivtab.cc85 calc_defect (double x, int constant, int factor) in calc_defect() argument
87 double y0 = (constant - (int) floor ((x * factor * 64.))) / 16384.; in calc_defect()
146 int factor, constant; in main() local
149 factor = (1./x_low- 1./x_high) / step * 256. + 0.5; in main()
150 if (factor == 256) in main()
151 factor = 255; in main()
152 factors[i] = factor; in main()
154 x_med = sqrt (256./factor); in main()
157 low_defect = 1. / x_low + x_low * factor / 256.; in main()
158 high_defect = 1. / x_high + x_high * factor / 256.; in main()
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/
Dvec-perm-indices.cc87 unsigned int factor) in new_expanded_vector() argument
90 m_nelts_per_input = orig.m_nelts_per_input * factor; in new_expanded_vector()
91 m_encoding.new_vector (orig.m_encoding.full_nelts () * factor, in new_expanded_vector()
92 orig.m_encoding.npatterns () * factor, in new_expanded_vector()
97 element_type base = orig.m_encoding[i] * factor; in new_expanded_vector()
98 for (unsigned int j = 0; j < factor; ++j) in new_expanded_vector()
115 unsigned int factor) in new_shrunk_vector() argument
117 gcc_assert (factor > 0); in new_shrunk_vector()
119 if (maybe_lt (orig.m_nelts_per_input, factor)) in new_shrunk_vector()
124 if (!multiple_p (orig.m_nelts_per_input, factor, &nelts)) in new_shrunk_vector()
[all …]
Dtree-ssa-loop-manip.cc956 can_unroll_loop_p (class loop *loop, unsigned factor, in can_unroll_loop_p() argument
989 if (tree_num_loop_insns (loop, &eni_size_weights) * factor in can_unroll_loop_p()
1006 unsigned factor, tree *enter_cond, in determine_exit_conditions() argument
1067 build_int_cst_type (type, factor)); in determine_exit_conditions()
1146 niter_for_unrolled_loop (class loop *loop, unsigned factor) in niter_for_unrolled_loop() argument
1148 gcc_assert (factor != 0); in niter_for_unrolled_loop()
1154 gcov_type new_est_niter = est_niter / factor; in niter_for_unrolled_loop()
1177 factor); in niter_for_unrolled_loop()
1244 tree_transform_and_unroll_loop (class loop *loop, unsigned factor, in tree_transform_and_unroll_loop() argument
1249 gcov_type new_est_niter = niter_for_unrolled_loop (loop, factor); in tree_transform_and_unroll_loop()
[all …]
Dtree-vector-builder.cc30 tree_vector_builder::apply_step (tree base, unsigned int factor, in apply_step() argument
34 wi::to_wide (base) + factor * step); in apply_step()
/netbsd/src/external/lgpl3/mpfr/dist/src/
Dscale2.c62 double factor; in mpfr_scale2()
74 factor = 0.5; in mpfr_scale2()
79 factor = 2.0; in mpfr_scale2()
84 d *= factor; in mpfr_scale2()
86 factor *= factor; in mpfr_scale2()
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/detail/binary_heap_/
Dresize_policy.hpp58 factor = 2 enumerator
157 { return m_grow_size * factor; } in get_new_size_for_grow()
164 const size_type half_size = m_grow_size / factor; in get_new_size_for_shrink()
175 ret *= factor; in get_new_size_for_arbitrary()
186 m_grow_size *= factor; in notify_grow_resize()
197 m_shrink_size /= factor; in notify_shrink_resize()
200 m_grow_size = std::max(m_grow_size / factor, min_size); in notify_shrink_resize()
/netbsd/src/usr.bin/units/
Dunits.c61 double factor; member
264 theunit->factor = 1.0; in initializeunit()
291 printf("\t%.*g", precision, theunit->factor); in showunit()
411 theunit->factor *= num; in addunit()
413 theunit->factor /= num; in addunit()
420 theunit->factor /= num; in addunit()
422 theunit->factor *= num; in addunit()
436 theunit->factor *= num; in addunit()
438 theunit->factor /= num; in addunit()
743 precision, 1 / (have->factor * want->factor), in showanswer()
[all …]
/netbsd/src/games/factor/
DMakefile8 PROG= factor
9 SRCS= factor.c pr_tbl.c
16 COPTS.factor.c+= -Wno-error=deprecated-declarations
18 MAN= factor.6
/netbsd/src/games/ching/printching/
Dprintching.c162 int factor[3]; in codem() local
164 factor[0] = 1; in codem()
165 factor[1] = 10; in codem()
166 factor[2] = 100; in codem()
174 code += factor[i%3]*7; in codem()
179 code += factor[i%3]*8; in codem()
/netbsd/src/external/bsd/wpa/dist/src/ap/
Dacs.c373 long double factor, busy, total; in acs_survey_interference_factor() local
392 factor = pow(10, survey->nf / 5.0L) + in acs_survey_interference_factor()
397 return factor; in acs_survey_interference_factor()
737 long double factor, in acs_update_puncturing_bitmap() argument
755 threshold = factor * conf->punct_acs_threshold / 100; in acs_update_puncturing_bitmap()
832 long double factor; in acs_find_ideal_chan_mode() local
930 factor = 0; in acs_find_ideal_chan_mode()
933 factor = chan->interference_factor; in acs_find_ideal_chan_mode()
954 factor += adj_chan->interference_factor; in acs_find_ideal_chan_mode()
993 factor += ACS_ADJ_WEIGHT * in acs_find_ideal_chan_mode()
[all …]
/netbsd/src/sys/external/bsd/drm2/include/linux/
Dhash.h41 const unsigned long factor = (sizeof(factor) > 4? in hash_long() local
44 return ((value * factor) >> ((CHAR_BIT * sizeof(value)) - bits)); in hash_long()
/netbsd/src/usr.bin/rump_dhcpclient/
Dcommon.c109 static double factor = 0.0; in get_monotonic() local
115 factor = (double)info.numer / (double)info.denom; in get_monotonic()
121 if ((info.denom != 1 || info.numer != 1) && factor != 0.0) in get_monotonic()
122 nano *= factor; in get_monotonic()
/netbsd/src/external/gpl2/xcvs/dist/src/
Dparseinfo.c227 size_t num, factor = 1; in readSizeT() local
241 factor = xtimes (factor, 1024); in readSizeT()
243 factor = xtimes (factor, 1024); in readSizeT()
245 factor = xtimes (factor, 1024); in readSizeT()
247 factor = xtimes (factor, 1024); in readSizeT()
256 factor, option); in readSizeT()
280 *val = xtimes (strtoul (p, NULL, 10), factor); in readSizeT()
/netbsd/src/usr.sbin/screenblank/
Dscreenblank.c405 int seconds, nanoseconds, factor; in cvt_arg() local
407 factor = 1000000000; in cvt_arg()
423 if (factor > 1) { in cvt_arg()
425 factor /= 10; in cvt_arg()
432 if (factor > 1) in cvt_arg()
433 nanoseconds *= factor; in cvt_arg()
/netbsd/src/games/trek/
Dschedule.c147 xsched(int ev1, int factor, int x, int y, int z) in xsched() argument
153 when = -Param.eventdly[ev] * Param.time * log(franf()) / factor; in xsched()
166 xresched(struct event *e1, int ev1, int factor) in xresched() argument
174 when = -Param.eventdly[ev] * Param.time * log(franf()) / factor; in xresched()
/netbsd/src/external/lgpl3/gmp/dist/mpn/generic/
Dperfpow.c244 mp_limb_t *nc, factor, g; in mpn_perfect_power_p() local
293 factor = mpn_trialdiv (np, n, nrtrial[trial], &where); in mpn_perfect_power_p()
295 if (factor != 0) in mpn_perfect_power_p()
307 binvert_limb (d, factor); in mpn_perfect_power_p()
330 factor = mpn_trialdiv (np, n, nrtrial[trial], &where); in mpn_perfect_power_p()
332 while (factor != 0); in mpn_perfect_power_p()
/netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/
Dwatchpoint-fork.exp59 set factor 20
61 set factor 1
86 with_timeout_factor $factor {
Dnon-stop-fair-events.exp177 set factor $NUM_THREADS
179 set factor 1
181 with_timeout_factor $factor {
/netbsd/src/bin/ksh/
Dc_ulimit.c59 int factor; /* multiply by to get rlim_{cur,max} values */ member
197 val = (u_long)rval * l->factor;
229 val /= l->factor;
285 val /= l->factor;
/netbsd/src/sys/ufs/ext2fs/
Dext2fs_inode.c507 long blkcount, factor; in ext2fs_indirtrunc() local
516 factor = 1; in ext2fs_indirtrunc()
518 factor *= EXT2_NINDIR(fs); in ext2fs_indirtrunc()
521 last /= factor; in ext2fs_indirtrunc()
569 nlbn = lbn + 1 - i * factor; i > last; in ext2fs_indirtrunc()
570 i--, nlbn += factor) { in ext2fs_indirtrunc()
591 last = lastbn % factor; in ext2fs_indirtrunc()
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/rsa/
Drsa_ossl.c636 BIGNUM *factor = BN_new(); in rsa_ossl_mod_exp() local
638 if (factor == NULL) in rsa_ossl_mod_exp()
645 if (!(BN_with_flags(factor, rsa->p, BN_FLG_CONSTTIME), in rsa_ossl_mod_exp()
647 factor, ctx)) in rsa_ossl_mod_exp()
648 || !(BN_with_flags(factor, rsa->q, BN_FLG_CONSTTIME), in rsa_ossl_mod_exp()
650 factor, ctx))) { in rsa_ossl_mod_exp()
651 BN_free(factor); in rsa_ossl_mod_exp()
657 BN_with_flags(factor, pinfo->r, BN_FLG_CONSTTIME); in rsa_ossl_mod_exp()
658 if (!BN_MONT_CTX_set_locked(&pinfo->m, rsa->lock, factor, ctx)) { in rsa_ossl_mod_exp()
659 BN_free(factor); in rsa_ossl_mod_exp()
[all …]
/netbsd/src/sys/dev/pci/
Dvoyager.c478 int ifreq, factor, bit, steps; in voyager_set_pwm() local
486 factor = 96000000 / ifreq; in voyager_set_pwm()
487 bit = fls32(factor); in voyager_set_pwm()
488 factor = 1 << bit; in voyager_set_pwm()
489 steps = 96000000 / (factor * freq); in voyager_set_pwm()
504 DPRINTF("%d hz -> %d, %d, %d / %d\n", freq, factor, steps, lo, hi); in voyager_set_pwm()
/netbsd/src/external/lgpl3/gmp/dist/demos/
Dfactorize.c48 void factor (mpz_t, struct factors *);
219 factor (tmp, &factors); in mp_prime_p()
366 factor (mpz_t t, struct factors *factors) in factor() function
416 factor (t, &factors); in main()
435 factor (t, &factors); in main()

12345678910>>...12