From 35db791d785c7bf37b33f4f60a585a0f1137d236 Mon Sep 17 00:00:00 2001 From: nekineki Date: Tue, 6 Dec 2022 07:05:59 +0100 Subject: day6 c --- 2022/util.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 2022/util.h (limited to '2022/util.h') diff --git a/2022/util.h b/2022/util.h new file mode 100644 index 0000000..4bc6c2e --- /dev/null +++ b/2022/util.h @@ -0,0 +1,26 @@ +#ifndef UTIL_H +#define UTIL_H + +#include + +#define NULL ((void *)0) +#define LEN(arr) (sizeof arr / sizeof arr[0]) +#define BIT(b) (1UL << b) + +typedef int8_t s8; +typedef uint8_t u8; + +typedef int16_t s16; +typedef uint16_t u16; + +typedef int32_t s32; +typedef uint32_t u32; + +typedef int64_t s64; +typedef uint64_t u64; + +typedef float f32; +typedef double f64; + +#endif /* UTIL_H */ + -- cgit v1.2.3