Merge remote-tracking branch 'Lynx/master'

This commit is contained in:
EnderIce2
2024-11-20 05:02:27 +02:00
28 changed files with 7101 additions and 1 deletions

17
Lynx/UEFI/types.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef LYNX_TYPES_H
#define LYNX_TYPES_H
typedef __UINT8_TYPE__ uint8_t;
typedef __UINT16_TYPE__ uint16_t;
typedef __UINT32_TYPE__ uint32_t;
typedef __UINT64_TYPE__ uint64_t;
typedef __SIZE_TYPE__ size_t;
typedef __UINTPTR_TYPE__ uintptr_t;
#ifndef NULL
#define NULL ((void *)0)
#endif
#define ALIGN_UP(x, align) ((__typeof__(x))(((uint64_t)(x) + ((align)-1)) & (~((align)-1))))
#define ALIGN_DOWN(x, align) ((__typeof__(x))((x) & (~((align)-1))))
#endif // !LYNX_TYPES_H