Files
GmSSL/crypto/sha3/COMMEN/align.h
2017-11-05 21:00:36 +08:00

19 lines
298 B
C

#ifndef _align_h_
#define _align_h_
#ifdef ALIGN
#undef ALIGN
#endif
#if defined(__GNUC__)
#define ALIGN(x) __attribute__ ((aligned(x)))
#elif defined(_MSC_VER)
#define ALIGN(x) __declspec(align(x))
#elif defined(__ARMCC_VERSION)
#define ALIGN(x) __align(x)
#else
#define ALIGN(x)
#endif
#endif