OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [ginclude/] [stdint-gcc.h] - Diff between revs 286 and 516

Only display areas with differences | Details | Blame | View Log

Rev 286 Rev 516
/* Copyright (C) 2008, 2009 Free Software Foundation, Inc.
/* Copyright (C) 2008, 2009 Free Software Foundation, Inc.
 
 
This file is part of GCC.
This file is part of GCC.
 
 
GCC is free software; you can redistribute it and/or modify
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
the Free Software Foundation; either version 3, or (at your option)
any later version.
any later version.
 
 
GCC is distributed in the hope that it will be useful,
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
GNU General Public License for more details.
 
 
Under Section 7 of GPL version 3, you are granted additional
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
3.1, as published by the Free Software Foundation.
 
 
You should have received a copy of the GNU General Public License and
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;
a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
<http://www.gnu.org/licenses/>.  */
<http://www.gnu.org/licenses/>.  */
 
 
/*
/*
 * ISO C Standard:  7.18  Integer types  <stdint.h>
 * ISO C Standard:  7.18  Integer types  <stdint.h>
 */
 */
 
 
#ifndef _GCC_STDINT_H
#ifndef _GCC_STDINT_H
#define _GCC_STDINT_H
#define _GCC_STDINT_H
 
 
/* 7.8.1.1 Exact-width integer types */
/* 7.8.1.1 Exact-width integer types */
 
 
#ifdef __INT8_TYPE__
#ifdef __INT8_TYPE__
typedef __INT8_TYPE__ int8_t;
typedef __INT8_TYPE__ int8_t;
#endif
#endif
#ifdef __INT16_TYPE__
#ifdef __INT16_TYPE__
typedef __INT16_TYPE__ int16_t;
typedef __INT16_TYPE__ int16_t;
#endif
#endif
#ifdef __INT32_TYPE__
#ifdef __INT32_TYPE__
typedef __INT32_TYPE__ int32_t;
typedef __INT32_TYPE__ int32_t;
#endif
#endif
#ifdef __INT64_TYPE__
#ifdef __INT64_TYPE__
typedef __INT64_TYPE__ int64_t;
typedef __INT64_TYPE__ int64_t;
#endif
#endif
#ifdef __UINT8_TYPE__
#ifdef __UINT8_TYPE__
typedef __UINT8_TYPE__ uint8_t;
typedef __UINT8_TYPE__ uint8_t;
#endif
#endif
#ifdef __UINT16_TYPE__
#ifdef __UINT16_TYPE__
typedef __UINT16_TYPE__ uint16_t;
typedef __UINT16_TYPE__ uint16_t;
#endif
#endif
#ifdef __UINT32_TYPE__
#ifdef __UINT32_TYPE__
typedef __UINT32_TYPE__ uint32_t;
typedef __UINT32_TYPE__ uint32_t;
#endif
#endif
#ifdef __UINT64_TYPE__
#ifdef __UINT64_TYPE__
typedef __UINT64_TYPE__ uint64_t;
typedef __UINT64_TYPE__ uint64_t;
#endif
#endif
 
 
/* 7.8.1.2 Minimum-width integer types */
/* 7.8.1.2 Minimum-width integer types */
 
 
typedef __INT_LEAST8_TYPE__ int_least8_t;
typedef __INT_LEAST8_TYPE__ int_least8_t;
typedef __INT_LEAST16_TYPE__ int_least16_t;
typedef __INT_LEAST16_TYPE__ int_least16_t;
typedef __INT_LEAST32_TYPE__ int_least32_t;
typedef __INT_LEAST32_TYPE__ int_least32_t;
typedef __INT_LEAST64_TYPE__ int_least64_t;
typedef __INT_LEAST64_TYPE__ int_least64_t;
typedef __UINT_LEAST8_TYPE__ uint_least8_t;
typedef __UINT_LEAST8_TYPE__ uint_least8_t;
typedef __UINT_LEAST16_TYPE__ uint_least16_t;
typedef __UINT_LEAST16_TYPE__ uint_least16_t;
typedef __UINT_LEAST32_TYPE__ uint_least32_t;
typedef __UINT_LEAST32_TYPE__ uint_least32_t;
typedef __UINT_LEAST64_TYPE__ uint_least64_t;
typedef __UINT_LEAST64_TYPE__ uint_least64_t;
 
 
/* 7.8.1.3 Fastest minimum-width integer types */
/* 7.8.1.3 Fastest minimum-width integer types */
 
 
typedef __INT_FAST8_TYPE__ int_fast8_t;
typedef __INT_FAST8_TYPE__ int_fast8_t;
typedef __INT_FAST16_TYPE__ int_fast16_t;
typedef __INT_FAST16_TYPE__ int_fast16_t;
typedef __INT_FAST32_TYPE__ int_fast32_t;
typedef __INT_FAST32_TYPE__ int_fast32_t;
typedef __INT_FAST64_TYPE__ int_fast64_t;
typedef __INT_FAST64_TYPE__ int_fast64_t;
typedef __UINT_FAST8_TYPE__ uint_fast8_t;
typedef __UINT_FAST8_TYPE__ uint_fast8_t;
typedef __UINT_FAST16_TYPE__ uint_fast16_t;
typedef __UINT_FAST16_TYPE__ uint_fast16_t;
typedef __UINT_FAST32_TYPE__ uint_fast32_t;
typedef __UINT_FAST32_TYPE__ uint_fast32_t;
typedef __UINT_FAST64_TYPE__ uint_fast64_t;
typedef __UINT_FAST64_TYPE__ uint_fast64_t;
 
 
/* 7.8.1.4 Integer types capable of holding object pointers */
/* 7.8.1.4 Integer types capable of holding object pointers */
 
 
#ifdef __INTPTR_TYPE__
#ifdef __INTPTR_TYPE__
typedef __INTPTR_TYPE__ intptr_t;
typedef __INTPTR_TYPE__ intptr_t;
#endif
#endif
#ifdef __UINTPTR_TYPE__
#ifdef __UINTPTR_TYPE__
typedef __UINTPTR_TYPE__ uintptr_t;
typedef __UINTPTR_TYPE__ uintptr_t;
#endif
#endif
 
 
/* 7.8.1.5 Greatest-width integer types */
/* 7.8.1.5 Greatest-width integer types */
 
 
typedef __INTMAX_TYPE__ intmax_t;
typedef __INTMAX_TYPE__ intmax_t;
typedef __UINTMAX_TYPE__ uintmax_t;
typedef __UINTMAX_TYPE__ uintmax_t;
 
 
#if !defined __cplusplus || defined __STDC_LIMIT_MACROS
#if !defined __cplusplus || defined __STDC_LIMIT_MACROS
 
 
/* 7.18.2 Limits of specified-width integer types */
/* 7.18.2 Limits of specified-width integer types */
 
 
#ifdef __INT8_MAX__
#ifdef __INT8_MAX__
# undef INT8_MAX
# undef INT8_MAX
# define INT8_MAX __INT8_MAX__
# define INT8_MAX __INT8_MAX__
# undef INT8_MIN
# undef INT8_MIN
# define INT8_MIN (-INT8_MAX - 1)
# define INT8_MIN (-INT8_MAX - 1)
#endif
#endif
#ifdef __UINT8_MAX__
#ifdef __UINT8_MAX__
# undef UINT8_MAX
# undef UINT8_MAX
# define UINT8_MAX __UINT8_MAX__
# define UINT8_MAX __UINT8_MAX__
#endif
#endif
#ifdef __INT16_MAX__
#ifdef __INT16_MAX__
# undef INT16_MAX
# undef INT16_MAX
# define INT16_MAX __INT16_MAX__
# define INT16_MAX __INT16_MAX__
# undef INT16_MIN
# undef INT16_MIN
# define INT16_MIN (-INT16_MAX - 1)
# define INT16_MIN (-INT16_MAX - 1)
#endif
#endif
#ifdef __UINT16_MAX__
#ifdef __UINT16_MAX__
# undef UINT16_MAX
# undef UINT16_MAX
# define UINT16_MAX __UINT16_MAX__
# define UINT16_MAX __UINT16_MAX__
#endif
#endif
#ifdef __INT32_MAX__
#ifdef __INT32_MAX__
# undef INT32_MAX
# undef INT32_MAX
# define INT32_MAX __INT32_MAX__
# define INT32_MAX __INT32_MAX__
# undef INT32_MIN
# undef INT32_MIN
# define INT32_MIN (-INT32_MAX - 1)
# define INT32_MIN (-INT32_MAX - 1)
#endif
#endif
#ifdef __UINT32_MAX__
#ifdef __UINT32_MAX__
# undef UINT32_MAX
# undef UINT32_MAX
# define UINT32_MAX __UINT32_MAX__
# define UINT32_MAX __UINT32_MAX__
#endif
#endif
#ifdef __INT64_MAX__
#ifdef __INT64_MAX__
# undef INT64_MAX
# undef INT64_MAX
# define INT64_MAX __INT64_MAX__
# define INT64_MAX __INT64_MAX__
# undef INT64_MIN
# undef INT64_MIN
# define INT64_MIN (-INT64_MAX - 1)
# define INT64_MIN (-INT64_MAX - 1)
#endif
#endif
#ifdef __UINT64_MAX__
#ifdef __UINT64_MAX__
# undef UINT64_MAX
# undef UINT64_MAX
# define UINT64_MAX __UINT64_MAX__
# define UINT64_MAX __UINT64_MAX__
#endif
#endif
 
 
#undef INT_LEAST8_MAX
#undef INT_LEAST8_MAX
#define INT_LEAST8_MAX __INT_LEAST8_MAX__
#define INT_LEAST8_MAX __INT_LEAST8_MAX__
#undef INT_LEAST8_MIN
#undef INT_LEAST8_MIN
#define INT_LEAST8_MIN (-INT_LEAST8_MAX - 1)
#define INT_LEAST8_MIN (-INT_LEAST8_MAX - 1)
#undef UINT_LEAST8_MAX
#undef UINT_LEAST8_MAX
#define UINT_LEAST8_MAX __UINT_LEAST8_MAX__
#define UINT_LEAST8_MAX __UINT_LEAST8_MAX__
#undef INT_LEAST16_MAX
#undef INT_LEAST16_MAX
#define INT_LEAST16_MAX __INT_LEAST16_MAX__
#define INT_LEAST16_MAX __INT_LEAST16_MAX__
#undef INT_LEAST16_MIN
#undef INT_LEAST16_MIN
#define INT_LEAST16_MIN (-INT_LEAST16_MAX - 1)
#define INT_LEAST16_MIN (-INT_LEAST16_MAX - 1)
#undef UINT_LEAST16_MAX
#undef UINT_LEAST16_MAX
#define UINT_LEAST16_MAX __UINT_LEAST16_MAX__
#define UINT_LEAST16_MAX __UINT_LEAST16_MAX__
#undef INT_LEAST32_MAX
#undef INT_LEAST32_MAX
#define INT_LEAST32_MAX __INT_LEAST32_MAX__
#define INT_LEAST32_MAX __INT_LEAST32_MAX__
#undef INT_LEAST32_MIN
#undef INT_LEAST32_MIN
#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)
#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)
#undef UINT_LEAST32_MAX
#undef UINT_LEAST32_MAX
#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__
#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__
#undef INT_LEAST64_MAX
#undef INT_LEAST64_MAX
#define INT_LEAST64_MAX __INT_LEAST64_MAX__
#define INT_LEAST64_MAX __INT_LEAST64_MAX__
#undef INT_LEAST64_MIN
#undef INT_LEAST64_MIN
#define INT_LEAST64_MIN (-INT_LEAST64_MAX - 1)
#define INT_LEAST64_MIN (-INT_LEAST64_MAX - 1)
#undef UINT_LEAST64_MAX
#undef UINT_LEAST64_MAX
#define UINT_LEAST64_MAX __UINT_LEAST64_MAX__
#define UINT_LEAST64_MAX __UINT_LEAST64_MAX__
 
 
#undef INT_FAST8_MAX
#undef INT_FAST8_MAX
#define INT_FAST8_MAX __INT_FAST8_MAX__
#define INT_FAST8_MAX __INT_FAST8_MAX__
#undef INT_FAST8_MIN
#undef INT_FAST8_MIN
#define INT_FAST8_MIN (-INT_FAST8_MAX - 1)
#define INT_FAST8_MIN (-INT_FAST8_MAX - 1)
#undef UINT_FAST8_MAX
#undef UINT_FAST8_MAX
#define UINT_FAST8_MAX __UINT_FAST8_MAX__
#define UINT_FAST8_MAX __UINT_FAST8_MAX__
#undef INT_FAST16_MAX
#undef INT_FAST16_MAX
#define INT_FAST16_MAX __INT_FAST16_MAX__
#define INT_FAST16_MAX __INT_FAST16_MAX__
#undef INT_FAST16_MIN
#undef INT_FAST16_MIN
#define INT_FAST16_MIN (-INT_FAST16_MAX - 1)
#define INT_FAST16_MIN (-INT_FAST16_MAX - 1)
#undef UINT_FAST16_MAX
#undef UINT_FAST16_MAX
#define UINT_FAST16_MAX __UINT_FAST16_MAX__
#define UINT_FAST16_MAX __UINT_FAST16_MAX__
#undef INT_FAST32_MAX
#undef INT_FAST32_MAX
#define INT_FAST32_MAX __INT_FAST32_MAX__
#define INT_FAST32_MAX __INT_FAST32_MAX__
#undef INT_FAST32_MIN
#undef INT_FAST32_MIN
#define INT_FAST32_MIN (-INT_FAST32_MAX - 1)
#define INT_FAST32_MIN (-INT_FAST32_MAX - 1)
#undef UINT_FAST32_MAX
#undef UINT_FAST32_MAX
#define UINT_FAST32_MAX __UINT_FAST32_MAX__
#define UINT_FAST32_MAX __UINT_FAST32_MAX__
#undef INT_FAST64_MAX
#undef INT_FAST64_MAX
#define INT_FAST64_MAX __INT_FAST64_MAX__
#define INT_FAST64_MAX __INT_FAST64_MAX__
#undef INT_FAST64_MIN
#undef INT_FAST64_MIN
#define INT_FAST64_MIN (-INT_FAST64_MAX - 1)
#define INT_FAST64_MIN (-INT_FAST64_MAX - 1)
#undef UINT_FAST64_MAX
#undef UINT_FAST64_MAX
#define UINT_FAST64_MAX __UINT_FAST64_MAX__
#define UINT_FAST64_MAX __UINT_FAST64_MAX__
 
 
#ifdef __INTPTR_MAX__
#ifdef __INTPTR_MAX__
# undef INTPTR_MAX
# undef INTPTR_MAX
# define INTPTR_MAX __INTPTR_MAX__
# define INTPTR_MAX __INTPTR_MAX__
# undef INTPTR_MIN
# undef INTPTR_MIN
# define INTPTR_MIN (-INTPTR_MAX - 1)
# define INTPTR_MIN (-INTPTR_MAX - 1)
#endif
#endif
#ifdef __UINTPTR_MAX__
#ifdef __UINTPTR_MAX__
# undef UINTPTR_MAX
# undef UINTPTR_MAX
# define UINTPTR_MAX __UINTPTR_MAX__
# define UINTPTR_MAX __UINTPTR_MAX__
#endif
#endif
 
 
#undef INTMAX_MAX
#undef INTMAX_MAX
#define INTMAX_MAX __INTMAX_MAX__
#define INTMAX_MAX __INTMAX_MAX__
#undef INTMAX_MIN
#undef INTMAX_MIN
#define INTMAX_MIN (-INTMAX_MAX - 1)
#define INTMAX_MIN (-INTMAX_MAX - 1)
#undef UINTMAX_MAX
#undef UINTMAX_MAX
#define UINTMAX_MAX __UINTMAX_MAX__
#define UINTMAX_MAX __UINTMAX_MAX__
 
 
/* 7.18.3 Limits of other integer types */
/* 7.18.3 Limits of other integer types */
 
 
#undef PTRDIFF_MAX
#undef PTRDIFF_MAX
#define PTRDIFF_MAX __PTRDIFF_MAX__
#define PTRDIFF_MAX __PTRDIFF_MAX__
#undef PTRDIFF_MIN
#undef PTRDIFF_MIN
#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)
#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)
 
 
#undef SIG_ATOMIC_MAX
#undef SIG_ATOMIC_MAX
#define SIG_ATOMIC_MAX __SIG_ATOMIC_MAX__
#define SIG_ATOMIC_MAX __SIG_ATOMIC_MAX__
#undef SIG_ATOMIC_MIN
#undef SIG_ATOMIC_MIN
#define SIG_ATOMIC_MIN __SIG_ATOMIC_MIN__
#define SIG_ATOMIC_MIN __SIG_ATOMIC_MIN__
 
 
#undef SIZE_MAX
#undef SIZE_MAX
#define SIZE_MAX __SIZE_MAX__
#define SIZE_MAX __SIZE_MAX__
 
 
#undef WCHAR_MAX
#undef WCHAR_MAX
#define WCHAR_MAX __WCHAR_MAX__
#define WCHAR_MAX __WCHAR_MAX__
#undef WCHAR_MIN
#undef WCHAR_MIN
#define WCHAR_MIN __WCHAR_MIN__
#define WCHAR_MIN __WCHAR_MIN__
 
 
#undef WINT_MAX
#undef WINT_MAX
#define WINT_MAX __WINT_MAX__
#define WINT_MAX __WINT_MAX__
#undef WINT_MIN
#undef WINT_MIN
#define WINT_MIN __WINT_MIN__
#define WINT_MIN __WINT_MIN__
 
 
#endif /* !defined __cplusplus || defined __STDC_LIMIT_MACROS */
#endif /* !defined __cplusplus || defined __STDC_LIMIT_MACROS */
 
 
#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
 
 
#undef INT8_C
#undef INT8_C
#define INT8_C(c) __INT8_C(c)
#define INT8_C(c) __INT8_C(c)
#undef INT16_C
#undef INT16_C
#define INT16_C(c) __INT16_C(c)
#define INT16_C(c) __INT16_C(c)
#undef INT32_C
#undef INT32_C
#define INT32_C(c) __INT32_C(c)
#define INT32_C(c) __INT32_C(c)
#undef INT64_C
#undef INT64_C
#define INT64_C(c) __INT64_C(c)
#define INT64_C(c) __INT64_C(c)
#undef UINT8_C
#undef UINT8_C
#define UINT8_C(c) __UINT8_C(c)
#define UINT8_C(c) __UINT8_C(c)
#undef UINT16_C
#undef UINT16_C
#define UINT16_C(c) __UINT16_C(c)
#define UINT16_C(c) __UINT16_C(c)
#undef UINT32_C
#undef UINT32_C
#define UINT32_C(c) __UINT32_C(c)
#define UINT32_C(c) __UINT32_C(c)
#undef UINT64_C
#undef UINT64_C
#define UINT64_C(c) __UINT64_C(c)
#define UINT64_C(c) __UINT64_C(c)
#undef INTMAX_C
#undef INTMAX_C
#define INTMAX_C(c) __INTMAX_C(c)
#define INTMAX_C(c) __INTMAX_C(c)
#undef UINTMAX_C
#undef UINTMAX_C
#define UINTMAX_C(c) __UINTMAX_C(c)
#define UINTMAX_C(c) __UINTMAX_C(c)
 
 
#endif /* !defined __cplusplus || defined __STDC_CONSTANT_MACROS */
#endif /* !defined __cplusplus || defined __STDC_CONSTANT_MACROS */
 
 
#endif /* _GCC_STDINT_H */
#endif /* _GCC_STDINT_H */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.