This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdlib> | |
#include <stddef.h> | |
#include <iostream> | |
#define CONCAT2(x, y) x##y | |
#define CONCAT(x, y) CONCAT2(x, y) | |
#if defined(_WIN64) || defined(__x86_64__) | |
#define NEST1(macro, begin) \ | |
macro(CONCAT(begin, 0)) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <type_traits> | |
#include <typeinfo> | |
#include <cstring> | |
#if __x86_64__ | |
using uinthalf_t = uint32_t; | |
using inthalf_t = int32_t; | |
#else | |
using uinthalf_t = uint16_t; | |
using inthalf_t = int16_t; |