/macosx-10.10.1/ntp-92/libntp/ |
H A D | systime.c | 66 double dtemp; local 81 dtemp = 0; 83 dtemp = ntp_random() * 2. / FRAC * sys_tick * 1e9; 85 dtemp = ntp_random() * 2. / FRAC; 86 dtemp = (ts.tv_nsec + dtemp) * 1e-9 + sys_residual; 87 if (dtemp >= 1.) { 88 dtemp -= 1.; 90 } else if (dtemp < 0) { 91 dtemp 135 double dtemp; local 189 double dtemp; local [all...] |
/macosx-10.10.1/ntp-92/util/ |
H A D | jitter.c | 38 double dtemp, gtod[NBUF]; local 70 dtemp = gtod[j]; 72 gtod[i] = dtemp; 96 double dtemp; local 110 dtemp = ts.tv_nsec / 1e9; 120 dtemp = tv.tv_usec / 1e6; 127 dtemp += sys_residual; 128 if (dtemp >= 1) { 129 dtemp -= 1; 131 } else if (dtemp < [all...] |
/macosx-10.10.1/ntp-92/ntpd/ |
H A D | ntp_loopfilter.c | 216 double dtemp, etemp; /* double temps */ local 292 dtemp = -(peer->delay - sys_mindly) / 2; 294 dtemp = (peer->delay - sys_mindly) / 2; 295 fp_offset += dtemp; 300 sys_hufflen, sys_mindly, dtemp); 421 dtemp = SQUARE(max(fabs(fp_offset - last_offset), 423 clock_jitter = SQRT(etemp + (dtemp - etemp) / 493 dtemp = 4 * CLOCK_PLL * ULOGTOD(sys_poll); 494 clock_frequency += fp_offset * etemp / (dtemp * 495 dtemp); [all...] |
H A D | ntpsim.c | 503 double dtemp; local 513 dtemp = now + sys_residual; 514 if (dtemp < 0) { 516 dtemp = -dtemp; 518 adjtv.tv_sec = (long)dtemp; 519 dtemp -= adjtv.tv_sec; 520 ticks = (long)(dtemp / sys_tick + .5); 522 dtemp -= adjtv.tv_usec / 1e6; 523 sys_residual = dtemp; [all...] |
H A D | refclock_wwv.c | 977 double dtemp; local 1038 dtemp = sintab[i] * data / (MS / 2. * DATCYC); 1040 ibuf[iptr] = dtemp; 1041 up->irig += dtemp; 1044 dtemp = sintab[i] * data / (MS / 2. * DATCYC); 1046 qbuf[iptr] = dtemp; 1047 up->qrig += dtemp; 1107 dtemp = sintab[i] * syncx / (MS / 2.); 1109 cibuf[jptr] = dtemp; 1110 ciamp += dtemp; 1408 double dtemp; local 2403 double rank, dtemp; local 2545 double dtemp; local [all...] |
H A D | refclock_chu.c | 910 double dtemp; local 942 dtemp = sp->shift[i]; 943 if (dtemp > slice) 946 dist += dtemp - es_min; 948 dist += es_max - dtemp; 950 if (dtemp > slice) 951 dist += dtemp - es_min; 953 dist += es_max - dtemp; 998 double dtemp; local 1014 LFPTOD(&tstmp, dtemp); 1310 double dtemp; local [all...] |
H A D | refclock_irig.c | 600 double dtemp; local 658 dtemp = up->zxing * up->decim / BAUD; 659 up->yxing = dtemp; 661 up->phase += dtemp / up->tc; 662 up->freq += dtemp / (4. * up->tc * up->tc); 753 double dtemp; local 789 dtemp = up->decim * (up->exing / SECOND) + up->fdelay; 790 DTOLFP(dtemp, <emp);
|
H A D | ntp_refclock.c | 1270 double dtemp; local 1315 dtemp = ap->ts.tv_nsec / 1e9; 1316 pp->lastrec.l_uf = (u_int32)(dtemp * FRAC); 1317 if (dtemp > .5) 1318 dtemp -= 1.; 1319 SAMPLE(-dtemp + pp->fudgetime1); 1323 dtemp, pp->fudgetime1);
|
H A D | ntp_proto.c | 1632 double dtemp; local 1655 dtemp = sys_jitter + fabs(sys_offset) + peer->disp + clock_phi * 1657 sys_rootdisp = dtemp + peer->rootdisp; 2024 double dtemp, etemp; local 2070 dtemp = clock_phi * (current_time - peer->update); 2074 peer->filter_disp[j] += dtemp; 2783 double dtemp; local 2792 dtemp = (peer->delay + peer->rootdelay) / 2 + peer->disp + 2795 if (dtemp < sys_mindisp) 2796 dtemp 3490 double dtemp; /* scratch */ local [all...] |
H A D | refclock_true.c | 405 double dtemp; local 407 dtemp = pp->fudgetime1; 409 pp->fudgetime2 = dtemp;
|
H A D | refclock_jupiter.c | 398 double dtemp; local 430 dtemp = ts.tv_nsec * FRAC / 1e9; 431 tstmp.l_uf = (u_int32)dtemp;
|
H A D | refclock_parse.c | 2081 double dtemp; local 2095 dtemp = pts.tv_nsec / 1e9; 2096 if (dtemp < 0.) { 2097 dtemp += 1; 2100 if (dtemp > 1.) { 2101 dtemp -= 1; 2104 parse->parseio.parse_dtime.parse_ptime.fp.l_uf = dtemp * FRAC;
|
H A D | ntp_request.c | 421 double dtemp; local 625 LFPTOD(&ftmp, dtemp); 626 if (fabs(dtemp) > INFO_TS_MAXSKEW) { 631 dtemp, INFO_TS_MAXSKEW));
|
H A D | ntp_io.c | 3157 double dtemp; local 3164 dtemp = (tvp->tv_usec 3166 nts.l_uf = (u_int32)(dtemp * FRAC);
|
H A D | refclock_ripencc.c | 712 double dtemp; local 749 dtemp = ts.tv_nsec * FRAC / 1e9; 750 tstmp.l_uf = (u_int32)dtemp;
|
/macosx-10.10.1/ntp-92/ntpdate/ |
H A D | ntpdate.c | 2042 double dtemp; local 2062 LFPTOD(ts, dtemp); 2063 n = step_systime(dtemp); 2080 LFPTOD(ts, dtemp); 2081 return step_systime(dtemp); 2089 LFPTOD(ts, dtemp); 2090 return step_systime(dtemp);
|
H A D | ntptimeset.c | 1505 double dtemp; local 1564 LFPTOD(&server->offset, dtemp); 1565 step_systime(dtemp);
|
/macosx-10.10.1/awk-20/src/ |
H A D | tran.c | 365 double dtemp; local 376 if (modf(vp->fval, &dtemp) == 0) /* it's integral */
|
/macosx-10.10.1/emacs-93/emacs/src/ |
H A D | regex.c | 159 re_char *dtemp = (p) == (str2) ? (end1) : (p); \ 161 re_char *d0 = dtemp; \ 163 c = STRING_CHAR (d0, dtemp - d0); \
|