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/zand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/zand.c') diff --git a/src/zand.c b/src/zand.c index e07705a..65a8962 100644 --- a/src/zand.c +++ b/src/zand.c @@ -7,7 +7,7 @@ zand(z_t a, z_t b, z_t c) { size_t n; - if (zzero(b) || zzero(c)) { + if (EXPECT(zzero(b) || zzero(c), 0)) { SET_SIGNUM(a, 0); return; } @@ -24,7 +24,7 @@ found_highest: if (a == b) { while (n--) a->chars[n] &= c->chars[n]; - } else if (a == c) { + } else if (EXPECT(a == c, 0)) { while (n--) a->chars[n] &= b->chars[n]; } else { -- cgit v1.2.3-70-g09d2