Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:ragge:20110131075735

Diff

Diff from 1.3 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/pcc/pcc-libs/libpcc/include/libpcc_limits.h

Annotated File View

ragge
1.1
1 #ifndef _LIBPCC_LIMITS_H_
2 #define _LIBPCC_LIMITS_H_
3
4 #if defined __GNUC__
5 #  if !defined _GCC_LIMITS_H_
6 /* this is needed to make limits.h from the glibc headers happy, which uses
7    #include_next <limits.h>
8    when __GNUC__ is defined and  _GCC_LIMITS_H_ is not defined 
9 */
10 #  define __GCC_LIMITS_H_
11 #  endif
12
13 #endif
14
ragge
1.2
15 /*
16  * The following limits are sometimes considered
17  * a property of the compiler. Not complete.
18  */
19
ragge
1.3
20 #undef CHAR_BIT
21 #ifdef __pdp10__
22 #define CHAR_BIT 9
23 #else
ragge
1.2
24 #define CHAR_BIT 8
25 #endif
26
ragge
1.3
27 /*
28  * Logic below assumes 2-complement.
29  */
30
31 #undef SCHAR_MAX
32 #define SCHAR_MAX __SCHAR_MAX__
33 #undef SCHAR_MIN
34 #define SCHAR_MIN (-SCHAR_MAX-1)
35 #undef UCHAR_MAX
36 #define UCHAR_MAX (2*SCHAR_MAX+1)
37
38 #undef SHRT_MAX
39 #define SHRT_MAX __SHRT_MAX__
40 #undef SHRT_MIN
41 #define SHRT_MIN (-SHRT_MAX-1)
42 #undef USHRT_MAX
43 #define USHRT_MAX (2*SHRT_MAX+1)
44
45 #undef INT_MAX
46 #define INT_MAX __INT_MAX__
47 #undef INT_MIN
48 #define INT_MIN (-INT_MAX-1)
49 #undef UINT_MAX
50 #define UINT_MAX (2U*INT_MAX+1U)
51
52 #undef LONG_MAX
53 #define LONG_MAX __LONG_MAX__
54 #undef LONG_MIN
55 #define LONG_MIN (-LONG_MAX-1L)
56 #undef ULONG_MAX
57 #define ULONG_MAX (2UL*LONG_MAX+1UL)
ragge
1.2
58
ragge
1.3
59 #undef LLONG_MAX
60 #define LLONG_MAX __LONG_LONG_MAX__
61 #undef LLONG_MIN
62 #define LLONG_MIN (-LLONG_MAX-1LL)
63 #undef ULLONG_MAX
64 #define ULLONG_MAX (2ULL*LLONG_MAX+1ULL)
ragge
1.2
65
ragge
1.1
66 #endif
67
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-30 19:56 +0200