GCC Middle and Back End API Reference
glimits.h File Reference

Go to the source code of this file.

Macros

#define CHAR_BIT   __CHAR_BIT__
#define MB_LEN_MAX   1
#define SCHAR_MIN   (-SCHAR_MAX - 1)
#define SCHAR_MAX   __SCHAR_MAX__
#define UCHAR_MAX   (SCHAR_MAX * 2U + 1U)
#define CHAR_MIN   SCHAR_MIN
#define CHAR_MAX   SCHAR_MAX
#define SHRT_MIN   (-SHRT_MAX - 1)
#define SHRT_MAX   __SHRT_MAX__
#define USHRT_MAX   (SHRT_MAX * 2U + 1U)
#define INT_MIN   (-INT_MAX - 1)
#define INT_MAX   __INT_MAX__
#define UINT_MAX   (INT_MAX * 2U + 1U)
#define LONG_MIN   (-LONG_MAX - 1L)
#define LONG_MAX   __LONG_MAX__
#define ULONG_MAX   (LONG_MAX * 2UL + 1UL)
#define LONG_LONG_MIN   (-LONG_LONG_MAX - 1LL)
#define LONG_LONG_MAX   __LONG_LONG_MAX__
#define ULONG_LONG_MAX   (LONG_LONG_MAX * 2ULL + 1ULL)

Macro Definition Documentation

#define CHAR_BIT   __CHAR_BIT__

Copyright (C) 1991-2013 Free Software Foundation, Inc.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Under Section 7 of GPL version 3, you are granted additional permissions described in the GCC Runtime Library Exception, version 3.1, as published by the Free Software Foundation.

You should have received a copy of the GNU General Public License and a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see http://www.gnu.org/licenses/. Number of bits in a `char'.

#define CHAR_MAX   SCHAR_MAX
#define CHAR_MIN   SCHAR_MIN

Minimum and maximum values a `char' can hold.

#define INT_MIN   (-INT_MAX - 1)
#define LONG_LONG_MAX   __LONG_LONG_MAX__
#define LONG_LONG_MIN   (-LONG_LONG_MAX - 1LL)

Minimum and maximum values a `signed long long int' can hold.

#define LONG_MAX   __LONG_MAX__
#define LONG_MIN   (-LONG_MAX - 1L)

Minimum and maximum values a `signed long int' can hold. (Same as `int').

#define MB_LEN_MAX   1

Maximum length of a multibyte character.

#define SCHAR_MAX   __SCHAR_MAX__
#define SCHAR_MIN   (-SCHAR_MAX - 1)

Minimum and maximum values a `signed char' can hold.

#define SHRT_MAX   __SHRT_MAX__
#define SHRT_MIN   (-SHRT_MAX - 1)

Minimum and maximum values a `signed short int' can hold.

#define UCHAR_MAX   (SCHAR_MAX * 2U + 1U)

Maximum value an `unsigned char' can hold. (Minimum is 0).

Referenced by oprintf().

#define UINT_MAX   (INT_MAX * 2U + 1U)

Maximum value an `unsigned int' can hold. (Minimum is 0).

#define ULONG_LONG_MAX   (LONG_LONG_MAX * 2ULL + 1ULL)

Maximum value an `unsigned long long int' can hold. (Minimum is 0).

#define ULONG_MAX   (LONG_MAX * 2UL + 1UL)

Maximum value an `unsigned long int' can hold. (Minimum is 0).

#define USHRT_MAX   (SHRT_MAX * 2U + 1U)

Maximum value an `unsigned short int' can hold. (Minimum is 0).