blob: fc7cb0bca071cb5b1d9748d4a2e9ab9ab8132612 [file] [log] [blame]
Austin Schuhbb1338c2024-06-15 19:31:16 -07001/* __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
6Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001 Free Software Foundation,
7Inc.
8
9This file is part of the GNU MP Library.
10
11The GNU MP Library is free software; you can redistribute it and/or modify
12it under the terms of either:
13
14 * the GNU Lesser General Public License as published by the Free
15 Software Foundation; either version 3 of the License, or (at your
16 option) any later version.
17
18or
19
20 * the GNU General Public License as published by the Free Software
21 Foundation; either version 2 of the License, or (at your option) any
22 later version.
23
24or both in parallel, as here.
25
26The GNU MP Library is distributed in the hope that it will be useful, but
27WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
28or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
29for more details.
30
31You should have received copies of the GNU General Public License and the
32GNU Lesser General Public License along with the GNU MP Library. If not,
33see https://www.gnu.org/licenses/. */
34
35#include "gmp-impl.h"
36#include "longlong.h"
37
38#ifdef COUNT_LEADING_ZEROS_NEED_CLZ_TAB
39const
40unsigned char __clz_tab[129] =
41{
42 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,
43 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,
44 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,
45 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,
46 9
47};
48#endif