Back to index

glibc  2.9
gmp-mparam.h
Go to the documentation of this file.
00001 /* gmp-mparam.h -- Compiler/machine parameter header file.
00002 Copyright (C) 1991,93,94,2002 Free Software Foundation, Inc.
00003 
00004 This file is part of the GNU MP Library.
00005 
00006 The GNU MP Library is free software; you can redistribute it and/or modify
00007 it under the terms of the GNU Lesser General Public License as published by
00008 the Free Software Foundation; either version 2.1 of the License, or (at your
00009 option) any later version.
00010 
00011 The GNU MP Library is distributed in the hope that it will be useful, but
00012 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00013 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
00014 License for more details.
00015 
00016 You should have received a copy of the GNU Lesser General Public License
00017 along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
00018 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
00019 MA 02111-1307, USA. */
00020 
00021 #include <bits/wordsize.h>
00022 
00023 #define BITS_PER_MP_LIMB    __WORDSIZE
00024 #define BYTES_PER_MP_LIMB   (__WORDSIZE / 8)
00025 #define BITS_PER_LONGINT    __WORDSIZE
00026 #define BITS_PER_INT        32
00027 #define BITS_PER_SHORTINT   16
00028 #define BITS_PER_CHAR              8