From f6cb7f3e7382a19a6d6d9990c243ffb8a666182d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 13 Mar 2016 05:30:01 +0100 Subject: Optimisations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/zmodmul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zmodmul.c') diff --git a/src/zmodmul.c b/src/zmodmul.c index 6b04909..bb0aa03 100644 --- a/src/zmodmul.c +++ b/src/zmodmul.c @@ -6,7 +6,7 @@ void zmodmul(z_t a, z_t b, z_t c, z_t d) { /* TODO Montgomery modular multiplication */ - if (a == d) { + if (EXPECT(a == d, 0)) { zset(libzahl_tmp_modmul, d); zmul(a, b, c); zmod(a, a, libzahl_tmp_modmul); -- cgit v1.2.3-70-g09d2