rc5_locl.h: make inline assembler clang-friendly.
This commit is contained in:
parent
f71c6aceeb
commit
dbe3611bbd
@ -154,14 +154,14 @@
|
|||||||
# define ROTATE_l32(a,n) ({ register unsigned int ret; \
|
# define ROTATE_l32(a,n) ({ register unsigned int ret; \
|
||||||
asm ("roll %%cl,%0" \
|
asm ("roll %%cl,%0" \
|
||||||
: "=r"(ret) \
|
: "=r"(ret) \
|
||||||
: "c"(n),"0"(a) \
|
: "c"(n),"0"((unsigned int)(a)) \
|
||||||
: "cc"); \
|
: "cc"); \
|
||||||
ret; \
|
ret; \
|
||||||
})
|
})
|
||||||
# define ROTATE_r32(a,n) ({ register unsigned int ret; \
|
# define ROTATE_r32(a,n) ({ register unsigned int ret; \
|
||||||
asm ("rorl %%cl,%0" \
|
asm ("rorl %%cl,%0" \
|
||||||
: "=r"(ret) \
|
: "=r"(ret) \
|
||||||
: "c"(n),"0"(a) \
|
: "c"(n),"0"((unsigned int)(a)) \
|
||||||
: "cc"); \
|
: "cc"); \
|
||||||
ret; \
|
ret; \
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user