From af3b6167bf93b1526982d7adfc2d48b8f06432ae Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Thu, 3 Jul 2008 13:47:22 +0000 Subject: 20080703-1447 --- emu/Nt/vlrt.c | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to 'emu/Nt/vlrt.c') diff --git a/emu/Nt/vlrt.c b/emu/Nt/vlrt.c index c9ef9c9a..43313a29 100644 --- a/emu/Nt/vlrt.c +++ b/emu/Nt/vlrt.c @@ -13,21 +13,8 @@ typedef struct Vlong Vlong; struct Vlong { - union - { - struct - { - ulong lo; - ulong hi; - }; - struct - { - ushort lols; - ushort loms; - ushort hils; - ushort hims; - }; - }; + ulong lo; + ulong hi; }; void abort(void); @@ -102,11 +89,11 @@ _mulv(Vlong *r, Vlong a, Vlong b) void _d2v(Vlong *y, double d) { - union { double d; struct Vlong; } x; + Vlong x; ulong xhi, xlo, ylo, yhi; int sh; - x.d = d; + *(double*)&x = d; xhi = (x.hi & 0xfffff) | 0x100000; xlo = x.lo; -- cgit v1.2.3