46 lines
1.4 KiB
C
46 lines
1.4 KiB
C
/* __clz_tab -- support for longlong.h
|
|
|
|
Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001 Free Software Foundation,
|
|
Inc.
|
|
|
|
This file is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
the Free Software Foundation; either version 2.1 of the License, or (at your
|
|
option) any later version.
|
|
|
|
This file is distributed in the hope that it will be useful, but
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
|
License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
along with this file; see the file COPYING.LIB. If not, write to
|
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
/*
|
|
N.B: This file has been adapted from code found in GMP 4.2.1.
|
|
*/
|
|
|
|
#include "longlong.h"
|
|
|
|
#ifdef NEED_CLZ_TAB
|
|
|
|
const
|
|
unsigned char __flint_clz_tab[128] =
|
|
{
|
|
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
|
|
};
|
|
|
|
#endif
|
|
|
|
int dummy_fn_to_prevent_ISOC_warning(void)
|
|
{
|
|
return 0;
|
|
}
|