Searched refs:frac (Results 1 – 4 of 4) sorted by relevance
25 be32_t frac; member30 be16_t frac; member
159 … return be16toh(ts->sec) * USEC_PER_SEC + (be16toh(ts->frac) * USEC_PER_SEC) / (usec_t) 0x10000ULL; in ntp_ts_short_to_usec()163 …return (be32toh(ts->sec) - OFFSET_1900_1970) * USEC_PER_SEC + (be32toh(ts->frac) * USEC_PER_SEC) /… in ntp_ts_to_usec()
69 return be16toh(ts->sec) + (be16toh(ts->frac) / 65536.0); in ntp_ts_short_to_d()73 return be32toh(ts->sec) + ((double)be32toh(ts->frac) / UINT_MAX); in ntp_ts_to_d()137 ntpmsg.trans_time.frac = htobe32(m->trans_time.tv_nsec); in manager_send_request()465 be32toh(ntpmsg.origin_time.frac) != (unsigned long) m->trans_time.tv_nsec) { in manager_receive_response()
194 double frac = 0; in parse_size() local222 frac = l2; in parse_size()224 frac /= 10; in parse_size()237 if (l + (frac > 0) > ULLONG_MAX / table[i].factor) in parse_size()240 tmp = l * table[i].factor + (unsigned long long) (frac * table[i].factor); in parse_size()