blob: dc232fa7e45cbd6ca09ed781ae4bd7798fd19229 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#pragma once
# if defined(__GNUC__)
#include <stdlib.h> // for posix_memalign
#define NALIGN(x) __attribute__((aligned(x)))
#elif defined(_MSC_VER)
#include <malloc.h> // for _aligned_malloc
#define NALIGN(x) __declspec (align(x))
#endif
|