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

/xnu-2782.1.97/osfmk/mach/
H A Dmach_time.h38 uint32_t denom; member in struct:mach_timebase_info
/xnu-2782.1.97/tools/tests/xnu_quick_test/
H A Dsched_tests.c27 nanos_to_abs(uint64_t ns, uint32_t numer, uint32_t denom) argument
29 return (uint64_t)(ns * (((double)denom) / ((double)numer)));
44 pol.period = nanos_to_abs(1000000000, mti.numer, mti.denom);
45 pol.constraint = nanos_to_abs(100000000, mti.numer, mti.denom);
46 pol.computation = nanos_to_abs(10000000, mti.numer, mti.denom);
/xnu-2782.1.97/tools/tests/jitter/
H A Dtimer_jitter.c114 pol.constraint = CONSTRAINT_NANOS * g_mti.denom / g_mti.numer;
115 pol.computation = COMPUTATION_NANOS * g_mti.denom / g_mti.numer;
193 printf("Max %s: %.1lfus\n", label, max / 1000.0 * (((double)g_mti.numer) / ((double)g_mti.denom)));
194 printf("Min %s: %.1lfus\n", label, min / 1000.0 * (((double)g_mti.numer) / ((double)g_mti.denom)));
195 printf("Avg magnitude of %s: %.1lfus\n", label, avg / 1000.0 * (((double)g_mti.numer) / ((double)g_mti.denom)));
196 printf("Stddev: %.1lfus\n", stddev / 1000.0 * (((double)g_mti.numer) / ((double)g_mti.denom)));
362 sleep_length_abs = (uint64_t) (get_random_sleep_length_abs_ns(min_sleep_ns, max_sleep_ns) * (((double)g_mti.denom) / ((double)g_mti.numer)));
/xnu-2782.1.97/tools/tests/libMicro/
H A Dlibmicro.c74 // We can use denom == 0 to indicate that sTimebaseInfo is
78 if ( sTimebaseInfo.denom == 0 ) {
86 // return (elapsed * (long long)sTimebaseInfo.numer)/(long long)sTimebaseInfo.denom;
90 if (sTimebaseInfo.denom == sTimebaseInfo.numer)
92 else if (sTimebaseInfo.denom == 1)
99 long long numer = sTimebaseInfo.numer, denom = sTimebaseInfo.denom; local
105 // Divide the constituents by denom:
106 long long q32 = mu64/denom;
107 long long r32 = mu64 - (q32 * denom); // mu6
1456 double denom; local
[all...]
/xnu-2782.1.97/bsd/dev/dtrace/
H A Ddtrace_glue.c1112 * We can use denom == 0 to indicate that sTimebaseInfo is
1117 if ( sTimebaseInfo.denom == 0 ) {
1123 * return (elapsed * (uint64_t)sTimebaseInfo.numer)/(uint64_t)sTimebaseInfo.denom;
1128 if (sTimebaseInfo.denom == sTimebaseInfo.numer)
1130 else if (sTimebaseInfo.denom == 1)
1137 uint32_t numer = sTimebaseInfo.numer, denom = sTimebaseInfo.denom; local
1143 /* Divide the constituents by denom: */
1144 uint64_t q32 = mu64/denom;
1145 uint64_t r32 = mu64 - (q32 * denom); /* mu6
[all...]
/xnu-2782.1.97/tools/tests/zero-to-n/
H A Dzero-to-n.c107 return (uint64_t)(abstime * (((double)g_mti.numer) / ((double)g_mti.denom)));
113 return (uint64_t)(ns * (((double)g_mti.denom) / ((double)g_mti.numer)));
/xnu-2782.1.97/osfmk/i386/
H A Drtclock.c422 info->numer = info->denom = 1;
H A Dcpu_threads.c38 #define DIVISOR_GUARD(denom) \
39 if ((denom) == 0) { \
40 kprintf("%s: %d Zero divisor: " #denom, \
/xnu-2782.1.97/bsd/vfs/
H A Dvfs_fsevents.c419 if ( sTimebaseInfo.denom == 0 ) {
424 if (sTimebaseInfo.denom != sTimebaseInfo.numer) {
425 if (sTimebaseInfo.denom == 1) {
431 elapsed = (elapsed * sTimebaseInfo.numer) / (uint64_t)sTimebaseInfo.denom;

Completed in 97 milliseconds