source: trunk/third/gmp/mp_clz_tab.c @ 18191

Revision 18191, 1.4 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18190, which included commits to RCS files with non-trunk default branches.
RevLine 
[15293]1/* __clz_tab -- support for longlong.h
2
[18190]3   THE CONTENTS OF THIS FILE ARE FOR INTERNAL USE AND MAY CHANGE
4   INCOMPATIBLY OR DISAPPEAR IN A FUTURE GNU MP RELEASE.
[15293]5
[18190]6Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001 Free Software Foundation,
7Inc.
8
[15293]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 the GNU Lesser General Public License as published by
13the Free Software Foundation; either version 2.1 of the License, or (at your
14option) any later version.
15
16The GNU MP Library is distributed in the hope that it will be useful, but
17WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
19License for more details.
20
21You should have received a copy of the GNU Lesser General Public License
22along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
23the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
24MA 02111-1307, USA. */
25
26#include "gmp.h"
27#include "gmp-impl.h"
[18190]28#include "longlong.h"
[15293]29
[18190]30#ifdef COUNT_LEADING_ZEROS_NEED_CLZ_TAB
[15293]31const
[18190]32unsigned char __clz_tab[128] =
[15293]33{
[18190]34  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,
[15293]35  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,
36  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,
[18190]37  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
[15293]38};
[18190]39#endif
Note: See TracBrowser for help on using the repository browser.