Types.h 347 B

123456789101112131415161718192021
  1. #ifndef TYPES_H
  2. #define TYPES_H
  3. #include <cstdint>
  4. #include <cstddef>
  5. typedef unsigned int uint;
  6. typedef uint8_t u8;
  7. typedef uint16_t u16;
  8. typedef uint32_t u32;
  9. typedef uint64_t u64;
  10. typedef int8_t s8;
  11. typedef int16_t s16;
  12. typedef int32_t s32;
  13. typedef int64_t s64;
  14. static_assert(sizeof(u64) == sizeof(size_t), "size_t is not 64 bit");
  15. #endif