curve448/field.h: relax alignment, as it doesn't work universally.
authorAndy Polyakov <appro@openssl.org>
Wed, 21 Mar 2018 10:19:58 +0000 (11:19 +0100)
committerAndy Polyakov <appro@openssl.org>
Thu, 22 Mar 2018 10:50:44 +0000 (11:50 +0100)
Some platforms, cough-DJGPP, fail to compile claiming that requested
alignment is greater than maximum possible. Supposedly original
alignment was result of an attempt to utilize AVX2...

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5708)

crypto/ec/curve448/field.h

index c3bad40e3b7498347fb1b448618eef2060fab1dc..d96d4c023d446f291d99f0d81d08ae5fa3c2cf54 100644 (file)
@@ -25,7 +25,7 @@
 # if defined(__GNUC__) || defined(__clang__)
 #  define INLINE_UNUSED __inline__ __attribute__((__unused__,__always_inline__))
 #  define RESTRICT __restrict__
-#  define ALIGNED __attribute__((__aligned__(32)))
+#  define ALIGNED __attribute__((__aligned__(16)))
 # else
 #  define INLINE_UNUSED ossl_inline
 #  define RESTRICT