Import gmp-4.3.1
[dragonfly.git] / contrib / gmp / mp_clz_tab.c
1 /* __clz_tab -- support for longlong.h
2
3    THE CONTENTS OF THIS FILE ARE FOR INTERNAL USE AND MAY CHANGE
4    INCOMPATIBLY OR DISAPPEAR IN A FUTURE GNU MP RELEASE.
5
6 Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001 Free Software Foundation,
7 Inc.
8
9 This file is part of the GNU MP Library.
10
11 The GNU MP Library is free software; you can redistribute it and/or modify
12 it under the terms of the GNU Lesser General Public License as published by
13 the Free Software Foundation; either version 3 of the License, or (at your
14 option) any later version.
15
16 The GNU MP Library is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
19 License for more details.
20
21 You should have received a copy of the GNU Lesser General Public License
22 along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.  */
23
24 #include "gmp.h"
25 #include "gmp-impl.h"
26 #include "longlong.h"
27
28 #ifdef COUNT_LEADING_ZEROS_NEED_CLZ_TAB
29 const
30 unsigned char __clz_tab[128] =
31 {
32   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,
33   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,
34   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,
35   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
36 };
37 #endif