diff options
author | Name <jo@o-llvm.org> | 2016-01-26 02:07:16 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-01-26 02:07:16 -0500 |
commit | 4c1d62928411090f33ce141878949e156ceb7148 (patch) | |
tree | 43f5ff6d1dcc03c7424998da69a4ab808c05318d /rdrand.cpp | |
parent | ab320ad59b7412c542d9aca6cb5acfbab6b93365 (diff) | |
download | cryptopp-git-4c1d62928411090f33ce141878949e156ceb7148.tar.gz |
Fix missing clobbered registers (Issue 124)
Diffstat (limited to 'rdrand.cpp')
-rw-r--r-- | rdrand.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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)
|