Skip to content

Commit

Permalink
Fix asm div instruction in BigintTest
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaibrodschi authored and tbarbette committed Oct 1, 2024
1 parent 7e70300 commit b654a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elements/test/biginttest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static bool test_div64(uint64_t a[2], uint64_t b, ErrorHandler *errh) {
rem = a[1] % b;
// Lower 64 bits of the quotient
#ifdef __x86_64__
__asm__("div %4" : "=d"(rem), "=a"(q[0]) : "d"(rem), "a"(a[0]), "rm"(b));
__asm__("divq %4" : "=d"(rem), "=a"(q[0]) : "d"(rem), "a"(a[0]), "rm"(b));
#else
if (rem) {
unsigned ashift = 0;
Expand Down

0 comments on commit b654a50

Please sign in to comment.