Skip to content

Commit 48982b5

Browse files
[libc] optimize __isinff
1 parent 45e6ba0 commit 48982b5

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/libc/isinff.src

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ __isinff:
77
add iy,sp
88
ld hl,(iy+3)
99
adc hl,hl
10-
jr nz,.l
11-
ld hl,(iy+5)
12-
add hl,hl
13-
inc h
14-
.l:
15-
ld hl,0
16-
ret nz
10+
jr nz,.finite
11+
ld a,(iy+6)
12+
rla
13+
inc a
1714
inc hl
15+
ret z
16+
.finite:
17+
or a,a
18+
sbc hl,hl
1819
ret

0 commit comments

Comments
 (0)