2020-12-22 09:42:57 +01:00
|
|
|
#include "stdafx.h" // No BOM and only basic ASCII in this file, or a neko will die
|
2020-11-29 13:03:50 +01:00
|
|
|
|
2020-12-11 19:06:19 +01:00
|
|
|
static_assert(std::endian::native == std::endian::little || std::endian::native == std::endian::big);
|
|
|
|
|
|
2020-12-12 07:40:07 +01:00
|
|
|
CHECK_SIZE_ALIGN(u128, 16, 16);
|
|
|
|
|
CHECK_SIZE_ALIGN(s128, 16, 16);
|
|
|
|
|
|
2020-12-18 08:01:26 +01:00
|
|
|
CHECK_SIZE_ALIGN(f16, 2, 2);
|
|
|
|
|
|
2020-11-29 13:03:50 +01:00
|
|
|
static_assert(be_t<u16>(1) + be_t<u32>(2) + be_t<u64>(3) == 6);
|
|
|
|
|
static_assert(le_t<u16>(1) + le_t<u32>(2) + le_t<u64>(3) == 6);
|
2020-12-15 16:06:51 +01:00
|
|
|
|
|
|
|
|
static_assert(sizeof(nullptr) == sizeof(void*));
|