2020-07-28 00:06:35 +01:00
|
|
|
#pragma once
|
|
|
|
|
2020-10-31 02:15:23 +00:00
|
|
|
typedef unsigned int uint;
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
typedef int8_t int8;
|
|
|
|
typedef int16_t int16;
|
|
|
|
typedef int32_t int32;
|
|
|
|
typedef int64_t int64;
|
|
|
|
typedef uint8_t uint8;
|
|
|
|
typedef uint16_t uint16;
|
|
|
|
typedef uint32_t uint32;
|
|
|
|
typedef uint64_t uint64;
|
|
|
|
|
|
|
|
typedef uint8 byte;
|
|
|
|
|
2020-08-04 02:39:09 +01:00
|
|
|
#include "util/Math.h"
|
|
|
|
|
2020-07-29 02:43:59 +01:00
|
|
|
#include "logging/Logger.h"
|
|
|
|
|
2020-07-28 00:06:35 +01:00
|
|
|
constexpr unsigned long long operator"" KB(unsigned long long l)
|
|
|
|
{
|
|
|
|
return l * 1024;
|
|
|
|
}
|
2020-07-29 01:46:31 +01:00
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#define abstract __declspec(novtable)
|
|
|
|
#else
|
|
|
|
#define abstract
|
2020-08-01 00:57:33 +01:00
|
|
|
#endif
|
2020-10-31 01:55:03 +00:00
|
|
|
|
|
|
|
#include <climits>
|
|
|
|
|
|
|
|
#define bitsizeof(type) (sizeof(type) * CHAR_BIT)
|