util: add UTI_Log2ToDouble()

This commit is contained in:
Miroslav Lichvar
2015-05-28 12:34:08 +02:00
parent cde3a003ea
commit 3c217a9e37
3 changed files with 21 additions and 11 deletions

3
util.h
View File

@@ -107,6 +107,9 @@ extern void UTI_Int64ToTimeval(NTP_int64 *src, struct timeval *dest);
/* Check if time + offset is sane */
extern int UTI_IsTimeOffsetSane(struct timeval *tv, double offset);
/* Get 2 raised to power of a signed integer */
extern double UTI_Log2ToDouble(int l);
extern void UTI_TimevalNetworkToHost(Timeval *src, struct timeval *dest);
extern void UTI_TimevalHostToNetwork(struct timeval *src, Timeval *dest);