HomeSort by: relevance | last modified time | path
    Searched refs:denom (Results 1 - 25 of 26) sorted by relevancy

1 2

  /src/lib/libc/stdlib/
div.c 47 div(int num, int denom)
51 r.quot = num / denom;
52 r.rem = num % denom;
62 * r.rem will have the same sign as denom and the opposite
68 * If both are num and denom are positive, r will always
74 * subtract denom from r.rem.
78 r.rem -= denom;
ldiv.c 47 ldiv(long num, long denom)
53 r.quot = num / denom;
54 r.rem = num % denom;
57 r.rem -= denom;
imaxdiv.c 53 imaxdiv(intmax_t num, intmax_t denom)
59 r.quot = num / denom;
60 r.rem = num % denom;
63 r.rem -= denom;
lldiv.c 53 lldiv(long long int num, long long int denom)
59 r.quot = num / denom;
60 r.rem = num % denom;
63 r.rem -= denom;
qdiv.c 52 qdiv(quad_t num, quad_t denom)
58 r.quot = num / denom;
59 r.rem = num % denom;
62 r.rem -= denom;
Lint_div.c 12 div(int num, int denom)
Lint_ldiv.c 12 ldiv(long num, long denom)
  /src/games/random/
random.c 65 double denom; local in function:main
69 denom = 0;
90 denom = 2;
94 denom = strtod(*argv, &ep);
97 if (denom == 0 || *ep != '\0')
105 /* Compute a random exit status between 0 and denom - 1. */
107 return arc4random_uniform(denom);
118 * We find a random number between 0 and denom - 1 and, if it's
119 * 0 (which has a 1 / denom chance of being true), we select the
122 selected = (arc4random_uniform(denom) == 0)
    [all...]
  /src/sys/netinet/
dccp_tfrc.c 148 x1.denom = 1; \
151 y1.denom = 1; \
154 y1.denom = 1; \
175 #define PRINTFLOAT(x) TFRC_DEBUG((LOG_INFO, "%lld/%lld", (x)->num, (x)->denom));
221 x.denom = 1 * r;
323 temp2.denom = TFRC_MAX_BACK_OFF_TIME;
326 normalize(&cb->x.num, &cb->x.denom);
343 cb->x.denom = 1;
345 cb->x.denom *= cb->rtt;
348 normalize(&cb->x.num, &cb->x.denom);
1832 long long num, denom; local in function:fixpoint_add
1847 long long num, denom; local in function:fixpoint_sub
1886 long long num, denom; local in function:fixpoint_mul
1901 long long num, denom; local in function:fixpoint_div
    [all...]
dccp_tfrc.h 67 long long denom; member in struct:fixpoint
  /src/sys/external/bsd/compiler_rt/dist/test/builtins/timing/
timing.h 23 conversion = (double) freq * (1e-9 * (double) info.numer / (double) info.denom);
  /src/sys/external/bsd/compiler_rt/dist/test/timing/
timing.h 23 conversion = (double) freq * (1e-9 * (double) info.numer / (double) info.denom);
  /src/usr.bin/rump_dhcpclient/
common.c 115 factor = (double)info.numer / (double)info.denom;
121 if ((info.denom != 1 || info.numer != 1) && factor != 0.0)
  /src/sys/external/bsd/compiler_rt/dist/lib/builtins/ppc/
divtc3.c 36 const long double denom = __gcc_qadd(__gcc_qmul(cDD.ld, cDD.ld), __gcc_qmul(dDD.ld, dDD.ld)); local in function:__divtc3
40 DD real = { .ld = __gcc_qdiv(realNumerator, denom) };
41 DD imag = { .ld = __gcc_qdiv(imagNumerator, denom) };
52 DD rDD = { .ld = denom };
  /src/usr.bin/xlint/llib/
llib-lstdc 207 div_t (div)(int numer, int denom);
209 ldiv_t (ldiv)(long numer, long denom);
llib-lposix 102 div_t (div)(int numer, int denom);
182 ldiv_t (ldiv)(long numer, long denom);
  /src/sys/arch/arm/altera/
cycv_clkmgr.c 372 uint32_t denom; local in function:cycv_clkmgr_clock_print
386 denom = __SHIFTOUT(tmp, CYCV_CLKMGR_PLL_VCO_DENOM) + 1;
387 aprint_debug(" PLL num = %u, den = %u\n", numer, denom);
  /src/sys/arch/arm/nvidia/
tegra_soctherm.c 403 tegra_soctherm_divide(int64_t num, int64_t denom)
405 int64_t ret = ((num << 16) * 2 + 1) / (2 * denom);
  /src/sys/arch/hppa/hppa/
machdep.c 945 u_int num, denom, delta, mdelta; local in function:delay_init
948 for (denom = 1; denom < 1000; denom++) {
949 num = (PAGE0->mem_10msec * denom) / 10000;
950 delta = num * 10000 / denom - PAGE0->mem_10msec;
952 cpu_ticksdenom = denom;
956 cpu_ticksdenom = denom;
  /src/sys/arch/arm/nxp/
imx6_ccm.c 204 uint32_t denom = bus_space_read_4(sc->sc_iot, sc->sc_ioh_analog, local in function:imxccm_clk_get_rate_pll_audio_video
207 uint64_t tmp = freq * num / denom;
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
sanitizer_mac.cc 442 if (timebase_info.denom == 0) mach_timebase_info(&timebase_info);
443 return (mach_absolute_time() * timebase_info.numer) / timebase_info.denom;
  /src/sbin/fdisk/
fdisk.c 1628 uint64_t num, denom; local in function:intuit_translated_geometry
1669 denom = (uint64_t)c2 * a1 - (uint64_t)c1 * a2;
1670 if (denom != 0 && num != 0 && num % denom == 0) {
1671 xheads = num / denom;
  /src/usr.sbin/sysinst/
mbr.c 2480 uint64_t num, denom; local in function:mbr_guess_geom
2494 denom = (uint64_t)c2 * a1 - (quad_t)c1 * a2;
2495 if (num != 0 && denom != 0 && num % denom == 0) {
2496 xheads = (int)(num / denom);
  /src/sys/arch/evbarm/dev/
plcom.c 367 int denom = 16 * speed; local in function:pl011comspeed
368 int div = frequency / denom;
369 int rem = frequency % denom;
  /src/sys/arch/amiga/dev/
grf_cl.c 1270 cl_CompFQ(u_int fq, u_char *num, u_char *denom, u_char *clkdoub)
1297 denom = 0x00 - 0x1f (1) 0x20 - 0x3e (even)
1341 *denom = (mind << 1) | minp;

Completed in 179 milliseconds

1 2