diff options
author | Jim Meyering <jim@meyering.net> | 2003-12-02 08:24:31 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-12-02 08:24:31 +0000 |
commit | 72bcce966c026f7594d205f51aa55344c6796348 (patch) | |
tree | f04295be7ace427410fc170e2d83867dd61a1ca4 /lib | |
parent | 29715e46535eb6dab36cc11192d216baa6de6dd8 (diff) | |
download | coreutils-72bcce966c026f7594d205f51aa55344c6796348.tar.xz |
(rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/md5.h | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -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 |