From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QA9Df-0002Me-PA for qemu-devel@nongnu.org; Wed, 13 Apr 2011 19:11:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QA9Da-0004zS-IB for qemu-devel@nongnu.org; Wed, 13 Apr 2011 19:11:31 -0400 Received: from hall.aurel32.net ([88.191.126.93]:56699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QA9Da-0004xr-Az for qemu-devel@nongnu.org; Wed, 13 Apr 2011 19:11:26 -0400 From: Aurelien Jarno Date: Thu, 14 Apr 2011 01:10:57 +0200 Message-Id: <1302736274-2908-3-git-send-email-aurelien@aurel32.net> In-Reply-To: <1302736274-2908-1-git-send-email-aurelien@aurel32.net> References: <1302736274-2908-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH v2 02/19] cpu-all.h: define CPU_LDoubleU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Laurent Vivier , Aurelien Jarno Add a CPU_LDoubleU type, matching the floatx80 definition and the long double type on x86 hosts. Based on a patch from Laurent Vivier . Cc: Laurent Vivier Reviewed-by: Peter Maydell Signed-off-by: Aurelien Jarno --- cpu-all.h | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index dc0f2f0..0bae6df 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -138,6 +138,16 @@ typedef union { uint64_t ll; } CPU_DoubleU; +#if defined(FLOATX80) +typedef union { + floatx80 d; + struct { + uint64_t lower; + uint16_t upper; + } l; +} CPU_LDoubleU; +#endif + #if defined(CONFIG_SOFTFLOAT) typedef union { float128 q; -- 1.7.2.3