]> granicus.if.org Git - openssl/commitdiff
Ooops! No ROTATE on some platforms after x86_64 performance patch...
authorAndy Polyakov <appro@openssl.org>
Sun, 15 Dec 2002 00:47:47 +0000 (00:47 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 15 Dec 2002 00:47:47 +0000 (00:47 +0000)
crypto/des/des_locl.h
crypto/rc5/rc5_locl.h

index 5eb7cff0cadabfbe7b87555fc9437dc939d125a6..bc7b508dc19ed06d4d1deeb97d0cfb674caeb7c6 100644 (file)
                           ret;                         \
                        })
 # endif
-#else
+#endif
+#ifndef ROTATE
 #define        ROTATE(a,n)     (((a)>>(n))+((a)<<(32-(n))))
 #endif
 
index c700dfb1a5ec7c41a33cfebae4b76148e91f2435..658190940c91d7c8a6df05aea832890c310d0ed3 100644 (file)
                                        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