mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-09 15:33:58 +08:00
Create align.h
This commit is contained in:
18
crypto/SHA-3/COMMEN/align.h
Normal file
18
crypto/SHA-3/COMMEN/align.h
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
#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
|
||||||
Reference in New Issue
Block a user