Searched refs:denom (Results 1 - 10 of 10) sorted by relevance
/darwin-on-arm/xnu/osfmk/mach/ |
H A D | mach_time.h | 38 uint32_t denom; member in struct:mach_timebase_info
|
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/ |
H A D | sched_tests.c | 27 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);
|
/darwin-on-arm/xnu/tools/tests/jitter/ |
H A D | timer_jitter.c | 114 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)));
|
/darwin-on-arm/xnu/tools/tests/libMicro/ |
H A D | libmicro.c | 74 // 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...] |
/darwin-on-arm/xnu/bsd/dev/dtrace/ |
H A D | dtrace_glue.c | 1074 * We can use denom == 0 to indicate that sTimebaseInfo is 1079 if ( sTimebaseInfo.denom == 0 ) { 1085 * return (elapsed * (uint64_t)sTimebaseInfo.numer)/(uint64_t)sTimebaseInfo.denom; 1090 if (sTimebaseInfo.denom == sTimebaseInfo.numer) 1092 else if (sTimebaseInfo.denom == 1) 1099 uint32_t numer = sTimebaseInfo.numer, denom = sTimebaseInfo.denom; local 1105 /* Divide the constituents by denom: */ 1106 uint64_t q32 = mu64/denom; 1107 uint64_t r32 = mu64 - (q32 * denom); /* mu6 [all...] |
/darwin-on-arm/xnu/tools/tests/zero-to-n/ |
H A D | zero-to-n.c | 98 return (uint64_t)(abstime * (((double)g_mti.numer) / ((double)g_mti.denom))); 104 return (uint64_t)(ns * (((double)g_mti.denom) / ((double)g_mti.numer)));
|
/darwin-on-arm/xnu/osfmk/arm/ |
H A D | rtclock.c | 332 info->numer = info->denom = 1;
|
/darwin-on-arm/xnu/osfmk/i386/ |
H A D | rtclock.c | 443 info->numer = info->denom = 1;
|
H A D | cpu_threads.c | 38 #define DIVISOR_GUARD(denom) \ 39 if ((denom) == 0) { \ 40 kprintf("%s: %d Zero divisor: " #denom, \
|
/darwin-on-arm/xnu/bsd/vfs/ |
H A D | vfs_fsevents.c | 443 if ( sTimebaseInfo.denom == 0 ) { 448 if (sTimebaseInfo.denom != sTimebaseInfo.numer) { 449 if (sTimebaseInfo.denom == 1) { 455 elapsed = (elapsed * sTimebaseInfo.numer) / (uint64_t)sTimebaseInfo.denom;
|
Completed in 40 milliseconds