summaryrefslogtreecommitdiff
path: root/libkern/vlrt-thumb.c
diff options
context:
space:
mode:
Diffstat (limited to 'libkern/vlrt-thumb.c')
-rw-r--r--libkern/vlrt-thumb.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libkern/vlrt-thumb.c b/libkern/vlrt-thumb.c
index 58cf5591..e94ec2de 100644
--- a/libkern/vlrt-thumb.c
+++ b/libkern/vlrt-thumb.c
@@ -26,6 +26,12 @@ struct Vlong
};
};
+struct RVlong
+{
+ ulong lo;
+ ulong hi;
+};
+
void abort(void);
void
@@ -54,14 +60,12 @@ _subv(Vlong *r, Vlong a, Vlong b)
r->hi = hi;
}
-
void
_d2v(Vlong *y, double d)
{
- union { double d; struct Vlong; } x;
+ union { double d; struct RVlong; } x;
ulong xhi, xlo, ylo, yhi;
int sh;
-
x.d = d;
xhi = (x.hi & 0xfffff) | 0x100000;