xref: /dflybsd-src/contrib/gdb-7/include/cgen/basic-modes.h (revision 86d7f5d305c6adaa56ff4582ece9859d73106103)
1*86d7f5d3SJohn Marino /* Basic CGEN modes.
2*86d7f5d3SJohn Marino    Copyright 2005, 2007, 2009 Free Software Foundation, Inc.
3*86d7f5d3SJohn Marino    Contributed by Red Hat.
4*86d7f5d3SJohn Marino 
5*86d7f5d3SJohn Marino    This file is part of the GNU opcodes library.
6*86d7f5d3SJohn Marino 
7*86d7f5d3SJohn Marino    This library is free software; you can redistribute it and/or modify
8*86d7f5d3SJohn Marino    it under the terms of the GNU General Public License as published by
9*86d7f5d3SJohn Marino    the Free Software Foundation; either version 3, or (at your option)
10*86d7f5d3SJohn Marino    any later version.
11*86d7f5d3SJohn Marino 
12*86d7f5d3SJohn Marino    It is distributed in the hope that it will be useful,
13*86d7f5d3SJohn Marino    but WITHOUT ANY WARRANTY; without even the implied warranty of
14*86d7f5d3SJohn Marino    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15*86d7f5d3SJohn Marino    GNU General Public License for more details.
16*86d7f5d3SJohn Marino 
17*86d7f5d3SJohn Marino    You should have received a copy of the GNU General Public License
18*86d7f5d3SJohn Marino    along with this library; see the file COPYING3.  If not, write to the
19*86d7f5d3SJohn Marino    Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
20*86d7f5d3SJohn Marino    02110-1301, USA.  */
21*86d7f5d3SJohn Marino 
22*86d7f5d3SJohn Marino #ifndef CGEN_BASIC_MODES_H
23*86d7f5d3SJohn Marino #define CGEN_BASIC_MODES_H
24*86d7f5d3SJohn Marino 
25*86d7f5d3SJohn Marino /* This file doesn't contain all modes,
26*86d7f5d3SJohn Marino    just the basic/portable ones.
27*86d7f5d3SJohn Marino    It also provides access to stdint.h (*1) so the includer doesn't have
28*86d7f5d3SJohn Marino    to deal with the portability issues.
29*86d7f5d3SJohn Marino    (*1): To the extent that bfd_stdint.h does for now.  */
30*86d7f5d3SJohn Marino 
31*86d7f5d3SJohn Marino /* IWBN to avoid unnecessary dependencies on bfd-anything.  */
32*86d7f5d3SJohn Marino #include "bfd_stdint.h"
33*86d7f5d3SJohn Marino 
34*86d7f5d3SJohn Marino typedef int8_t QI;
35*86d7f5d3SJohn Marino typedef uint8_t UQI;
36*86d7f5d3SJohn Marino 
37*86d7f5d3SJohn Marino typedef int16_t HI;
38*86d7f5d3SJohn Marino typedef uint16_t UHI;
39*86d7f5d3SJohn Marino 
40*86d7f5d3SJohn Marino typedef int32_t SI;
41*86d7f5d3SJohn Marino typedef uint32_t USI;
42*86d7f5d3SJohn Marino 
43*86d7f5d3SJohn Marino typedef int64_t DI;
44*86d7f5d3SJohn Marino typedef uint64_t UDI;
45*86d7f5d3SJohn Marino 
46*86d7f5d3SJohn Marino typedef int INT;
47*86d7f5d3SJohn Marino typedef unsigned int UINT;
48*86d7f5d3SJohn Marino 
49*86d7f5d3SJohn Marino /* Cover macro to create a 64-bit integer.  */
50*86d7f5d3SJohn Marino #define MAKEDI(hi, lo) ((((DI) (SI) (hi)) << 32) | ((UDI) (USI) (lo)))
51*86d7f5d3SJohn Marino 
52*86d7f5d3SJohn Marino #endif /* CGEN_BASIC_MODES_H */
53