Searched refs:denom (Results 1 - 22 of 22) sorted by relevance

/freebsd-current/lib/libc/stdlib/
H A Dldiv.c38 ldiv(long num, long denom) argument
44 r.quot = num / denom;
45 r.rem = num % denom;
H A Ddiv.c38 div(int num, int denom) argument
42 r.quot = num / denom;
43 r.rem = num % denom;
H A Dimaxdiv.c33 imaxdiv(intmax_t numer, intmax_t denom) argument
37 retval.quot = numer / denom;
38 retval.rem = numer % denom;
H A Dlldiv.c33 lldiv(long long numer, long long denom) argument
37 retval.quot = numer / denom;
38 retval.rem = numer % denom;
/freebsd-current/usr.bin/random/
H A Drandomize_fd.h41 int randomize_fd(int fd, int type, int unique, double denom);
49 static const uint64_t denom = (1ull << 53); local
50 static const uint64_t mask = denom - 1;
62 * We are not allowed to emit 1.0, so denom must be one greater than
67 return ((double)rand64 / denom);
71 * Returns true with probability 1 / denom (a floating point number >= 1).
75 random_uniform_denom(double denom) argument
77 return ((uint64_t)(denom * random_unit_float()) == 0);
H A Drandom.c55 double denom; local
62 denom = 0.;
110 denom = (randomize_lines ? 1. : 2.);
114 denom = strtod(*argv, &ep);
117 if (denom < 1. || *ep != '\0')
119 if (random_exit && denom > 256.)
141 ret = randomize_fd(fd, random_type, unique_output, denom);
146 /* Compute a random exit status between 0 and denom - 1. */
148 return (arc4random_uniform(denom));
151 * Filter stdin, selecting lines with probability 1/denom, on
[all...]
H A Drandomize_fd.c94 randomize_fd(int fd, int type, int unique, double denom) argument
219 if (random_uniform_denom(denom)) {
/freebsd-current/lib/msun/src/
H A Ds_ctanh.c77 double t, beta, s, rho, denom; local
135 denom = 1 + beta * s * s;
136 return (CMPLX((beta * rho * s) / denom, t / denom));
H A Ds_ctanhf.c42 float t, beta, s, rho, denom; local
73 denom = 1 + beta * s * s;
74 return (CMPLXF((beta * rho * s) / denom, t / denom));
/freebsd-current/contrib/llvm-project/compiler-rt/lib/builtins/ppc/
H A Ddivtc3.c42 const long double denom = local
49 DD real = {.ld = __gcc_qdiv(realNumerator, denom)};
50 DD imag = {.ld = __gcc_qdiv(imagNumerator, denom)};
60 DD rDD = {.ld = denom};
/freebsd-current/sys/contrib/zstd/programs/
H A Dtimefn.c70 return (((clockEnd - clockStart) * (PTime)rate.numer) / ((PTime)rate.denom))/1000ULL;
81 return ((clockEnd - clockStart) * (PTime)rate.numer) / ((PTime)rate.denom);
/freebsd-current/usr.bin/tip/libacu/
H A Dventel.c58 #define delay(num,denom) busyloop(CPUSPEED*num/denom)
/freebsd-current/sys/arm64/rockchip/
H A Drk_tsadc.c388 int denom, ntbl, raw, i; local
413 denom = tbl[i - 1].temp - tbl[i].temp;
414 raw = tbl[i - 1].raw + raw / denom;
422 int denom, ntbl, temp, i; local
464 denom = tbl[i - 1].raw - tbl[i].raw;
465 temp = tbl[i - 1].temp + temp / denom;
/freebsd-current/contrib/ntp/sntp/libevent/
H A Devutil_time.c395 mi.denom *= 1000;
417 / (base->mach_timebase_units.denom);
/freebsd-current/contrib/libevent/
H A Devutil_time.c395 mi.denom *= 1000;
417 / (base->mach_timebase_units.denom);
/freebsd-current/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMallocOverflowSecurityChecker.cpp194 const Expr *denom = BOp->getRHS()->IgnoreParenImpCasts(); local
196 if (denom->EvaluateAsInt(Result, Context)) {
/freebsd-current/sys/dev/pms/RefTisa/sallsdk/spc/
H A Dmpi.c881 bit32 denom; local
886 denom = saRoot->QueueConfig.numInboundQueues;
887 if (saRoot->IBQnumber % denom == 0) /* % Qnumber*/
895 denom = saRoot->QueueConfig.numOutboundQueues;
896 if (saRoot->OBQnumber % denom == 0) /* % Qnumber*/
/freebsd-current/contrib/wpa/src/utils/
H A Dos_unix.c118 if (!info.denom) {
124 nano = (abstime * info.numer) / info.denom;
/freebsd-current/contrib/ntp/sntp/libevent/test/
H A Dregress_main.c211 ((double)info.denom / (double)info.numer) * NANOS_PER_MSEC;
/freebsd-current/contrib/libevent/test/
H A Dregress_main.c211 ((double)info.denom / (double)info.numer) * NANOS_PER_MSEC;
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_mac.cpp540 if (timebase_info.denom == 0) mach_timebase_info(&timebase_info);
541 return (mach_absolute_time() * timebase_info.numer) / timebase_info.denom;
/freebsd-current/sys/dev/pms/RefTisa/tisa/sassata/common/
H A Dtdport.c7976 // bit32 denom = tdsaAllShared->QueueConfig.numOutboundQueues;
7997 bit32 denom = tdsaAllShared->QueueConfig.numInboundQueues; local
8002 if (tdsaAllShared->IBQnumber % denom == 0) /* % Qnumber*/
8011 denom = tdsaAllShared->QueueConfig.numOutboundQueues;
8012 if (tdsaAllShared->OBQnumber % denom == 0) /* % Qnumber*/

Completed in 374 milliseconds