Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lrggw-0000BD-S9 for qemu-devel@nongnu.org; Wed, 08 Apr 2009 18:56:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lrggv-0000Av-Bq for qemu-devel@nongnu.org; Wed, 08 Apr 2009 18:56:21 -0400 Received: from [199.232.76.173] (port=53216 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lrggv-0000As-7U for qemu-devel@nongnu.org; Wed, 08 Apr 2009 18:56:21 -0400 Received: from savannah.gnu.org ([199.232.41.3]:36118 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lrggu-00027Y-U0 for qemu-devel@nongnu.org; Wed, 08 Apr 2009 18:56:21 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Lrggu-0005Rl-Af for qemu-devel@nongnu.org; Wed, 08 Apr 2009 22:56:20 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1Lrggu-0005Rh-2n for qemu-devel@nongnu.org; Wed, 08 Apr 2009 22:56:20 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Wed, 08 Apr 2009 22:56:20 +0000 Subject: [Qemu-devel] [7047] Use stdint.h for integral data types and definitions Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 7047 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7047 Author: aurel32 Date: 2009-04-08 22:56:19 +0000 (Wed, 08 Apr 2009) Log Message: ----------- Use stdint.h for integral data types and definitions Signed-off-by: Stefan Weil Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/dyngen-exec.h Modified: trunk/dyngen-exec.h =================================================================== --- trunk/dyngen-exec.h 2009-04-08 21:48:27 UTC (rev 7046) +++ trunk/dyngen-exec.h 2009-04-08 22:56:19 UTC (rev 7047) @@ -31,57 +31,15 @@ point because host CPU registers are used as global variables. Some host headers do not allow that. */ #include +#include #ifdef __OpenBSD__ #include -#else -typedef unsigned char uint8_t; -typedef unsigned short uint16_t; -typedef unsigned int uint32_t; -// Linux/Sparc64 defines uint64_t -#if !(defined (__sparc_v9__) && defined(__linux__)) && !(defined(__APPLE__) && defined(__x86_64__)) -/* XXX may be done for all 64 bits targets ? */ -#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__) || defined(_ARCH_PPC64) -typedef unsigned long uint64_t; -#else -typedef unsigned long long uint64_t; #endif -#endif -/* if Solaris/__sun__, don't typedef int8_t, as it will be typedef'd - prior to this and will cause an error in compliation, conflicting - with /usr/include/sys/int_types.h, line 75 */ -#ifndef __sun__ -typedef signed char int8_t; -#endif -typedef signed short int16_t; -typedef signed int int32_t; -// Linux/Sparc64 defines int64_t -#if !(defined (__sparc_v9__) && defined(__linux__)) && !(defined(__APPLE__) && defined(__x86_64__)) -#if defined (__x86_64__) || defined(__ia64) || defined(__s390x__) || defined(__alpha__) || defined(_ARCH_PPC64) -typedef signed long int64_t; -#else -typedef signed long long int64_t; -#endif -#endif -#endif - /* XXX: This may be wrong for 64-bit ILP32 hosts. */ typedef void * host_reg_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)) - #ifdef HOST_BSD typedef struct __sFILE FILE; #else