align.h 239 B

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