Move ALIGN32 and ALIGN64 into common.h, and fix for clang-cl.exe
authorTom Cosgrove <tom.cosgrove@arm.com>
Fri, 1 Sep 2023 07:41:11 +0000 (08:41 +0100)
committerPauli <pauli@openssl.org>
Sun, 3 Sep 2023 22:44:21 +0000 (08:44 +1000)
commit12d08fe3a50f28fe80ff591e05d7f8253148afb4
tree67a4ba063a353d5ea8bc4d903d36566c631bbaff
parent5318c012885a5382eadbf95aa9c1d35664bca819
Move ALIGN32 and ALIGN64 into common.h, and fix for clang-cl.exe

clang-cl.exe defines __clang__ and _MSC_VER but not __GNUC__, so a clang-
specific guard is needed to get the correct ALIGNxx versions.

Fixes #21914

Change-Id: Icdc047b182ad1ba61c7b1b06a1e951eda1a0c33d

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21921)
crypto/bn/rsaz_exp.c
crypto/ec/ecp_nistz256.c
crypto/ec/ecp_sm2p256.c
include/internal/common.h