diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-09 14:41:53 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-09 14:41:53 +0200 |
commit | 5fadc0cbb8577c61d66bd6f19ceaf0507c11e23b (patch) | |
tree | 684758441f5b431d0008253243034b6a4a29417c /include/tai.h | |
parent | 249866e3d1e11dc72eaa1305f4bb479ded92ef38 (diff) |
initial clang-format
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 } |