From ace6bbd2e2ce98bafca5d406dd4aa670e15a9b6f Mon Sep 17 00:00:00 2001 From: Marco Bodrato Date: Tue, 20 Mar 2012 18:32:27 +0100 Subject: Use __clz_tab[128] in count_trailing_zeros (C variant). --- mp_clz_tab.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mp_clz_tab.c') diff --git a/mp_clz_tab.c b/mp_clz_tab.c index 1e0cee46b..ec56b4b26 100644 --- a/mp_clz_tab.c +++ b/mp_clz_tab.c @@ -27,11 +27,12 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ #ifdef COUNT_LEADING_ZEROS_NEED_CLZ_TAB const -unsigned char __clz_tab[128] = +unsigned char __clz_tab[129] = { 1,2,3,3,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6, 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, - 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8 + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, + 9 }; #endif -- cgit v1.2.1