summaryrefslogtreecommitdiffstats
path: root/crypto/sha/sha256.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/sha/sha256.c')
-rw-r--r--crypto/sha/sha256.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/sha/sha256.c b/crypto/sha/sha256.c
index 89beaf1479..649d25d6c6 100644
--- a/crypto/sha/sha256.c
+++ b/crypto/sha/sha256.c
@@ -132,7 +132,7 @@ static const SHA_LONG K256[64] = {
# ifndef PEDANTIC
# if defined(__GNUC__) && __GNUC__>=2 && \
!defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM)
-# if __riscv_zknh
+# if defined(__riscv_zknh)
# define Sigma0(x) ({ MD32_REG_T ret; \
asm ("sha256sum0 %0, %1" \
: "=r"(ret) \
@@ -150,7 +150,7 @@ static const SHA_LONG K256[64] = {
: "=r"(ret) \
: "r"(x)); ret; })
# endif
-# if __riscv_zbt || __riscv_zpn
+# if defined(__riscv_zbt) || defined(__riscv_zpn)
# define Ch(x,y,z) ({ MD32_REG_T ret; \
asm (".insn r4 0x33, 1, 0x3, %0, %2, %1, %3"\
: "=r"(ret) \