util: add functions for converting new root delay/dispersion

This commit is contained in:
Miroslav Lichvar
2021-11-15 10:25:35 +01:00
parent a652ce7d0e
commit 2e126ed2b5
3 changed files with 43 additions and 0 deletions

3
util.h
View File

@@ -133,6 +133,9 @@ extern void UTI_GetNtp64Fuzz(NTP_int64 *ts, int precision);
extern double UTI_Ntp32ToDouble(NTP_int32 x);
extern NTP_int32 UTI_DoubleToNtp32(double x);
extern double UTI_Ntp32f28ToDouble(NTP_int32 x);
extern NTP_int32 UTI_DoubleToNtp32f28(double x);
/* Zero an NTP timestamp */
extern void UTI_ZeroNtp64(NTP_int64 *ts);