diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2012-03-20 18:32:27 +0100 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2012-03-20 18:32:27 +0100 |
commit | ace6bbd2e2ce98bafca5d406dd4aa670e15a9b6f (patch) | |
tree | 0d1ed6b1e31096645638809c345fe9bd0d1216fd /mp_clz_tab.c | |
parent | a3f7a7b4a81b1713f91ce63e62eaecd766807350 (diff) | |
download | gmp-ace6bbd2e2ce98bafca5d406dd4aa670e15a9b6f.tar.gz |
Use __clz_tab[128] in count_trailing_zeros (C variant).
Diffstat (limited to 'mp_clz_tab.c')
-rw-r--r-- | mp_clz_tab.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 |