diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-03-13 05:30:01 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-03-13 05:30:01 +0100 |
| commit | f6cb7f3e7382a19a6d6d9990c243ffb8a666182d (patch) | |
| tree | dbf43f976f66a39fd87ffa38d59194b425efaa68 /src/zmodmul.c | |
| parent | Make zabs, zneg and zswap inline (diff) | |
| download | libzahl-f6cb7f3e7382a19a6d6d9990c243ffb8a666182d.tar.gz libzahl-f6cb7f3e7382a19a6d6d9990c243ffb8a666182d.tar.bz2 libzahl-f6cb7f3e7382a19a6d6d9990c243ffb8a666182d.tar.xz | |
Optimisations
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zmodmul.c')
| -rw-r--r-- | src/zmodmul.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
