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

/freebsd-11-stable/lib/libc/stdlib/
H A Dlldiv.c34 lldiv(long long numer, long long denom) argument
38 retval.quot = numer / denom;
39 retval.rem = numer % denom;
43 retval.rem -= denom;
H A Ddiv.c42 div(num, denom)
43 int num, denom;
47 r.quot = num / denom;
48 r.rem = num % denom;
59 * r.rem will have the same sign as denom and the opposite
65 * If both are num and denom are positive, r will always
71 * subtract denom from r.rem.
75 r.rem -= denom;
H A Dldiv.c42 ldiv(num, denom)
43 long num, denom;
49 r.quot = num / denom;
50 r.rem = num % denom;
54 r.rem -= denom;
H A Dimaxdiv.c34 imaxdiv(intmax_t numer, intmax_t denom) argument
38 retval.quot = numer / denom;
39 retval.rem = numer % denom;
43 retval.rem -= denom;
/freebsd-11-stable/usr.bin/random/
H A Drandom.c67 double denom; local
73 denom = 0;
121 denom = (randomize_lines ? 1 : 2);
125 denom = strtod(*argv, &ep);
128 if (denom <= 0 || *ep != '\0')
130 if (random_exit && denom > 256)
154 ret = randomize_fd(fd, random_type, unique_output, denom);
159 /* Compute a random exit status between 0 and denom - 1. */
161 return (int)(denom * random() / RANDOM_MAX_PLUS1);
165 * We find a random number between 0 and denom
[all...]
H A Drandomize_fd.h49 int randomize_fd(int fd, int type, int unique, double denom);
H A Drandomize_fd.c95 randomize_fd(int fd, int type, int unique, double denom) argument
220 if ((int)(denom * random() /
/freebsd-11-stable/lib/msun/src/
H A Ds_ctanh.c78 double t, beta, s, rho, denom; local
134 denom = 1 + beta * s * s;
135 return (CMPLX((beta * rho * s) / denom, t / denom));
H A Ds_ctanhf.c43 float t, beta, s, rho, denom; local
74 denom = 1 + beta * s * s;
75 return (CMPLXF((beta * rho * s) / denom, t / denom));
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/builtins/ppc/
H A Ddivtc3.c41 const long double denom = local
48 DD real = {.ld = __gcc_qdiv(realNumerator, denom)};
49 DD imag = {.ld = __gcc_qdiv(imagNumerator, denom)};
59 DD rDD = {.ld = denom};
/freebsd-11-stable/usr.bin/tip/libacu/
H A Dventel.c66 #define delay(num,denom) busyloop(CPUSPEED*num/denom)
/freebsd-11-stable/contrib/llvm-project/libcxx/src/
H A Dchrono.cpp129 // mach_absolute_time() * MachInfo.numer / MachInfo.denom is the number of
130 // nanoseconds since the computer booted up. MachInfo.numer and MachInfo.denom
134 // MachInfo.numer / MachInfo.denom is often 1 on the latest equipment. Specialize
150 return static_cast<double>(MachInfo.numer) / MachInfo.denom;
169 if (MachInfo.numer == MachInfo.denom)
/freebsd-11-stable/contrib/ntp/sntp/libevent/
H A Devutil_time.c312 mi.denom *= 1000;
334 / (base->mach_timebase_units.denom);
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMallocOverflowSecurityChecker.cpp192 const Expr *denom = BOp->getRHS()->IgnoreParenImpCasts(); local
194 if (denom->EvaluateAsInt(Result, Context)) {
/freebsd-11-stable/sys/dev/pms/RefTisa/sallsdk/spc/
H A Dmpi.c882 bit32 denom; local
887 denom = saRoot->QueueConfig.numInboundQueues;
888 if (saRoot->IBQnumber % denom == 0) /* % Qnumber*/
896 denom = saRoot->QueueConfig.numOutboundQueues;
897 if (saRoot->OBQnumber % denom == 0) /* % Qnumber*/
/freebsd-11-stable/contrib/gcc/
H A Dlibgcc2.c1915 MTYPE denom, ratio, x, y;
1924 denom = (c * ratio) + d;
1925 x = ((a * ratio) + b) / denom;
1926 y = ((b * ratio) - a) / denom;
1931 denom = (d * ratio) + c;
1932 x = ((b * ratio) + a) / denom;
1933 y = (b - (a * ratio)) / denom;
1887 MTYPE denom, ratio, x, y; variable
/freebsd-11-stable/contrib/wpa/src/utils/
H A Dos_unix.c112 if (!info.denom) {
118 nano = (abstime * info.numer) / info.denom;
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_mac.cpp519 if (timebase_info.denom == 0) mach_timebase_info(&timebase_info);
520 return (mach_absolute_time() * timebase_info.numer) / timebase_info.denom;
/freebsd-11-stable/sys/dev/pms/RefTisa/tisa/sassata/common/
H A Dtdport.c7977 // bit32 denom = tdsaAllShared->QueueConfig.numOutboundQueues;
7998 bit32 denom = tdsaAllShared->QueueConfig.numInboundQueues; local
8003 if (tdsaAllShared->IBQnumber % denom == 0) /* % Qnumber*/
8012 denom = tdsaAllShared->QueueConfig.numOutboundQueues;
8013 if (tdsaAllShared->OBQnumber % denom == 0) /* % Qnumber*/
/freebsd-11-stable/contrib/libstdc++/
H A Dconfigure31138 intmax_t i, numer, denom, base;
31142 imaxdiv_t dret = imaxdiv(numer, denom);
[all...]

Completed in 416 milliseconds