1 parent a888026 commit 625633fCopy full SHA for 625633f
1 file changed
src/lib/entropy/rdseed/rdseed.cpp
@@ -41,7 +41,7 @@ BOTAN_FUNC_ISA("rdseed,sse2") bool read_rdseed(secure_vector<uint32_t>& seed) {
41
int cf = 0; // NOLINT(*-const-correctness) clang-tidy doesn't understand inline asm
42
43
#if defined(BOTAN_USE_GCC_INLINE_ASM)
44
- asm("rdseed %0; adcl $0,%1" : "=r"(r), "=r"(cf) : "0"(r), "1"(cf) : "cc"); // NOLINT(*-no-assembler)
+ asm volatile("rdseed %0; adcl $0,%1" : "=r"(r), "=r"(cf) : "0"(r), "1"(cf) : "cc"); // NOLINT(*-no-assembler)
45
#else
46
cf = _rdseed32_step(&r);
47
#endif
0 commit comments