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 5eb7cff..bc7b508 100644 (file)
                           ret;                         \
                        })
 # endif
-#else
+#endif
+#ifndef ROTATE
 #define        ROTATE(a,n)     (((a)>>(n))+((a)<<(32-(n))))
 #endif
 
index c700dfb..6581909 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