]> git.proxmox.com Git - qemu.git/commitdiff
cpu-all.h: define CPU_LDoubleU
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 13 Apr 2011 22:49:29 +0000 (00:49 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 17 Apr 2011 18:32:14 +0000 (20:32 +0200)
Add a CPU_LDoubleU type, matching the floatx80 definition and the long
double type on x86 hosts.

Based on a patch from Laurent Vivier <laurent@vivier.eu>.

Cc: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
cpu-all.h

index dc0f2f02abedd604d00a1002bf622a4099acf3fd..0bae6df8ec7e879e247602486082a33e47f7fda7 100644 (file)
--- 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;