forked from wolfSSL/wolfssl
Add support for aligned data with clang llvm
This commit is contained in:
@ -1141,7 +1141,8 @@ typedef struct w64wrapper {
|
|||||||
|
|
||||||
#ifdef WOLFSSL_USE_ALIGN
|
#ifdef WOLFSSL_USE_ALIGN
|
||||||
#if !defined(ALIGN16)
|
#if !defined(ALIGN16)
|
||||||
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
|
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__) || \
|
||||||
|
defined(__llvm__)
|
||||||
#define ALIGN16 __attribute__ ( (aligned (16)))
|
#define ALIGN16 __attribute__ ( (aligned (16)))
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
/* disable align warning, we want alignment ! */
|
/* disable align warning, we want alignment ! */
|
||||||
@ -1153,7 +1154,8 @@ typedef struct w64wrapper {
|
|||||||
#endif /* !ALIGN16 */
|
#endif /* !ALIGN16 */
|
||||||
|
|
||||||
#if !defined (ALIGN32)
|
#if !defined (ALIGN32)
|
||||||
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
|
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__) || \
|
||||||
|
defined(__llvm__)
|
||||||
#define ALIGN32 __attribute__ ( (aligned (32)))
|
#define ALIGN32 __attribute__ ( (aligned (32)))
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
/* disable align warning, we want alignment ! */
|
/* disable align warning, we want alignment ! */
|
||||||
@ -1165,7 +1167,8 @@ typedef struct w64wrapper {
|
|||||||
#endif /* !ALIGN32 */
|
#endif /* !ALIGN32 */
|
||||||
|
|
||||||
#if !defined(ALIGN64)
|
#if !defined(ALIGN64)
|
||||||
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
|
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__) || \
|
||||||
|
defined(__llvm__)
|
||||||
#define ALIGN64 __attribute__ ( (aligned (64)))
|
#define ALIGN64 __attribute__ ( (aligned (64)))
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
/* disable align warning, we want alignment ! */
|
/* disable align warning, we want alignment ! */
|
||||||
@ -1176,7 +1179,8 @@ typedef struct w64wrapper {
|
|||||||
#endif
|
#endif
|
||||||
#endif /* !ALIGN64 */
|
#endif /* !ALIGN64 */
|
||||||
|
|
||||||
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
|
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__) || \
|
||||||
|
defined(__llvm__)
|
||||||
#define ALIGN128 __attribute__ ( (aligned (128)))
|
#define ALIGN128 __attribute__ ( (aligned (128)))
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
/* disable align warning, we want alignment ! */
|
/* disable align warning, we want alignment ! */
|
||||||
@ -1186,7 +1190,8 @@ typedef struct w64wrapper {
|
|||||||
#define ALIGN128
|
#define ALIGN128
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
|
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__) || \
|
||||||
|
defined(__llvm__)
|
||||||
#define ALIGN256 __attribute__ ( (aligned (256)))
|
#define ALIGN256 __attribute__ ( (aligned (256)))
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
/* disable align warning, we want alignment ! */
|
/* disable align warning, we want alignment ! */
|
||||||
|
Reference in New Issue
Block a user