Ooops! No ROTATE on some platforms after x86_64 performance patch...

This commit is contained in:
Andy Polyakov 2002-12-15 00:44:00 +00:00
parent a8239afc86
commit a2049ba394
2 changed files with 6 additions and 2 deletions

View file

@ -172,7 +172,8 @@
ret; \
})
# endif
#else
#endif
#ifndef ROTATE
#define ROTATE(a,n) (((a)>>(n))+((a)<<(32-(n))))
#endif

View file

@ -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