• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /** @file
2   This header <machine/limits.h> defines several macros that expand to various
3   CPU-architecture-specific limits and parameters of the standard integer types.
4 
5   The values given below are constant expressions suitable for use
6   in #if preprocessing directives.
7 
8   Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
9   This program and the accompanying materials are licensed and made available under
10   the terms and conditions of the BSD License that accompanies this distribution.
11   The full text of the license may be found at
12   http://opensource.org/licenses/bsd-license.
13 
14   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 **/
17 #include  <x86/limits.h>
18 
19 /** Number of bits making up a pointer. **/
20 #define __POINTER_BIT   32
21 
22 /** Number of bits comprising an object of type long int. **/
23 #define __LONG_BIT      32
24 
25 /** Minimum value for an object of type long int. **/
26 #define __LONG_MIN    (-2147483647L - 1L)   // -(2^31 - 1)
27 
28 /** Maximum value for an object of type long int. **/
29 #define __LONG_MAX     2147483647L          // 2^31 - 1
30 
31 /** Maximum value for an object of type unsigned long int. **/
32 #define __ULONG_MAX   0xffffffffUL          // 2^32 - 1
33 
34