From dcce14710388d25e1911663b0275f6c613255d36 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 10 Mar 2016 15:56:32 +0900 Subject: [PATCH] fix mul2x1 --- include/mcl/fp_generator.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mcl/fp_generator.hpp b/include/mcl/fp_generator.hpp index e37ef85..0c6ece4 100644 --- a/include/mcl/fp_generator.hpp +++ b/include/mcl/fp_generator.hpp @@ -2072,7 +2072,7 @@ private: mov(rdx, x); mulx(rax, t0, ptr [py]); // [rax:t0] = py[0] * x mulx(rdx, x, ptr [py + 8]); // [t:t1] = py[1] * x - adc(x, rax); + add(x, rax); adc(rdx, 0); } else { mov(rax, ptr [py]);