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 282dd388223446e15c6e1e7e4d6dc672583c0bbc..d337f73fad9b357b0ae85b0da75a8ae7525c94fc 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;                    \
                                })