/freebsd-10.2-release/lib/libc/stdlib/ |
H A D | imaxdiv.c | 34 imaxdiv(intmax_t numer, intmax_t denom) argument 38 retval.quot = numer / denom; 39 retval.rem = numer % denom; 42 retval.rem -= denom;
|
H A D | lldiv.c | 34 lldiv(long long numer, long long denom) argument 38 retval.quot = numer / denom; 39 retval.rem = numer % denom; 42 retval.rem -= denom;
|
H A D | div.c | 42 div(num, denom) 43 int num, denom; 47 r.quot = num / denom; 48 r.rem = num % denom; 58 * r.rem will have the same sign as denom and the opposite 64 * If both are num and denom are positive, r will always 70 * subtract denom from r.rem. 74 r.rem -= denom;
|
H A D | ldiv.c | 42 ldiv(num, denom) 43 long num, denom; 49 r.quot = num / denom; 50 r.rem = num % denom; 53 r.rem -= denom;
|
/freebsd-10.2-release/games/random/ |
H A D | random.c | 67 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 D | randomize_fd.h | 49 int randomize_fd(int fd, int type, int unique, double denom);
|
H A D | randomize_fd.c | 95 randomize_fd(int fd, int type, int unique, double denom) argument 220 if ((int)(denom * random() /
|
/freebsd-10.2-release/lib/msun/src/ |
H A D | s_ctanh.c | 78 double t, beta, s, rho, denom; local 134 denom = 1 + beta * s * s; 135 return (CMPLX((beta * rho * s) / denom, t / denom));
|
H A D | s_ctanhf.c | 43 float t, beta, s, rho, denom; local 74 denom = 1 + beta * s * s; 75 return (CMPLXF((beta * rho * s) / denom, t / denom));
|
/freebsd-10.2-release/contrib/libc++/src/ |
H A D | chrono.cpp | 55 // mach_absolute_time() * MachInfo.numer / MachInfo.denom is the number of 56 // nanoseconds since the computer booted up. MachInfo.numer and MachInfo.denom 60 // MachInfo.numer / MachInfo.denom is often 1 on the latest equipment. Specialize 78 return static_cast<double>(MachInfo.numer) / MachInfo.denom; 97 if (MachInfo.numer == MachInfo.denom)
|
/freebsd-10.2-release/contrib/compiler-rt/lib/ppc/ |
H A D | divtc3.c | 41 const long double denom = __gcc_qadd(__gcc_qmul(cDD.ld, cDD.ld), __gcc_qmul(dDD.ld, dDD.ld)); local 45 DD real = { .ld = __gcc_qdiv(realNumerator, denom) }; 46 DD imag = { .ld = __gcc_qdiv(imagNumerator, denom) }; 57 DD rDD = { .ld = denom };
|
/freebsd-10.2-release/usr.bin/tip/libacu/ |
H A D | ventel.c | 66 #define delay(num,denom) busyloop(CPUSPEED*num/denom)
|
/freebsd-10.2-release/contrib/ntp/sntp/libevent/ |
H A D | evutil_time.c | 312 mi.denom *= 1000; 334 / (base->mach_timebase_units.denom);
|
/freebsd-10.2-release/sys/dev/pms/RefTisa/sallsdk/spc/ |
H A D | mpi.c | 882 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-10.2-release/contrib/gcc/ |
H A D | libgcc2.c | 1915 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-10.2-release/sys/dev/pms/RefTisa/tisa/sassata/common/ |
H A D | tdport.c | 7977 // 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-10.2-release/contrib/libstdc++/ |
H A D | configure | 31138 intmax_t i, numer, denom, base; 31142 imaxdiv_t dret = imaxdiv(numer, denom); [all...] |