xref: /haiku/src/system/libroot/posix/glibc/include/arch/generic/gmp-mparam.h (revision 8b150d6067ffabe5ec1e6c36e49d36c64d6b1e47)
1*8b150d60SIngo Weinhold /* gmp-mparam.h -- Compiler/machine parameter header file.
2*8b150d60SIngo Weinhold Copyright (C) 1991,93,94,2002 Free Software Foundation, Inc.
3*8b150d60SIngo Weinhold 
4*8b150d60SIngo Weinhold This file is part of the GNU MP Library.
5*8b150d60SIngo Weinhold 
6*8b150d60SIngo Weinhold The GNU MP Library is free software; you can redistribute it and/or modify
7*8b150d60SIngo Weinhold it under the terms of the GNU Lesser General Public License as published by
8*8b150d60SIngo Weinhold the Free Software Foundation; either version 2.1 of the License, or (at your
9*8b150d60SIngo Weinhold option) any later version.
10*8b150d60SIngo Weinhold 
11*8b150d60SIngo Weinhold The GNU MP Library is distributed in the hope that it will be useful, but
12*8b150d60SIngo Weinhold WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13*8b150d60SIngo Weinhold or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
14*8b150d60SIngo Weinhold License for more details.
15*8b150d60SIngo Weinhold 
16*8b150d60SIngo Weinhold You should have received a copy of the GNU Lesser General Public License
17*8b150d60SIngo Weinhold along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
18*8b150d60SIngo Weinhold the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
19*8b150d60SIngo Weinhold MA 02111-1307, USA. */
20*8b150d60SIngo Weinhold 
21*8b150d60SIngo Weinhold #include <bits/wordsize.h>
22*8b150d60SIngo Weinhold 
23*8b150d60SIngo Weinhold #define BITS_PER_MP_LIMB	__WORDSIZE
24*8b150d60SIngo Weinhold #define BYTES_PER_MP_LIMB	(__WORDSIZE / 8)
25*8b150d60SIngo Weinhold #define BITS_PER_LONGINT	__WORDSIZE
26*8b150d60SIngo Weinhold #define BITS_PER_INT		32
27*8b150d60SIngo Weinhold #define BITS_PER_SHORTINT	16
28*8b150d60SIngo Weinhold #define BITS_PER_CHAR		8
29