Subversion Repositories Kolibri OS

Rev

Rev 5191 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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