21 #define nullptr ((void*)0)
26 #define SAYORI_INLINE static inline __attribute__((always_inline))
32 #define ALIGN(value, align) ((value) + ((-(value)) & ((align) - 1)))
33 #define IS_ALIGNED(value, align) ((value) % (align) == 0)
36 typedef unsigned long long uint64_t;
37 typedef long long int64_t;
39 typedef unsigned int uint32_t;
42 typedef unsigned short uint16_t;
43 typedef short int16_t;
45 typedef unsigned char uint8_t;
49 typedef uint64_t size_t;
50 typedef int64_t ssize_t;
52 typedef uint32_t size_t;
53 typedef int32_t ssize_t;
61 uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax;
62 uint32_t int_num, err_code;
63 uint32_t eip, cs, eflags, useresp, ss;
70 #define ON_NULLPTR(ptr, code) \
73 qemu_err("You have an illusion that you see an object but you can't touch it because it's not exist..."); \
78 #define ON_NULLPTR(ptr, code)
struct registers __attribute__((packed))
Структура данных пакета от мыши