Fix missing clobbered registers (Issue 124)
parent
ab320ad59b
commit
4c1d629284
12
rdrand.cpp
12
rdrand.cpp
|
|
@ -253,7 +253,11 @@ static int GCC_RRA_GenerateBlock(byte *output, size_t size, unsigned int safety)
|
||||||
"setc %1; "
|
"setc %1; "
|
||||||
: "=a" (val), "=qm" (rc)
|
: "=a" (val), "=qm" (rc)
|
||||||
:
|
:
|
||||||
: "cc"
|
#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32
|
||||||
|
: "rax", "cc"
|
||||||
|
#else
|
||||||
|
: "eax", "cc"
|
||||||
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
if (rc)
|
if (rc)
|
||||||
|
|
@ -434,7 +438,11 @@ static int GCC_RSA_GenerateBlock(byte *output, size_t size, unsigned int safety)
|
||||||
"setc %1; "
|
"setc %1; "
|
||||||
: "=a" (val), "=qm" (rc)
|
: "=a" (val), "=qm" (rc)
|
||||||
:
|
:
|
||||||
: "cc"
|
#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32
|
||||||
|
: "rax", "cc"
|
||||||
|
#else
|
||||||
|
: "eax", "cc"
|
||||||
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
if (rc)
|
if (rc)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue