| 17 |
* License along with this library; if not, write to the Free Software |
* License along with this library; if not, write to the Free Software |
| 18 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 19 |
*/ |
*/ |
| 20 |
|
#if !defined(__DYNGEN_EXEC_H__) |
| 21 |
|
#define __DYNGEN_EXEC_H__ |
| 22 |
|
|
| 23 |
typedef unsigned char uint8_t; |
typedef unsigned char uint8_t; |
| 24 |
typedef unsigned short uint16_t; |
typedef unsigned short uint16_t; |
| 25 |
typedef unsigned int uint32_t; |
typedef unsigned int uint32_t; |
| 30 |
typedef signed int int32_t; |
typedef signed int int32_t; |
| 31 |
typedef signed long long int64_t; |
typedef signed long long int64_t; |
| 32 |
|
|
| 33 |
|
#define INT8_MIN (-128) |
| 34 |
|
#define INT16_MIN (-32767-1) |
| 35 |
|
#define INT32_MIN (-2147483647-1) |
| 36 |
|
#define INT64_MIN (-(int64_t)(9223372036854775807)-1) |
| 37 |
|
#define INT8_MAX (127) |
| 38 |
|
#define INT16_MAX (32767) |
| 39 |
|
#define INT32_MAX (2147483647) |
| 40 |
|
#define INT64_MAX ((int64_t)(9223372036854775807)) |
| 41 |
|
#define UINT8_MAX (255) |
| 42 |
|
#define UINT16_MAX (65535) |
| 43 |
|
#define UINT32_MAX (4294967295U) |
| 44 |
|
#define UINT64_MAX ((uint64_t)(18446744073709551615)) |
| 45 |
|
|
| 46 |
#define bswap32(x) \ |
#define bswap32(x) \ |
| 47 |
({ \ |
({ \ |
| 48 |
uint32_t __x = (x); \ |
uint32_t __x = (x); \ |
| 207 |
#ifdef __mc68000 |
#ifdef __mc68000 |
| 208 |
#define EXIT_TB() asm volatile ("rts") |
#define EXIT_TB() asm volatile ("rts") |
| 209 |
#endif |
#endif |
| 210 |
|
|
| 211 |
|
#endif /* !defined(__DYNGEN_EXEC_H__) */ |