Skip to content

Commit

Permalink
ff/mont32_t.cuh: fix a bug in the a*b+c*d helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Oct 30, 2024
1 parent 1c6347c commit 0a9331c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ff/mont32_t.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public:

asm("mul.lo.u32 %0, %2, %3; mul.hi.u32 %1, %2, %3;"
: "=r"(acc[0]), "=r"(acc[1]) : "r"(*a), "r"(*b));
asm("mad.lo.cc.u32 %0, %2, %3, %0; madc.hi.u32 %1, %2, %3, %1;"
asm("mad.lo.cc.u32 %0, %2, %3, %0; madc.hi.cc.u32 %1, %2, %3, %1;"
: "+r"(acc[0]), "+r"(acc[1]) : "r"(*c), "r"(*d));
if (N == 32)
acc[1] = final_sub(acc[1]);
Expand Down

0 comments on commit 0a9331c

Please sign in to comment.