| /openbsd-src/games/primes/ |
| H A D | primes.c | 180 ubig factor; /* index and factor */ in primes() local 216 for (p = &prime[0], factor = prime[0]; in primes() 217 factor < stop && p <= pr_limit; factor = *(++p)) { in primes() 218 if (factor >= start) { in primes() 219 printf("%lu\n", (unsigned long) factor); in primes() 238 factor = (start%(2*3*5*7*11*13))/2; /* starting copy spot */ in primes() 239 memcpy(table, &pattern[factor], pattern_size-factor); in primes() 241 for (fact_lim=pattern_size-factor; in primes() 261 factor = 17; /* 17 is first prime to use */ in primes() 265 mod = start % factor; in primes() [all …]
|
| /openbsd-src/gnu/gcc/gcc/config/sh/ |
| H A D | divtab.c | 88 calc_defect (double x, int constant, int factor) in calc_defect() argument 90 double y0 = (constant - (int) floor ((x * factor * 64.))) / 16384.; in calc_defect() 149 int factor, constant; in main() local 152 factor = (1./x_low- 1./x_high) / step * 256. + 0.5; in main() 153 if (factor == 256) in main() 154 factor = 255; in main() 155 factors[i] = factor; in main() 157 x_med = sqrt (256./factor); in main() 160 low_defect = 1. / x_low + x_low * factor / 256.; in main() 161 high_defect = 1. / x_high + x_high * factor / 256.; in main() [all …]
|
| /openbsd-src/games/factor/ |
| H A D | factor.c | 208 ubig factor; in pr_bigfact() local 230 factor = (start%(2*3*5*7*11*13))/2; /* starting copy spot */ in pr_bigfact() 231 memcpy(table, &pattern[factor], pattern_size-factor); in pr_bigfact() 233 for (fact_lim = pattern_size - factor; in pr_bigfact() 249 factor = 17; /* 17 is first prime to use */ in pr_bigfact() 253 mod = start % factor; in pr_bigfact() 255 q = &table[(factor-mod)/2]; in pr_bigfact() 257 q = &table[mod ? factor-(mod/2) : 0]; in pr_bigfact() 259 for ( ; q < tab_lim; q += factor) { in pr_bigfact() 262 } while ((factor=(ubig)(*(p++))) <= fact_lim); in pr_bigfact()
|
| H A D | Makefile | 3 PROG= factor 4 SRCS= factor.c pattern.c pr_tbl.c 6 MAN= factor.6
|
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | lambda-mat.c | 379 int factor; in lambda_matrix_inverse_hard() local 381 factor = -1 * row[i]; in lambda_matrix_inverse_hard() 383 factor /= row[j]; in lambda_matrix_inverse_hard() 385 lambda_matrix_col_add (temp, n, j, i, factor); in lambda_matrix_inverse_hard() 386 lambda_matrix_col_add (inv, n, j, i, factor); in lambda_matrix_inverse_hard() 426 int factor = -row[i]; in lambda_matrix_inverse_hard() local 427 lambda_matrix_col_add (temp, n, j, i, factor); in lambda_matrix_inverse_hard() 428 lambda_matrix_col_add (inv, n, j, i, factor); in lambda_matrix_inverse_hard() 446 int i, j, factor, minimum_col; in lambda_matrix_hermite() local 474 factor = row[i] / row[j]; in lambda_matrix_hermite() [all …]
|
| H A D | tree-ssa-loop-prefetch.c | 878 unsigned factor) in should_unroll_loop_p() argument 880 if (!can_unroll_loop_p (loop, factor, desc)) in should_unroll_loop_p() 906 unsigned factor, max_mod_constraint, ahead_factor; in determine_unroll_factor() local 939 factor = ahead_factor; in determine_unroll_factor() 941 factor = constraint_factor; in determine_unroll_factor() 942 if (factor > upper_bound) in determine_unroll_factor() 943 factor = upper_bound; in determine_unroll_factor() 945 if (!should_unroll_loop_p (loop, desc, factor)) in determine_unroll_factor() 948 return factor; in determine_unroll_factor()
|
| H A D | tree-ssa-loop-manip.c | 640 can_unroll_loop_p (struct loop *loop, unsigned factor, in can_unroll_loop_p() argument 673 if (tree_num_loop_insns (loop) * factor in can_unroll_loop_p() 688 unsigned factor, tree *enter_cond, in determine_exit_conditions() argument 745 build_int_cst_type (type, factor)); in determine_exit_conditions() 840 tree_unroll_loop (struct loops *loops, struct loop *loop, unsigned factor, in tree_unroll_loop() argument 859 determine_exit_conditions (loop, desc, factor, in tree_unroll_loop() 883 wont_exit = sbitmap_alloc (factor); in tree_unroll_loop() 886 (loop, loop_latch_edge (loop), loops, factor - 1, in tree_unroll_loop() 900 est_niter = est_niter / factor + 1; in tree_unroll_loop()
|
| /openbsd-src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/binary_heap_/ |
| H A D | resize_policy.hpp | 123 factor = 2 enumerator 170 { return m_next_grow_size* factor; } in get_new_size_for_grow() 177 const size_type half_size = m_next_grow_size / factor; in get_new_size_for_shrink() 188 ret *= factor; in get_new_size_for_arbitrary() 199 m_next_grow_size *= factor; in notify_grow_resize() 210 m_next_shrink_size /= factor; in notify_shrink_resize() 215 std::max(m_next_grow_size / factor, static_cast<size_type>(min_size)); in notify_shrink_resize()
|
| /openbsd-src/usr.bin/units/ |
| H A D | units.c | 49 double factor; member 201 theunit->factor = 1.0; in initializeunit() 230 printf("\t%.8g", theunit->factor); in showunit() 316 theunit->factor *= num; in addunit() 318 theunit->factor /= num; in addunit() 326 theunit->factor /= num; in addunit() 328 theunit->factor *= num; in addunit() 337 theunit->factor *= num; in addunit() 339 theunit->factor /= num; in addunit() 607 printf("\t* %.8g\n\t/ %.8g\n", have->factor / want->factor, in showanswer() [all …]
|
| /openbsd-src/games/trek/ |
| H A D | schedule.c | 139 xsched(int ev1, int factor, int x, int y, int z) in xsched() argument 144 return (schedule(ev, -Param.eventdly[ev] * Param.time * log(franf()) / factor, x, y, z)); in xsched() 156 xresched(struct event *e1, int ev1, int factor) in xresched() argument 163 reschedule(e, -Param.eventdly[ev] * Param.time * log(franf()) / factor); in xresched()
|
| /openbsd-src/sys/dev/pci/drm/amd/pm/powerplay/hwmgr/ |
| H A D | ppevvmath.h | 248 static fInt GetScaledFraction(int X, int factor) in GetScaledFraction() argument 263 if (factor < 0) { in GetScaledFraction() 264 factor = -1*factor; in GetScaledFraction() 268 if ((X > PPMAX) || factor > PPMAX) { in GetScaledFraction() 269 if ((X/factor) <= PPMAX) { in GetScaledFraction() 275 while (factor > PPMAX) { in GetScaledFraction() 276 factor = factor >> 1; in GetScaledFraction() 285 if (factor == 1) in GetScaledFraction() 288 fValue = fDivide(ConvertToFraction(X * uPow(-1, bNEGATED)), ConvertToFraction(factor)); in GetScaledFraction()
|
| /openbsd-src/bin/ksh/ |
| H A D | c_ulimit.c | 36 int factor; /* multiply by to get rlim_{cur,max} values */ member 157 val = (rlim_t)rval * l->factor; in set_ulimit() 190 val /= l->factor; in print_ulimit()
|
| /openbsd-src/sys/ufs/ffs/ |
| H A D | ffs_inode.c | 413 long blkcount, factor; in ffs_indirtrunc() local 426 factor = 1; in ffs_indirtrunc() 428 factor *= NINDIR(fs); in ffs_indirtrunc() 431 last /= factor; in ffs_indirtrunc() 493 for (i = NINDIR(fs) - 1, nlbn = lbn + 1 - i * factor; i > last; in ffs_indirtrunc() 494 i--, nlbn += factor) { in ffs_indirtrunc() 513 last = lastbn % factor; in ffs_indirtrunc()
|
| /openbsd-src/sys/ufs/ext2fs/ |
| H A D | ext2fs_inode.c | 430 long blkcount, factor; in ext2fs_indirtrunc() local 439 factor = 1; in ext2fs_indirtrunc() 441 factor *= NINDIR(fs); in ext2fs_indirtrunc() 444 last /= factor; in ext2fs_indirtrunc() 489 nlbn = lbn + 1 - i * factor; i > last; in ext2fs_indirtrunc() 490 i--, nlbn += factor) { in ext2fs_indirtrunc() 510 last = lastbn % factor; in ext2fs_indirtrunc()
|
| /openbsd-src/lib/libc/db/hash/ |
| H A D | README | 12 fill factor (ffactor), and 19 fill factor (ffactor), 28 fill factor (ffactor).
|
| /openbsd-src/sys/dev/pci/drm/radeon/ |
| H A D | rv740_dpm.c | 96 u32 factor; in rv740_get_dll_speed() local 100 factor = 4; in rv740_get_dll_speed() 102 factor = 2; in rv740_get_dll_speed() 104 data_rate = (u16)(memory_clock * factor / 1000); in rv740_get_dll_speed()
|
| /openbsd-src/games/ |
| H A D | Makefile | 4 bs caesar canfield cribbage factor fish fortune gomoku grdc hack \
|
| /openbsd-src/gnu/llvm/llvm/docs/CommandGuide/ |
| H A D | llvm-opt-report.rst | 60 - U: The loop is unrolled. The following number indicates the unroll factor. 61 …The loop is vectorized. The following numbers indicate the vector length and the interleave factor.
|
| /openbsd-src/gnu/llvm/libcxx/src/ |
| H A D | chrono.cpp | 202 static const double factor = compute_steady_factor(); in steady_full() local 203 return static_cast<steady_clock::rep>(mach_absolute_time() * factor); in steady_full()
|
| /openbsd-src/usr.sbin/btrace/ |
| H A D | bt_parse.y | 135 %type <v.arg> expr term fterm variable factor func 198 fterm : fterm '*' factor { $$ = ba_op(B_AT_OP_MULT, $1, $3); } 199 | fterm '/' factor { $$ = ba_op(B_AT_OP_DIVIDE, $1, $3); } 200 | fterm '%' factor { $$ = ba_op(B_AT_OP_MODULO, $1, $3); } 201 | factor 209 factor : '(' expr ')' { $$ = $2; }
|
| /openbsd-src/gnu/gcc/gcc/config/h8300/ |
| H A D | h8300.c | 1992 int dummy, factor; in h8300_get_index() local 1997 factor = (mode == VOIDmode ? 0 : GET_MODE_SIZE (mode)); in h8300_get_index() 1999 && factor <= 4 in h8300_get_index() 2004 if (factor <= 1 && GET_CODE (x) == ZERO_EXTEND) in h8300_get_index() 2028 && (factor == 0 in h8300_get_index() 2029 || INTVAL (XEXP (x, 1)) == 0xff * factor in h8300_get_index() 2030 || INTVAL (XEXP (x, 1)) == 0xffff * factor)) in h8300_get_index() 2043 && (factor == 0 || factor == INTVAL (XEXP (index, 1)))) in h8300_get_index() 2542 int factor; in h8sx_emit_movmd() local 2546 factor = (alignment >= 2 ? 4 : 1); in h8sx_emit_movmd() [all …]
|
| /openbsd-src/sys/dev/pci/ |
| H A D | autrivar.h | 59 u_int factor; /* byte per sample */ member
|
| H A D | autri.c | 1032 int factor, rvol, cvol; in autri_setup_channel() local 1043 factor = 0; in autri_setup_channel() 1046 factor++; in autri_setup_channel() 1051 factor++; in autri_setup_channel() 1091 dmalen = (chst->length >> factor); in autri_setup_channel() 1094 dmalen = (chst->blksize >> factor); in autri_setup_channel()
|
| /openbsd-src/gnu/usr.bin/perl/ |
| H A D | numeric.c | 379 NV factor = 0; in Perl_grok_bin_oct_hex() local 476 factor = shift << bytes_so_far; in Perl_grok_bin_oct_hex() 492 factor *= 1 << shift; in Perl_grok_bin_oct_hex() 501 value_nv *= factor; in Perl_grok_bin_oct_hex() 509 factor = 1 << shift; in Perl_grok_bin_oct_hex() 590 value_nv *= factor; in Perl_grok_bin_oct_hex()
|
| /openbsd-src/sys/dev/usb/ |
| H A D | uchcom.c | 669 uchcom_calc_baudrate_ch343(uint32_t rate, uint8_t *divisor, uint8_t *factor) in uchcom_set_break_ch343() 689 *factor = 256 - clk / rate; in uchcom_calc_baudrate_ch343() 736 uint8_t factor, div; in uchcom_set_dte_rate_ch343() 738 uchcom_calc_baudrate_ch343(rate, &div, &factor); in uchcom_set_dte_rate_ch343() 739 idx = (factor << 8) | div; in uchcom_set_dte_rate_ch343() 673 uchcom_calc_baudrate_ch343(uint32_t rate,uint8_t * divisor,uint8_t * factor) uchcom_calc_baudrate_ch343() argument 740 uint8_t factor, div; uchcom_set_dte_rate_ch343() local
|