提交 70831126 编写于 作者: A Andy Polyakov

rll does not seem to be available on legacy s390.

上级 cdd1d7a6
...@@ -64,8 +64,7 @@ ...@@ -64,8 +64,7 @@
* HASH_CBLOCK * HASH_CBLOCK
* size of a unit chunk HASH_BLOCK operates on. * size of a unit chunk HASH_BLOCK operates on.
* HASH_LONG * HASH_LONG
* has to be at lest 32 bit wide, if it's wider, then * has to be at lest 32 bit wide.
* HASH_LONG_LOG2 *has to* be defined along
* HASH_CTX * HASH_CTX
* context structure that at least contains following * context structure that at least contains following
* members: * members:
...@@ -98,7 +97,6 @@ ...@@ -98,7 +97,6 @@
* #define DATA_ORDER_IS_LITTLE_ENDIAN * #define DATA_ORDER_IS_LITTLE_ENDIAN
* *
* #define HASH_LONG MD5_LONG * #define HASH_LONG MD5_LONG
* #define HASH_LONG_LOG2 MD5_LONG_LOG2
* #define HASH_CTX MD5_CTX * #define HASH_CTX MD5_CTX
* #define HASH_CBLOCK MD5_CBLOCK * #define HASH_CBLOCK MD5_CBLOCK
* #define HASH_UPDATE MD5_Update * #define HASH_UPDATE MD5_Update
...@@ -178,11 +176,11 @@ ...@@ -178,11 +176,11 @@
: "r"(a), "I"(n)); \ : "r"(a), "I"(n)); \
ret; \ ret; \
}) })
# elif defined(__s390__) || defined(__s390x__) # elif defined(__s390x__)
# define ROTATE(a,n) ({ register unsigned int ret; \ # define ROTATE(a,n) ({ register unsigned int ret; \
asm ("rll %0,%1,%2" \ asm ("rll %0,%1,%2" \
: "=r"(ret) \ : "=r"(ret) \
: "r"(a), "I"(n):"cc"); \ : "r"(a), "I"(n)); \
ret; \ ret; \
}) })
# endif # endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册