/macosx-10.10/Libc-1044.1.2/stdlib/FreeBSD/ |
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;
|
/macosx-10.10/dtrace-147/ |
H A D | darwin_shim.c | 43 // We can use denom == 0 to indicate that sTimebaseInfo is 47 if ( sTimebaseInfo.denom == 0 ) { 55 // return (elapsed * (uint64_t)sTimebaseInfo.numer)/(uint64_t)sTimebaseInfo.denom; 59 if (sTimebaseInfo.denom == sTimebaseInfo.numer) 61 else if (sTimebaseInfo.denom == 1) 68 uint32_t numer = sTimebaseInfo.numer, denom = sTimebaseInfo.denom; local 74 // Divide the constituents by denom: 75 uint64_t q32 = mu64/denom; 76 uint64_t r32 = mu64 - (q32 * denom); // mu6 [all...] |
/macosx-10.10/xnu-2782.1.97/osfmk/mach/ |
H A D | mach_time.h | 38 uint32_t denom; member in struct:mach_timebase_info
|
/macosx-10.10/python_modules-40/tmpprefix/f2c/ |
H A D | cpu_time__.c | 24 ratio = (real)info.numer / ((real)info.denom * NSEC_PER_SEC);
|
/macosx-10.10/cups-408/cups/cups/ |
H A D | pwg-media.c | 43 int denom); 693 denom; /* ... */ local 703 denom = 72; 710 denom = 1; 735 denom = 1; 740 denom = 1; 745 denom = 1; 750 denom = 1; 755 denom = 1; 760 denom 1134 pwg_scan_measurement( const char *buf, char **bufptr, int numer, int denom) argument [all...] |
/macosx-10.10/libdispatch-442.1.4/src/ |
H A D | benchmark.c | 66 lcost /= bdata->tbi.denom; 119 big_denom = bdata.tbi.denom;
|
H A D | time.c | 58 _dispatch_host_time_data.frac /= tbi.denom; 59 _dispatch_host_time_data.ratio_1_to_1 = (tbi.numer == tbi.denom);
|
/macosx-10.10/tcl-105/tcl_ext/tcllib/tcllib/modules/math/ |
H A D | bigfloat.tcl | 351 set denom $two 352 # the nth factor equals : $num/$denom* $mantissa/$i 356 [::math::bignum::mul $delta $num] $denom] $precision]] 359 # and we want Mantissa*$x^2 * $num / $denom / $i 361 set mantissa [::math::bignum::div $mantissa $denom] 365 # $num=2n-1 $denom=2n $square=x^2 and $i=2n+1 371 # Mantissa = Mantissa * $num/$denom * $square 376 # num=num+2,i=i+2,denom=denom+2 377 # because num=2n-1 denom [all...] |
H A D | qcomplex.tcl | 66 set denom [expr {$c2*$c2+$d2*$d2}] 67 return [list [expr {($c1*$c2+$d1*$d2)/$denom}] \ 68 [expr {(-$c1*$d2+$c2*$d1)/$denom}]]
|
H A D | bigfloat2.tcl | 285 set denom 2 286 # the nth factor equals : $num/$denom* $mantissa/$i 288 set delta [expr {($delta*$num)/ $denom >>$precision}] 292 # and we want Mantissa*$x^2 * $num / $denom / $i 293 set mantissa [expr {($mantissa*$square>>$precision)/$denom}] 297 # $num=2n-1 $denom=2n $square=x^2 and $i=2n+1 303 # Mantissa = Mantissa * $num/$denom * $square 308 # num=num+2,i=i+2,denom=denom+2 309 # because num=2n-1 denom [all...] |
/macosx-10.10/Libc-1044.1.2/gen/ |
H A D | nanosleep.c | 257 if (info.denom == 0) { 264 /* If numer == denom == 1 (as in intel), no conversion needed */ 265 unity = (info.numer == info.denom); 270 else if(!muldiv128((uint64_t)info.denom * NSEC_PER_SEC, 280 + (uint64_t)info.denom * requested_time->tv_nsec / info.numer; 296 (uint64_t)info.denom,
|
/macosx-10.10/xnu-2782.1.97/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);
|
/macosx-10.10/CommonCrypto-60061/lib/ |
H A D | CommonKeyDerivation.c | 73 if (globals->timebaseInfo.denom == 0) { 78 return (uint64_t) (timeNano * globals->timebaseInfo.numer) / (globals->timebaseInfo.denom * 1000000);
|
/macosx-10.10/Security-57031.1.35/Security/include/security_cryptkit/ |
H A D | giantIntegers.h | 153 void divg_via_recip(giant denom, giant recip, giant numer); 155 void modg_via_recip(giant denom, giant recip, giant numer);
|
/macosx-10.10/Security-57031.1.35/Security/libsecurity_cryptkit/lib/ |
H A D | giantIntegers.h | 153 void divg_via_recip(giant denom, giant recip, giant numer); 155 void modg_via_recip(giant denom, giant recip, giant numer);
|
/macosx-10.10/swig-12/Lib/ |
H A D | inttypes.i | 45 extern imaxdiv_t imaxdiv (intmax_t numer, intmax_t denom);
|
/macosx-10.10/IOGraphics-485/tools/ |
H A D | gaussblur.c | 45 uint32_t denom = 0; local 52 denom = tbi.denom; 54 scale = (double)num / (double)denom;
|
/macosx-10.10/Security-57031.1.35/SecurityTests/cspxutils/utilLib/ |
H A D | cputime.c | 14 double machRatio = (double)tinfo.numer / (double)tinfo.denom;
|
/macosx-10.10/xnu-2782.1.97/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)));
|
/macosx-10.10/xnu-2782.1.97/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...] |
/macosx-10.10/libauto-186/ |
H A D | Statistics.h | 116 if (_timebase.denom == 0) { 118 _timebase.denom *= 1000; // we're using microseconds instead of nanoseconds 127 return (end - start) * timebase.numer / timebase.denom;
|
/macosx-10.10/tcl-105/tcl/tcl/unix/ |
H A D | tclUnixTime.c | 212 if (!tb.denom) { 217 nsec = ((uint64_t) clicks) * tb.numer / tb.denom; 219 nsec = ((long double) (uint64_t) clicks) * tb.numer / tb.denom;
|