diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-11-23 17:05:30 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-11-23 17:05:30 +0000 |
commit | 678673089d1ba7cd0f2960a2815a0d5bb8a72fa3 (patch) | |
tree | a1c8fa862f3da0189e71fd866f5e5717f60caa70 /dyngen-exec.h | |
parent | 28b6751f30603a4c7146282fde9efcf8b5f31f7b (diff) | |
download | qemu-678673089d1ba7cd0f2960a2815a0d5bb8a72fa3.zip qemu-678673089d1ba7cd0f2960a2815a0d5bb8a72fa3.tar.gz qemu-678673089d1ba7cd0f2960a2815a0d5bb8a72fa3.tar.bz2 |
PowerPC target support (Jocelyn Mayer) - added better support for uid16
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@474 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'dyngen-exec.h')
-rw-r--r-- | dyngen-exec.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dyngen-exec.h b/dyngen-exec.h index ec32fbc..2b8ba3a 100644 --- a/dyngen-exec.h +++ b/dyngen-exec.h @@ -17,6 +17,9 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#if !defined(__DYNGEN_EXEC_H__) +#define __DYNGEN_EXEC_H__ + typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; @@ -27,6 +30,19 @@ typedef signed short int16_t; typedef signed int int32_t; typedef signed long long int64_t; +#define INT8_MIN (-128) +#define INT16_MIN (-32767-1) +#define INT32_MIN (-2147483647-1) +#define INT64_MIN (-(int64_t)(9223372036854775807)-1) +#define INT8_MAX (127) +#define INT16_MAX (32767) +#define INT32_MAX (2147483647) +#define INT64_MAX ((int64_t)(9223372036854775807)) +#define UINT8_MAX (255) +#define UINT16_MAX (65535) +#define UINT32_MAX (4294967295U) +#define UINT64_MAX ((uint64_t)(18446744073709551615)) + #define bswap32(x) \ ({ \ uint32_t __x = (x); \ @@ -191,3 +207,5 @@ extern int __op_jmp0, __op_jmp1, __op_jmp2, __op_jmp3; #ifdef __mc68000 #define EXIT_TB() asm volatile ("rts") #endif + +#endif /* !defined(__DYNGEN_EXEC_H__) */ |