Skip to content

Instantly share code, notes, and snippets.

kterhorst

  • Germany
View GitHub Profile
@kterhorst
kterhorst / tagging.h
Created Mar 16, 2020
C/C++ const(expr) tag functions
View tagging.h
#ifdef __cplusplus
#include <cstddef>
#include <cstdint>
#else
#include <stddef.h>
#include <stdint.h>
#endif
/// Fastest, C, non-constexpr way to create a 64bit tag.
#define MAKE_TAG8(a, b) ((uint64_t)(a) | ((uint64_t)(b)) << 32ULL)
You can’t perform that action at this time.