Fix missing clobbered registers (Issue 124)

pull/136/head
Name 2016-01-26 02:07:16 -05:00 committed by Jeffrey Walton
parent ab320ad59b
commit 4c1d629284
1 changed files with 10 additions and 2 deletions

View File

@ -253,7 +253,11 @@ static int GCC_RRA_GenerateBlock(byte *output, size_t size, unsigned int safety)
"setc %1; "
: "=a" (val), "=qm" (rc)
:
: "cc"
#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32
: "rax", "cc"
#else
: "eax", "cc"
#endif
);
if (rc)
@ -434,7 +438,11 @@ static int GCC_RSA_GenerateBlock(byte *output, size_t size, unsigned int safety)
"setc %1; "
: "=a" (val), "=qm" (rc)
:
: "cc"
#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32
: "rax", "cc"
#else
: "eax", "cc"
#endif
);
if (rc)