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