]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
authorJim Meyering <jim@meyering.net>
Tue, 2 Dec 2003 08:24:31 +0000 (08:24 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 2 Dec 2003 08:24:31 +0000 (08:24 +0000)
days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html

lib/md5.h

index 3a417c0d5b0c73cf3a03a6a8f2ca30c2001c5b67..2b336073d6ed9be47e4c3ca48a5a6b0da26ce818 100644 (file)
--- a/lib/md5.h
+++ b/lib/md5.h
@@ -124,19 +124,6 @@ extern int md5_stream (FILE *stream, void *resblock);
    digest.  */
 extern void *md5_buffer (const char *buffer, size_t len, void *resblock);
 
-/* The following is from gnupg-1.0.2's cipher/bithelp.h.  */
-/* Rotate a 32 bit integer by n bytes */
-#if defined __GNUC__ && defined __i386__
-static inline md5_uint32
-rol(md5_uint32 x, int n)
-{
-  __asm__("roll %%cl,%0"
-         :"=r" (x)
-         :"0" (x),"c" (n));
-  return x;
-}
-#else
-# define rol(x,n) ( ((x) << (n)) | ((x) >> (32-(n))) )
-#endif
+#define rol(x,n) ( ((x) << (n)) | ((x) >> (32-(n))) )
 
 #endif