Annotation of OpenXM_contrib/gmp/mp_clz_tab.c, Revision 1.1.1.3
1.1 maekawa 1: /* __clz_tab -- support for longlong.h
2:
1.1.1.3 ! ohara 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.
1.1 maekawa 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
1.1.1.2 maekawa 12: it under the terms of the GNU Lesser General Public License as published by
13: the Free Software Foundation; either version 2.1 of the License, or (at your
1.1 maekawa 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
1.1.1.2 maekawa 18: or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1.1 maekawa 19: License for more details.
20:
1.1.1.2 maekawa 21: You should have received a copy of the GNU Lesser General Public License
1.1 maekawa 22: along with the GNU MP Library; see the file COPYING.LIB. If not, write to
23: the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
24: MA 02111-1307, USA. */
25:
26: #include "gmp.h"
27: #include "gmp-impl.h"
1.1.1.3 ! ohara 28: #include "longlong.h"
1.1 maekawa 29:
1.1.1.3 ! ohara 30: #ifdef COUNT_LEADING_ZEROS_NEED_CLZ_TAB
1.1 maekawa 31: const
1.1.1.3 ! ohara 32: unsigned char __clz_tab[128] =
1.1 maekawa 33: {
1.1.1.3 ! ohara 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,
1.1 maekawa 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,
1.1.1.3 ! ohara 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
1.1 maekawa 38: };
1.1.1.3 ! ohara 39: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>