Home
last modified time | relevance | path

Searched refs:wsecs (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/ntp/libntp/
H A Dntp_calgps.c84 if (datum->wsecs >= limit) { in _norm_gps_datum()
87 while ((datum->wsecs -= limit) >= limit); in _norm_gps_datum()
88 } else if (datum->wsecs < 0) { in _norm_gps_datum()
91 while ((datum->wsecs += limit) < 0); in _norm_gps_datum()
128 datum->wsecs += (datum->frac < offset.l_uf); in gpscal_add_offset()
133 datum->wsecs -= (int32_t)~offset.l_ui + 1; in gpscal_add_offset()
135 datum->wsecs += (int32_t)offset.l_ui; in gpscal_add_offset()
316 ts64 = ntpcal_weekjoin(date.weeks, date.wsecs); in gpsntp_from_gpscal_ex()
469 gps.wsecs = days * SECSPERDAY + ntpcal_date_to_daysec(&cal); in gpscal_from_calendar_ex()
512 retv.wsecs = secs; in gpscal_from_gpsweek()
[all …]
/freebsd/contrib/ntp/include/
H A Dntp_calgps.h39 int32_t wsecs; /* seconds since week start */ member
79 gpscal_from_weektime1(int32_t wsecs, l_fp fofs, l_fp pivot);
82 gpscal_from_weektime2(int32_t wsecs, l_fp fofs, TcGpsDatum *pivot);