We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bc034f commit 748994cCopy full SHA for 748994c
2 files changed
src/headers/tomcrypt_cfg.h
@@ -288,6 +288,12 @@ typedef unsigned long ltc_mp_digit;
288
#define LTC_HAVE_ROTATE_BUILTIN
289
#endif
290
291
+#if defined(__GNUC__)
292
+ #define LTC_ALIGN(n) __attribute__((aligned(n)))
293
+#else
294
+ #define LTC_ALIGN(n)
295
+#endif
296
+
297
#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 405)
298
# define LTC_DEPRECATED(s) __attribute__((deprecated("replaced by " #s)))
299
# define PRIVATE_LTC_DEPRECATED_PRAGMA(s) _Pragma(#s)
src/headers/tomcrypt_mac.h
@@ -482,7 +482,7 @@ typedef struct {
482
#ifdef LTC_GCM_TABLES
483
unsigned char PC[16][256][16] /* 16 tables of 8x128 */
484
#ifdef LTC_GCM_TABLES_SSE2
485
-__attribute__ ((aligned (16)))
+LTC_ALIGN(16)
486
487
;
488
0 commit comments