Lines Matching refs:int64_t
31 static int64_t time_days_from_civil(int64_t y, in time_days_from_civil()
37 int64_t era = ((y >= 0) ? y : (y - 399)) / 400; in time_days_from_civil()
45 int64_t timeutil_timegm64(const struct tm *tm) in timeutil_timegm64()
47 int64_t y = TIME_UTILS_BASE_YEAR + (int64_t)tm->tm_year; in timeutil_timegm64()
50 int64_t ndays = time_days_from_civil(y, m, d); in timeutil_timegm64()
51 int64_t time = tm->tm_sec; in timeutil_timegm64()
61 int64_t time = timeutil_timegm64(tm); in timeutil_timegm()
66 && ((time < (int64_t)INT32_MIN) in timeutil_timegm()
67 || (time > (int64_t)INT32_MAX))) { in timeutil_timegm()
137 int64_t local_delta = local - tsp->base.local; in timeutil_sync_ref_from_local()
144 int64_t ref_delta = local_delta * cfg->ref_Hz / cfg->local_Hz; in timeutil_sync_ref_from_local()
145 int64_t ref_abs = (int64_t)tsp->base.ref + ref_delta; in timeutil_sync_ref_from_local()
159 uint64_t ref, int64_t *localp) in timeutil_sync_local_from_ref()
165 int64_t ref_delta = (int64_t)(ref - tsp->base.ref); in timeutil_sync_local_from_ref()
169 int64_t local_delta = (ref_delta * cfg->local_Hz) / cfg->ref_Hz; in timeutil_sync_local_from_ref()
174 int64_t local_abs = (int64_t)tsp->base.local in timeutil_sync_local_from_ref()
175 + (int64_t)local_delta; in timeutil_sync_local_from_ref()
186 int64_t ppb64 = (int64_t)((1.0 - (double)skew) * 1E9); in timeutil_sync_skew_to_ppb()