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/zlsb.c | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/zlsb.c (limited to 'src/zlsb.c') diff --git a/src/zlsb.c b/src/zlsb.c deleted file mode 100644 index 17012f8..0000000 --- a/src/zlsb.c +++ /dev/null @@ -1,20 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include "internals.h" - - -size_t -zlsb(z_t a) -{ - size_t i = 0; - zahl_char_t x; - if (zzero(a)) - return SIZE_MAX; - for (;; i++) { - x = a->chars[i]; - if (x) { - x = ~x; - for (i *= BITS_PER_CHAR; x & 1; x >>= 1, i++); - return i; - } - } -} -- cgit v1.2.3-70-g09d2