rc5_locl.h: make inline assembler clang-friendly.
authorAndy Polyakov <appro@openssl.org>
Mon, 2 Aug 2010 21:51:07 +0000 (21:51 +0000)
committerAndy Polyakov <appro@openssl.org>
Mon, 2 Aug 2010 21:51:07 +0000 (21:51 +0000)
crypto/rc5/rc5_locl.h

index 282dd38..d337f73 100644 (file)
 #  define ROTATE_l32(a,n)      ({ register unsigned int ret;   \
                                        asm ("roll %%cl,%0"     \
                                                : "=r"(ret)     \
-                                               : "c"(n),"0"(a) \
+                                               : "c"(n),"0"((unsigned int)(a)) \
                                                : "cc");        \
                                        ret;                    \
                                })
 #  define ROTATE_r32(a,n)      ({ register unsigned int ret;   \
                                        asm ("rorl %%cl,%0"     \
                                                : "=r"(ret)     \
-                                               : "c"(n),"0"(a) \
+                                               : "c"(n),"0"((unsigned int)(a)) \
                                                : "cc");        \
                                        ret;                    \
                                })