diff options
Diffstat (limited to 'include/tai.h')
-rw-r--r-- | include/tai.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/tai.h b/include/tai.h index 37d24e0..99b1a40 100644 --- a/include/tai.h +++ b/include/tai.h @@ -32,7 +32,7 @@ typedef struct tai { } tai64; -#define tai_unix(t,u) ((void) ((t)->x = 4611686018427387914ULL + (uint64) (u))) +#define tai_unix(t, u) ((void)((t)->x = 4611686018427387914ULL + (uint64)(u))) /* tai_now puts the current time into t. More precisely: tai_now puts * into t its best guess as to the TAI64 label for the 1-second interval @@ -46,26 +46,26 @@ void tai_now(struct tai *); /* tai_approx returns a double-precision approximation to t. The result * of tai_approx is always nonnegative. */ -#define tai_approx(t) ((double) ((t)->x)) +#define tai_approx(t) ((double)((t)->x)) /* tai_add adds a to b modulo 2^64 and puts the result into t. The * inputs and output may overlap. */ -void tai_add(struct tai *,const struct tai *,const struct tai *); +void tai_add(struct tai *, const struct tai *, const struct tai *); /* tai_sub subtracts b from a modulo 2^64 and puts the result into t. * The inputs and output may overlap. */ -void tai_sub(struct tai *,const struct tai *,const struct tai *); +void tai_sub(struct tai *, const struct tai *, const struct tai *); /* tai_less returns 1 if a is less than b, 0 otherwise. */ -#define tai_less(t,u) ((t)->x < (u)->x) +#define tai_less(t, u) ((t)->x < (u)->x) #define TAI_PACK 8 /* tai_pack converts a TAI64 label from internal format in t to external * TAI64 format in buf. */ -void tai_pack(char *,const struct tai *); +void tai_pack(char *, const struct tai *); /* tai_unpack converts a TAI64 label from external TAI64 format in buf * to internal format in t. */ -void tai_unpack(const char *,struct tai *); +void tai_unpack(const char *, struct tai *); -void tai_uint(struct tai *,unsigned int); +void tai_uint(struct tai *, unsigned int); #ifdef __cplusplus } |