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