diff options
| author | Charles Forsyth <charles.forsyth@gmail.com> | 2024-04-22 07:26:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-22 07:26:53 +0100 |
| commit | da0a2df935d71d337d0b2aa01c2553a323bc1809 (patch) | |
| tree | 6fed4f55d6709f1d1250c3633e760a5ec6a745da /libkern/vlrt-thumb.c | |
| parent | 572a60820a14330c774d1420c1cff39908d628ae (diff) | |
| parent | 1b44446e0d632d96dfba82c401b0aa12a1dfc00a (diff) | |
Merge pull request #11 from dboddie/thumb2-compiler-changes
Thumb compiler changes to support Thumb-2
Diffstat (limited to 'libkern/vlrt-thumb.c')
| -rw-r--r-- | libkern/vlrt-thumb.c | 10 |
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; |
