aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGleb Popov <[email protected]>2025-08-28 13:19:50 +0200
committerAndrew Dinh <[email protected]>2026-07-31 18:48:53 +0200
commita8ede5fe32af08599f2738cb24d92464a2e9322e (patch)
tree468765e327563c91aeee9016a6d391142a4c0b65 /include
parentsha512.c: Tweaks for Elbrus2000 architecture (diff)
downloadopenssl-a8ede5fe32af08599f2738cb24d92464a2e9322e.tar.gz
openssl-a8ede5fe32af08599f2738cb24d92464a2e9322e.zip
md32_common.h: Add Elbrus2000-specific version of ROTATE
Reviewed-by: Andrew Dinh <[email protected]> Reviewed-by: Igor Ustinov <[email protected]> MergeDate: Fri Jul 31 16:49:30 2026 (Merged from https://github.com/openssl/openssl/pull/31269)
Diffstat (limited to 'include')
-rw-r--r--include/crypto/md32_common.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crypto/md32_common.inc b/include/crypto/md32_common.inc
index 3dea481c567..53c3bf7936b 100644
--- a/include/crypto/md32_common.inc
+++ b/include/crypto/md32_common.inc
@@ -120,6 +120,11 @@
: "=r"(ret) \
: "r"(x), "i"(32 - (n))); ret; })
#endif
+# elif defined(__e2k__)
+# undef ROTATE
+# define ROTATE(a,n) ( (__builtin_constant_p(n) && (n) > 16) \
+ ? __builtin_e2k_scrs((a), 32 - (n)) \
+ : __builtin_e2k_scls((a), (n)) )
#endif
#endif
#endif