Skip to content

Commit

Permalink
Merge pull request #535 from libtom/fix-532
Browse files Browse the repository at this point in the history
Add "memory" to clobber list of `STORE/LOAD32`
  • Loading branch information
sjaeckel committed May 8, 2020
2 parents 1937f41 + 19c6e79 commit 14ed10c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/headers/tomcrypt_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ asm __volatile__ ( \
"bswapl %0 \n\t" \
"movl %0,(%1)\n\t" \
"bswapl %0 \n\t" \
::"r"(x), "r"(y));
::"r"(x), "r"(y): "memory");

#define LOAD32H(x, y) \
asm __volatile__ ( \
"movl (%1),%0\n\t" \
"bswapl %0\n\t" \
:"=r"(x): "r"(y));
:"=r"(x): "r"(y): "memory");

#else

Expand Down

0 comments on commit 14ed10c

Please sign in to comment.