summaryrefslogtreecommitdiffstats
path: root/crypto/rc5
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2002-12-15 00:47:47 +0000
committerAndy Polyakov <appro@openssl.org>2002-12-15 00:47:47 +0000
commit6be4688bdc521e1a4fcf8a6ff4f479ec6f47c6b4 (patch)
tree129144fb395ae34a3aaa02e86193380e6a80a4ac /crypto/rc5
parent717c5cdcc79daf0c16c62828619da247de9236a7 (diff)
Ooops! No ROTATE on some platforms after x86_64 performance patch...
Diffstat (limited to 'crypto/rc5')
-rw-r--r--crypto/rc5/rc5_locl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/rc5/rc5_locl.h b/crypto/rc5/rc5_locl.h
index c700dfb1a5..658190940c 100644
--- a/crypto/rc5/rc5_locl.h
+++ b/crypto/rc5/rc5_locl.h
@@ -166,8 +166,11 @@
ret; \
})
# endif
-#else
+#endif
+#ifndef ROTATE_l32
#define ROTATE_l32(a,n) (((a)<<(n&0x1f))|(((a)&0xffffffff)>>(32-(n&0x1f))))
+#endif
+#ifndef ROTATE_r32
#define ROTATE_r32(a,n) (((a)<<(32-(n&0x1f)))|(((a)&0xffffffff)>>(n&0x1f)))
#endif