/freebsd-11-stable/contrib/ntp/util/ |
H A D | jitter.c | 36 double dtemp, gtod[NBUF]; local 68 dtemp = gtod[j]; 70 gtod[i] = dtemp; 94 double dtemp; local 108 dtemp = ts.tv_nsec / 1e9; 118 dtemp = tv.tv_usec / 1e6; 125 dtemp += sys_residual; 126 if (dtemp >= 1) { 127 dtemp -= 1; 129 } else if (dtemp < [all...] |
/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | systime.c | 294 double dtemp; local 321 dtemp = now + sys_residual; 322 if (dtemp < 0) { 324 dtemp = -dtemp; 326 adjtv.tv_sec = (long)dtemp; 327 dtemp -= adjtv.tv_sec; 332 ticks = (long)(dtemp / quant + .5); 341 dtemp -= 1.; 344 sys_residual = dtemp [all...] |
/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | refclock_wwv.c | 973 double dtemp; local 1034 dtemp = sintab[i] * data / (MS / 2. * DATCYC); 1036 ibuf[iptr] = dtemp; 1037 up->irig += dtemp; 1040 dtemp = sintab[i] * data / (MS / 2. * DATCYC); 1042 qbuf[iptr] = dtemp; 1043 up->qrig += dtemp; 1103 dtemp = sintab[i] * syncx / (MS / 2.); 1105 cibuf[jptr] = dtemp; 1106 ciamp += dtemp; 1404 double dtemp; local 2402 double rank, dtemp; local 2546 double dtemp; local [all...] |
H A D | ntpsim.c | 555 double dtemp; local 565 dtemp = now + sys_residual; 566 if (dtemp < 0) { 568 dtemp = -dtemp; 570 adjtv.tv_sec = (long)dtemp; 571 dtemp -= adjtv.tv_sec; 572 ticks = (long)(dtemp / sys_tick + .5); 574 dtemp -= adjtv.tv_usec / 1e6; 575 sys_residual = dtemp; [all...] |
H A D | ntp_loopfilter.c | 466 double dtemp, etemp; /* double temps */ local 546 dtemp = -(peer->delay - sys_mindly) / 2; 548 dtemp = (peer->delay - sys_mindly) / 2; 549 fp_offset += dtemp; 551 sys_hufflen, sys_mindly, dtemp)); 665 dtemp = SQUARE(max(fabs(fp_offset - last_offset), 667 clock_jitter = SQRT(etemp + (dtemp - etemp) / 724 dtemp = 4 * CLOCK_PLL * ULOGTOD(sys_poll); 726 fp_offset * etemp / (dtemp * dtemp); [all...] |
H A D | refclock_chu.c | 911 double dtemp; local 943 dtemp = sp->shift[i]; 944 if (dtemp > slice) 947 dist += dtemp - es_min; 949 dist += es_max - dtemp; 951 if (dtemp > slice) 952 dist += dtemp - es_min; 954 dist += es_max - dtemp; 995 double dtemp; local 1011 LFPTOD(&tstmp, dtemp); 1333 double dtemp; local [all...] |
H A D | refclock_irig.c | 598 double dtemp; local 656 dtemp = up->zxing * up->decim / BAUD; 657 up->yxing = dtemp; 659 up->phase += dtemp / up->tc; 660 up->freq += dtemp / (4. * up->tc * up->tc); 751 double dtemp; local 787 dtemp = up->decim * (up->exing / SECOND) + up->fdelay; 788 DTOLFP(dtemp, <emp);
|
H A D | ntp_timer.c | 607 double dtemp = now; local 608 if (dtemp >= leap_smear.intv_start && dtemp <= leap_smear.intv_end) { 609 double leap_smear_time = dtemp - leap_smear.intv_start;
|
H A D | refclock_true.c | 439 double dtemp; local 441 dtemp = pp->fudgetime1; 443 pp->fudgetime2 = dtemp;
|
H A D | ntp_refclock.c | 1440 double dtemp, dcorr, trash; local 1498 dtemp = ap->ts.tv_nsec / 1e9; 1499 dcorr = modf((pp->fudgetime1 - dtemp), &trash); 1519 pp->lastrec.l_uf = (u_int32)(dtemp * FRAC);
|
H A D | ntp_proto.c | 2812 double dtemp; local 2853 dtemp = peer->rootdisp 2861 if (dtemp > sys_mindisp) 2862 sys_rootdisp = dtemp; 3259 double dtemp, etemp; local 3290 dtemp = clock_phi * (current_time - peer->update); 3294 peer->filter_disp[j] += dtemp; 4018 double dtemp; local 4038 dtemp = (peer->delay + peer->rootdelay) / 2 4050 if (dtemp < sys_mindis [all...] |
H A D | refclock_parse.c | 2237 double dtemp; local 2251 dtemp = (double) pts.tv_nsec / 1e9; 2252 if (dtemp < 0.) { 2253 dtemp += 1; 2256 if (dtemp > 1.) { 2257 dtemp -= 1; 2260 parse->parseio.parse_dtime.parse_ptime.fp.l_uf = (uint32_t)(dtemp * FRAC);
|
H A D | ntp_request.c | 423 double dtemp; local 631 LFPTOD(&ftmp, dtemp); 632 if (fabs(dtemp) > INFO_TS_MAXSKEW) { 637 dtemp, INFO_TS_MAXSKEW));
|
H A D | refclock_ripencc.c | 714 double dtemp; local 751 dtemp = ts.tv_nsec * FRAC / 1e9; 752 tstmp.l_uf = (u_int32)dtemp;
|
H A D | ntp_control.c | 1916 double dtemp; local 2255 LFPTOD(&sys_authdelay, dtemp); 2256 ctl_putdbl(sys_var[varid].text, dtemp * 1e3);
|
/freebsd-11-stable/contrib/ntp/ntpdate/ |
H A D | ntpdate.c | 2087 double dtemp; local 2110 LFPTOD(ts, dtemp); 2111 n = step_systime(dtemp); 2128 LFPTOD(ts, dtemp); 2129 return step_systime(dtemp); 2137 LFPTOD(ts, dtemp); 2138 return step_systime(dtemp);
|
/freebsd-11-stable/contrib/one-true-awk/ |
H A D | tran.c | 368 double dtemp; local 379 if (modf(vp->fval, &dtemp) == 0) /* it's integral */
|
/freebsd-11-stable/sys/dev/usb/ |
H A D | usb_generic.c | 2120 struct usb_device_descriptor *dtemp; local 2175 dtemp = usbd_get_device_descriptor(f->udev); 2176 if (!dtemp) { 2180 *u.ddesc = *dtemp;
|