Fix ASM keyword in hash.c
See: https://gcc.gnu.org/onlinedocs/gcc/Alternate-Keywords.html#Alternate-Keywords
This commit is contained in:
父節點
ddfa1ecb0d
當前提交
6527b58b74
@ -385,7 +385,7 @@ PH7_PRIVATE sxi32 SyMD5Compute(const void *pIn, sxu32 nLen, unsigned char zDiges
|
|||||||
* instructions.
|
* instructions.
|
||||||
*/
|
*/
|
||||||
#define SHA_ROT(op, x, k) \
|
#define SHA_ROT(op, x, k) \
|
||||||
({ unsigned int y; asm(op " %1,%0" : "=r" (y) : "I" (k), "0" (x)); y; })
|
({ unsigned int y; __asm__(op " %1,%0" : "=r" (y) : "I" (k), "0" (x)); y; })
|
||||||
#define rol(x,k) SHA_ROT("roll", x, k)
|
#define rol(x,k) SHA_ROT("roll", x, k)
|
||||||
#define ror(x,k) SHA_ROT("rorl", x, k)
|
#define ror(x,k) SHA_ROT("rorl", x, k)
|
||||||
|
|
||||||
|
載入中…
新增問題並參考
Block a user