Skip to content

Commit d14f160

Browse files
committed
switched ftoll and (u)lltof to ez80sf
1 parent a271431 commit d14f160

8 files changed

Lines changed: 12 additions & 118 deletions

File tree

src/crt/fptoll.src

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22

33
.section .text
44

5+
.global __ftoll
6+
.type __ftoll, @function
7+
.global __ftoull
8+
.type __ftoull, @function
59
.global __fptoll
610
.type __fptoll, @function
711
.global __fptoull
812
.type __fptoull, @function
913

1014
; IEEE single precision to 64-bit integers
1115
; bcudeuhl = longlong(euhl)
16+
__ftoull:
17+
__ftoll:
1218
__fptoull: ; PREREQ: bitcast(float, pair8_24_t, { in.HL, in.E }) > -1.0f && bitcast(float, pair8_24_t, { in.HL, in.E }) < (UINT64_MAX/2+1)*2.0f CHECK: bitcast(uint64_t, tuple16_24_24_t, { out.HL, out.DE, out.BCS }) == (uint64_t)bitcast(float, pair8_24_t, { in.HL, in.E }) && out.A == in.A && out.IX == in.IX && out.IY == in.IY
1319
__fptoll: ; PREREQ: bitcast(float, pair8_24_t, { in.HL, in.E })-INT64_MIN > -1.0f && bitcast(float, pair8_24_t, { in.HL, in.E }) < (INT64_MAX/2+1)*2.0f CHECK: bitcast(int64_t, tuple16_24_24_t, { out.HL, out.DE, out.BCS }) == (int64_t)bitcast(float, pair8_24_t, { in.HL, in.E }) && out.A == in.A && out.IX == in.IX && out.IY == in.IY
1420
ld d, a

src/crt/ftoll.c

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/crt/ftoll.src

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/crt/lltof.c

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/crt/lltof.src

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/crt/lltofp.src

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44

55
.section .text
66

7+
.global __lltof
8+
.type __lltof, @function
79
.global __lltofp
810
.type __lltofp, @function
911

1012
; IEEE single precision from 64-bit integers
1113
; euhl = float(bcudeuhl)
14+
__lltof:
1215
__lltofp: ; CHECK: same(bitcast(float, pair8_24_t, { out.HL, out.E }), (float)bitcast(int64_t, tuple16_24_24_t, { in.HL, in.DE, in.BCS })) && out.A == in.A && out.BC == in.BC && out.IX == in.IX && out.IY == in.IY
1316
push af
1417
push bc
@@ -21,9 +24,12 @@ __lltofp: ; CHECK: same(bitcast(float, pair8_24_t, { out.HL, out.E }), (float)bi
2124

2225
.section .text
2326

27+
.global __ulltof
28+
.type __ulltof, @function
2429
.global __ulltofp
2530
.type __ulltofp, @function
2631

32+
__ulltof:
2733
__ulltofp: ; CHECK: same(bitcast(float, pair8_24_t, { out.HL, out.E }), (float)bitcast(uint64_t, tuple16_24_24_t, { in.HL, in.DE, in.BCS })) && out.A == in.A && out.BC == in.BC && out.IX == in.IX && out.IY == in.IY
2834
push af
2935
push bc

src/crt/ulltof.c

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/crt/ulltof.src

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)