Searched refs:frac (Results 1 - 2 of 2) sorted by relevance

/systemd/src/basic/
H A Dparse-util.c169 double frac = 0; local
197 frac = l2;
199 frac /= 10;
212 if (l + (frac > 0) > ULLONG_MAX / table[i].factor)
215 tmp = l * table[i].factor + (unsigned long long) (frac * table[i].factor);
/systemd/src/timesync/
H A Dtimesyncd-manager.c103 be32_t frac; member in struct:ntp_ts
108 be16_t frac; member in struct:ntp_ts_short
131 return be16toh(ts->sec) + (be16toh(ts->frac) / 65536.0);
135 return be32toh(ts->sec) + ((double)be32toh(ts->frac) / UINT_MAX);
192 ntpmsg.trans_time.frac = htobe32(m->trans_time.tv_nsec);
559 be32toh(ntpmsg.origin_time.frac) != m->trans_time.tv_nsec) {

Completed in 925 milliseconds