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/] [config/] [uclibc-stdint.h] - Blame information for rev 516

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 490 jeremybenn
/* Definitions for <stdint.h> types on systems using uClibc.
2
   Copyright (C) 2008, 2009, 2011 Free Software Foundation, Inc.
3
 
4
This file is part of GCC.
5
 
6
GCC is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 3, or (at your option)
9
any later version.
10
 
11
GCC is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
GNU General Public License for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with GCC; see the file COPYING3.  If not see
18
<http://www.gnu.org/licenses/>.  */
19
 
20
#define SIG_ATOMIC_TYPE "int"
21
 
22
/* The newlib logic actually checks for sizes greater than 32 rather
23
   than equal to 64 for various 64-bit types.  */
24
 
25
#define INT8_TYPE (CHAR_TYPE_SIZE == 8 ? "signed char" : 0)
26
#define INT16_TYPE (SHORT_TYPE_SIZE == 16 ? "short int" : 0)
27
#define INT32_TYPE (INT_TYPE_SIZE == 32 ? "int" : 0)
28
#define INT64_TYPE (LONG_TYPE_SIZE == 64 ? "long int" : LONG_LONG_TYPE_SIZE == 64 ? "long long int" : 0)
29
#define UINT8_TYPE (CHAR_TYPE_SIZE == 8 ? "unsigned char" : 0)
30
/* uclibc-0.9.31/include/stdint.h has the 'unsigned' keyword first,
31
   but GCC needs the length keyword first.  */
32
#define UINT16_TYPE (SHORT_TYPE_SIZE == 16 ? "short unsigned int" : 0)
33
#define UINT32_TYPE (INT_TYPE_SIZE == 32 ? "unsigned int" : 0)
34
#define UINT64_TYPE (LONG_TYPE_SIZE == 64 ? "long unsigned int" : LONG_LONG_TYPE_SIZE == 64 ? "long long unsigned int" : 0)
35
 
36
#define INT_LEAST8_TYPE (INT8_TYPE ? INT8_TYPE : INT16_TYPE ? INT16_TYPE : INT32_TYPE ? INT32_TYPE : INT64_TYPE ? INT64_TYPE : 0)
37
#define INT_LEAST16_TYPE (INT16_TYPE ? INT16_TYPE : INT32_TYPE ? INT32_TYPE : INT64_TYPE ? INT64_TYPE : 0)
38
#define INT_LEAST32_TYPE (INT32_TYPE ? INT32_TYPE : INT64_TYPE ? INT64_TYPE : 0)
39
#define INT_LEAST64_TYPE INT64_TYPE
40
#define UINT_LEAST8_TYPE (UINT8_TYPE ? UINT8_TYPE : UINT16_TYPE ? UINT16_TYPE : UINT32_TYPE ? UINT32_TYPE : UINT64_TYPE ? UINT64_TYPE : 0)
41
#define UINT_LEAST16_TYPE (UINT16_TYPE ? UINT16_TYPE : UINT32_TYPE ? UINT32_TYPE : UINT64_TYPE ? UINT64_TYPE : 0)
42
#define UINT_LEAST32_TYPE (UINT32_TYPE ? UINT32_TYPE : UINT64_TYPE ? UINT64_TYPE : 0)
43
#define UINT_LEAST64_TYPE UINT64_TYPE
44
 
45
#define INT_FAST8_TYPE INT8_TYPE
46
#define UINT_FAST8_TYPE UINT8_TYPE
47
 
48
#if LONG_TYPE_SIZE == 64
49
#define INT_FAST16_TYPE "long int"
50
#define INT_FAST32_TYPE "long int"
51
#define INT_FAST64_TYPE "long int"
52
#define UINT_FAST16_TYPE "long unsigned int"
53
#define UINT_FAST32_TYPE "long unsigned int"
54
#define UINT_FAST64_TYPE "long unsigned int"
55
#else
56
#define INT_FAST16_TYPE "int"
57
#define INT_FAST32_TYPE "int"
58
#define INT_FAST64_TYPE "long long int"
59
#define UINT_FAST16_TYPE "unsigned int"
60
#define UINT_FAST32_TYPE "unsigned int"
61
#define UINT_FAST64_TYPE "long long unsigned int"
62
#endif
63
 
64
#if LONG_TYPE_SIZE == 64
65
#define INTPTR_TYPE "long int"
66
#define UINTPTR_TYPE "long unsigned int"
67
#else
68
#define INTPTR_TYPE "int"
69
#define UINTPTR_TYPE "unsigned int"
70
#endif

powered by: WebSVN 2.1.0

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