From 1ab464d959b9ee3d3bb6758ac0d9d33fc6c77e46 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 31 Aug 2021 00:13:40 +0300 Subject: Improved linkind process, added padding generator --- include/apos/types.h | 37 ++----------------------------------- 1 file changed, 2 insertions(+), 35 deletions(-) (limited to 'include/apos/types.h') diff --git a/include/apos/types.h b/include/apos/types.h index f63857b..791c394 100644 --- a/include/apos/types.h +++ b/include/apos/types.h @@ -1,6 +1,8 @@ #ifndef APOS_TYPES_H #define APOS_TYPES_H +#include + typedef _Bool bool; #define true 1 #define false 0 @@ -10,7 +12,6 @@ typedef __WCHAR_TYPE__ wchar_t; typedef __WINT_TYPE__ wint_t; typedef __INTMAX_TYPE__ intmax_t; typedef __UINTMAX_TYPE__ uintmax_t; -typedef __SIG_ATOMIC_TYPE__ sig_atomic_t; typedef __INT8_TYPE__ int8_t; typedef __INT16_TYPE__ int16_t; typedef __INT32_TYPE__ int32_t; @@ -174,40 +175,6 @@ typedef intmax_t ssize_t; #define UINTPTR_WIDTH __INTPTR_WIDTH__ #define UINTMAX_WIDTH __INTMAX_WIDTH__ -#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -#define be16_to_cpu(x) __builtin_bswap16(x) -#define be32_to_cpu(x) __builtin_bswap32(x) -#define be64_to_cpu(x) __builtin_bswap64(x) - -#define cpu_to_be16(x) __builtin_bswap16(x) -#define cpu_to_be32(x) __builtin_bswap32(x) -#define cpu_to_be64(x) __builtin_bswap64(x) - -#define le16_to_cpu(x) (x) -#define le32_to_cpu(x) (x) -#define le64_to_cpu(x) (x) - -#define cpu_to_le16(x) (x) -#define cpu_to_le32(x) (x) -#define cpu_to_le64(x) (x) -#else -#define be16_to_cpu(x) (x) -#define be32_to_cpu(x) (x) -#define be64_to_cpu(x) (x) - -#define cpu_to_be16(x) (x) -#define cpu_to_be32(x) (x) -#define cpu_to_be64(x) (x) - -#define le16_to_cpu(x) __builtin_bswap16(x) -#define le32_to_cpu(x) __builtin_bswap32(x) -#define le64_to_cpu(x) __builtin_bswap64(x) - -#define cpu_to_le16(x) __builtin_bswap16(x) -#define cpu_to_le32(x) __builtin_bswap32(x) -#define cpu_to_le64(x) __builtin_bswap64(x) -#endif - #define NULL 0 #endif /* APOS_TYPES_H */ -- cgit v1.3