Skip to content

Commit

Permalink
Fix typo edx->ebx (#2324)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbutch authored Oct 9, 2020
1 parent 19f8857 commit 0df8de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pq-crypto/sike_r2/P434.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ int s2n_check_sike434_r2_asm_compatibility() {
s2n_cpuid(&eax, &ebx, &ecx, &edx, leaf);

/* Check for bmi2 support */
if (!(edx & (1U << 8))) {
if (!(ebx & (1U << 8))) {
return 0;
}

#if defined(_ADX_)
/* Check for adx support */
if (!(edx & (1U << 19))) {
if (!(ebx & (1U << 19))) {
return 0;
}
#endif /* _ADX_ */
Expand Down

0 comments on commit 0df8de3

Please sign in to comment.