]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/generic/gmp-mparam.h
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / generic / gmp-mparam.h
index 14bcaece8305eb7069efd93d52812124554469da..baf1560400b7b43a7e9298e6fc0e65fa31ad12dc 100644 (file)
@@ -1,6 +1,5 @@
 /* gmp-mparam.h -- Compiler/machine parameter header file.
-
-Copyright (C) 1991, 1993, 1994 Free Software Foundation, Inc.
+Copyright (C) 1991-2016 Free Software Foundation, Inc.
 
 This file is part of the GNU MP Library.
 
@@ -15,13 +14,14 @@ 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 the GNU MP Library; see the file COPYING.LIB.  If not, write to
-the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA. */
+along with the GNU MP Library; see the file COPYING.LIB.  If not, see
+<http://www.gnu.org/licenses/>.  */
+
+#include <bits/wordsize.h>
 
-#define BITS_PER_MP_LIMB 32
-#define BYTES_PER_MP_LIMB 4
-#define BITS_PER_LONGINT 32
-#define BITS_PER_INT 32
-#define BITS_PER_SHORTINT 16
-#define BITS_PER_CHAR 8
+#define BITS_PER_MP_LIMB       __WORDSIZE
+#define BYTES_PER_MP_LIMB      (__WORDSIZE / 8)
+#define BITS_PER_LONGINT       __WORDSIZE
+#define BITS_PER_INT           32
+#define BITS_PER_SHORTINT      16
+#define BITS_PER_CHAR          8