Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 25 of 159) sorted by relevance

1234567

/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/std/
Dratio1 // ratio -*- C++ -*-
25 /** @file include/ratio
27 * @ingroup ratio
47 * @defgroup ratio Rational Arithmetic
256 * type intmax_t. The ratio is simplified when instantiated.
260 * std::ratio<7,-21>::num == -1;
261 * std::ratio<7,-21>::den == 3;
266 struct ratio
279 typedef ratio<num, den> type;
284 constexpr intmax_t ratio<_Num, _Den>::num;
[all …]
/netbsd/src/external/gpl3/gcc/dist/libgcc/config/rs6000/
D_divkc3.c57 TFtype denom, ratio, x, y; in __divkc3() local
97 ratio = c / d; in __divkc3()
98 denom = (c * ratio) + d; in __divkc3()
100 if (FABS (ratio) > RMIN) in __divkc3()
102 x = ((a * ratio) + b) / denom; in __divkc3()
103 y = ((b * ratio) - a) / denom; in __divkc3()
143 ratio = d / c; in __divkc3()
144 denom = (d * ratio) + c; in __divkc3()
146 if (FABS (ratio) > RMIN) in __divkc3()
148 x = ((b * ratio) + a) / denom; in __divkc3()
[all …]
/netbsd/src/external/lgpl3/mpfr/dist/tune/
Dtuneup.c593 mpfr_t ratio; in tune_simple_func_in_some_direction() local
595 mpfr_init2 (ratio, MPFR_SMALL_PRECISION); in tune_simple_func_in_some_direction()
596 mpfr_set_si (ratio, dirx, MPFR_RNDN); in tune_simple_func_in_some_direction()
597 mpfr_div_si (ratio, ratio, dirp, MPFR_RNDN); in tune_simple_func_in_some_direction()
605 mpfr_mul_ui (xmin, ratio, (unsigned int)pmin, MPFR_RNDN); in tune_simple_func_in_some_direction()
615 mpfr_mul_ui (xres, ratio, (unsigned int)*pres, MPFR_RNDN); in tune_simple_func_in_some_direction()
616 mpfr_clear (ratio); mpfr_clear (x); mpfr_clear (xmin); mpfr_clear (xmax); in tune_simple_func_in_some_direction()
628 mpfr_mul_ui (xmin, ratio, (unsigned int)pmin, MPFR_RNDN); in tune_simple_func_in_some_direction()
638 mpfr_mul_ui (xmin, ratio, (unsigned int)pmin, MPFR_RNDN); in tune_simple_func_in_some_direction()
643 mpfr_mul_ui (xmax, ratio, (unsigned int)pmax, MPFR_RNDN); in tune_simple_func_in_some_direction()
[all …]
/netbsd/src/usr.bin/ftp/
Dprogressbar.c133 int ratio, i, remaining, barlength; local
218 ratio = (int)((double)cursize * 100.0 / (double)filesize);
219 ratio = MAX(ratio, 0);
220 ratio = MIN(ratio, 100);
221 len += snprintf(buf + len, BUFLEFT, "%3d%% ", ratio);
231 i = barlength * ratio / 100;
/netbsd/src/external/bsd/libarchive/dist/libarchive/
Darchive_write_add_filter_compress.c335 int ratio; in archive_compressor_compress_write() local
393 ratio = (int)(state->in_count * 256 / state->out_count); in archive_compressor_compress_write()
394 else if ((ratio = (int)(state->out_count / 256)) == 0) in archive_compressor_compress_write()
395 ratio = 0x7fffffff; in archive_compressor_compress_write()
397 ratio = (int)(state->in_count / ratio); in archive_compressor_compress_write()
399 if (ratio > state->compress_ratio) in archive_compressor_compress_write()
400 state->compress_ratio = ratio; in archive_compressor_compress_write()
/netbsd/src/games/rogue/
Duse.c323 float ratio; in potion_heal() local
328 ratio = ((float)rogue.hp_current) / rogue.hp_max; in potion_heal()
330 if (ratio >= 1.00) { in potion_heal()
334 } else if (ratio >= 0.90) { in potion_heal()
339 if (ratio < 0.33) { in potion_heal()
340 ratio = 0.33; in potion_heal()
343 ratio += ratio; in potion_heal()
345 add = (short)(ratio * (rogue.hp_max - rogue.hp_current)); in potion_heal()
/netbsd/src/external/bsd/ppp/dist/pppstats/
Dpppstats.c197 stats.c.ratio = 0.0; in get_ppp_cstats()
199 stats.c.ratio = 256.0 * stats.c.in_count / stats.c.bytes_out; in get_ppp_cstats()
206 stats.d.ratio = 0.0; in get_ppp_cstats()
208 stats.d.ratio = 256.0 * stats.d.in_count / stats.d.bytes_out; in get_ppp_cstats()
341 ccs.d.ratio / 256.0); in intpr()
347 ccs.c.ratio / 256.0); in intpr()
354 ccs.d.ratio / 256.0); in intpr()
360 ccs.c.ratio / 256.0); in intpr()
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/detail/binary_heap_/
Dresize_policy.hpp57 ratio = 8, enumerator
187 m_shrink_size = m_grow_size / ratio; in notify_grow_resize()
210 m_shrink_size = m_grow_size / ratio; in notify_arbitrary()
221 || m_shrink_size * ratio == m_grow_size); in assert_valid()
/netbsd/src/external/gpl3/gcc/dist/gcc/
Dprofile-count.cc131 int64_t ratio = (int64_t)m_val * 100 / other.m_val; in differs_from_p() local
132 return ratio < 99 || ratio > 101; in differs_from_p()
223 int64_t ratio = (int64_t)m_val * 100 / other.m_val; in differs_from_p() local
224 return ratio < 99 || ratio > 101; in differs_from_p()
Dtarghooks.cc1958 unsigned int ratio = 0; in default_use_by_pieces_infrastructure_p() local
1964 ratio = CLEAR_RATIO (speed_p); in default_use_by_pieces_infrastructure_p()
1968 ratio = get_move_ratio (speed_p); in default_use_by_pieces_infrastructure_p()
1972 ratio = SET_RATIO (speed_p); in default_use_by_pieces_infrastructure_p()
1976 ratio = get_move_ratio (speed_p); in default_use_by_pieces_infrastructure_p()
1981 ratio = speed_p ? 15 : 3; in default_use_by_pieces_infrastructure_p()
1985 return by_pieces_ninsns (size, alignment, max_size + 1, op) < ratio; in default_use_by_pieces_infrastructure_p()
Dtree-complex.cc1285 tree rr, ri, ratio, div, t1, t2, tr, ti, compare; in expand_complex_div_wide() local
1364 ratio = gimple_build (&stmts, loc, code, inner_type, br, bi); in expand_complex_div_wide()
1366 t1 = gimple_build (&stmts, loc, MULT_EXPR, inner_type, br, ratio); in expand_complex_div_wide()
1369 t1 = gimple_build (&stmts, loc, MULT_EXPR, inner_type, ar, ratio); in expand_complex_div_wide()
1372 t1 = gimple_build (&stmts, loc, MULT_EXPR, inner_type, ai, ratio); in expand_complex_div_wide()
1405 ratio = gimple_build (&stmts, loc, code, inner_type, bi, br); in expand_complex_div_wide()
1407 t1 = gimple_build (&stmts, loc, MULT_EXPR, inner_type, bi, ratio); in expand_complex_div_wide()
1410 t1 = gimple_build (&stmts, loc, MULT_EXPR, inner_type, ai, ratio); in expand_complex_div_wide()
1413 t1 = gimple_build (&stmts, loc, MULT_EXPR, inner_type, ar, ratio); in expand_complex_div_wide()
Dparams.opt166 The threshold ratio of critical edges execution count that permit performing redundancy elimination…
170 The threshold ratio for performing partial redundancy elimination after reload.
172 -param=gcse-cost-distance-ratio=
340 -param=jump-table-max-growth-ratio-for-size=
342 The maximum code size growth ratio when expanding into a jump table (in percent). The parameter is…
344 -param=jump-table-max-growth-ratio-for-speed=
346 The maximum code size growth ratio when expanding into a jump table (in percent). The parameter is…
416 -param=loop-interchange-stride-ratio=
418 The minimum stride ratio for loop interchange to be profitable.
528 -param=max-gcse-insertion-ratio=
[all …]
/netbsd/src/external/bsd/file/dist/magic/magdir/
Dpc9820 >38 ubeshort&1 1 \b, 2:1 dot aspect ratio
35 # - b0=pixel aspect ratio: 1=2:1 (note: this ignores that the machine's 1:1 pixel aspect ratio is…
53 >>>&0 ubyte&0x01 1 \b, 2:1 dot aspect ratio
/netbsd/src/usr.bin/compress/
Dzopen.c156 #define ratio zs->zs_ratio macro
267 ratio = 0; in zwrite()
640 if (rat > ratio) in cl_block()
641 ratio = rat; in cl_block()
643 ratio = 0; in cl_block()
673 ratio = 0; in zopen()
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/
Dchrono.h61 template<typename _Rep, typename _Period = ratio<1>> in _GLIBCXX_VISIBILITY()
89 using __r = ratio<__gcd_num::value, in _GLIBCXX_VISIBILITY()
526 using __divide = ratio<(_R1::num / __gcd1) * (_R2::den / __gcd2), in _GLIBCXX_VISIBILITY()
878 using minutes = duration<_GLIBCXX_CHRONO_INT64_T, ratio< 60>>; in _GLIBCXX_VISIBILITY()
881 using hours = duration<_GLIBCXX_CHRONO_INT64_T, ratio<3600>>; in _GLIBCXX_VISIBILITY()
885 using days = duration<_GLIBCXX_CHRONO_INT64_T, ratio<86400>>; in _GLIBCXX_VISIBILITY()
888 using weeks = duration<_GLIBCXX_CHRONO_INT64_T, ratio<604800>>; in _GLIBCXX_VISIBILITY()
891 using years = duration<_GLIBCXX_CHRONO_INT64_T, ratio<31556952>>; in _GLIBCXX_VISIBILITY()
894 using months = duration<_GLIBCXX_CHRONO_INT64_T, ratio<2629746>>; in _GLIBCXX_VISIBILITY()
1343 constexpr chrono::duration<long double, ratio<3600,1>> in _GLIBCXX_VISIBILITY()
[all …]
/netbsd/src/sys/net/
Dbsd-comp.c100 u_int ratio; /* recent compression ratio */ member
205 db->ratio = 0; in bsd_clear()
251 if (new_ratio < db->ratio || new_ratio < 1 * RATIO_SCALE) { in bsd_check()
255 db->ratio = new_ratio; in bsd_check()
276 stats->ratio = db->in_count; in bsd_comp_stats()
278 if (stats->ratio <= 0x7fffff) in bsd_comp_stats()
279 stats->ratio <<= 8; in bsd_comp_stats()
283 stats->ratio /= out; in bsd_comp_stats()
Dppp-deflate.c356 stats->ratio = stats->unc_bytes; in z_comp_stats()
358 if (stats->ratio <= 0x7ffffff) in z_comp_stats()
359 stats->ratio <<= 8; in z_comp_stats()
363 stats->ratio /= out; in z_comp_stats()
/netbsd/src/sys/dev/i2c/
Dtsllux.c933 uint32_t channel0, channel1, scale, ratio, lux = 0; in tsllux_get_lux() local
1001 ratio = (channel1 << (TSL2561_LUX_RATIOSCALE + 1)) / channel0; in tsllux_get_lux()
1003 ratio = 0; in tsllux_get_lux()
1006 ratio = (ratio + 1) >> 1; in tsllux_get_lux()
1022 if (ratio <= table[idx].k) in tsllux_get_lux()
/netbsd/src/external/bsd/liblzf/dist/
DChanges33 with better compression ratio. with ULTRA_FAST, it's typically
34 3-15% faster than fastlz while still maintaining a similar ratio.
107 - slightly better compression ratio, almost unmeasurably
/netbsd/src/external/bsd/ntp/dist/sntp/libevent/test/
Dtest-ratelim.c633 double ratio; in main() local
670 seconds_per_tick = ratio = cfg_tick_msec / 1000.0; in main()
672 cfg_connlimit *= ratio; in main()
673 cfg_grouplimit *= ratio; in main()
/netbsd/src/external/bsd/libevent/dist/test/
Dtest-ratelim.c632 double ratio; in main() local
669 seconds_per_tick = ratio = cfg_tick_msec / 1000.0; in main()
671 cfg_connlimit *= ratio; in main()
672 cfg_grouplimit *= ratio; in main()
/netbsd/src/external/gpl3/gcc/dist/libgcc/
Dlibgcc2.c2050 MTYPE denom, ratio, x, y;
2092 ratio = c / d;
2093 denom = (c * ratio) + d;
2095 if (FABS (ratio) > RMIN)
2097 x = ((a * ratio) + b) / denom;
2098 y = ((b * ratio) - a) / denom;
2138 ratio = d / c;
2139 denom = (d * ratio) + c;
2141 if (FABS (ratio) > RMIN)
2143 x = ((b * ratio) + a) / denom;
[all …]
/netbsd/src/common/dist/zlib/contrib/minizip/
Dminiunz.c245 uLong ratio=0; in do_list() local
255 ratio = (uLong)((file_info.compressed_size*100)/file_info.uncompressed_size); in do_list()
286 ratio, in do_list()
/netbsd/src/external/bsd/pcc/dist/pcc/f77/fcom/
Dexpr.c2155 double ratio, den; local
2166 ratio = b->dreal / b->dimag ;
2167 den = b->dimag * (1 + ratio*ratio);
2168 c->dreal = (a->dreal*ratio + a->dimag) / den;
2169 c->dimag = (a->dimag*ratio - a->dreal) / den;
2174 ratio = b->dimag / b->dreal ;
2175 den = b->dreal * (1 + ratio*ratio);
2176 c->dreal = (a->dreal + a->dimag*ratio) / den;
2177 c->dimag = (a->dimag - a->dreal*ratio) / den;
/netbsd/src/sys/arch/arm/imx/
Dimxuart.c449 imxuspeed(long speed, struct imxuart_baudrate_ratio *ratio) in imxuspeed() argument
478 ratio->numerator = b-1; in imxuspeed()
479 ratio->modulator = f-1; in imxuspeed()
1179 struct imxuart_baudrate_ratio ratio; in imxuparam() local
1210 if (imxuspeed(t->c_ospeed, &ratio) < 0) in imxuparam()
1212 sc->sc_ratio = ratio; in imxuparam()
2178 struct imxuart_baudrate_ratio ratio; in imxuart_init() local
2188 if (imxuspeed(rate, &ratio) < 0) in imxuart_init()
2193 IMX_UBIR, ratio.numerator); in imxuart_init()
2195 IMX_UBMR, ratio.modulator); in imxuart_init()

1234567