Skip to content

Commit abd3d91

Browse files
committed
corrected function signatures, optimized signbit
1 parent d8dabdc commit abd3d91

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

src/libc/isinfl.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
public __isinfl
66

7-
; int _isinfl(long double)
7+
; bool _isinfl(long double)
88
__isinfl:
99
pop bc, hl, de
1010
xor a, a

src/libc/isnanl.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
public __isnanl
66

7-
; int _isnanl(long double)
7+
; bool _isnanl(long double)
88
__isnanl:
99
pop bc, hl, de
1010
or a, a

src/libc/issubnormall.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
public __issubnormall
66

7-
; int _issubnormall(long double)
7+
; bool _issubnormall(long double)
88
__issubnormall:
99
pop bc, hl, de
1010
or a, a

src/libc/iszerol.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
public __iszerol
66

7-
; int iszerol(long double)
7+
; bool iszerol(long double)
88
__iszerol:
99
pop bc, hl, de
1010
xor a, a

src/libc/signbitf.src

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ __signbitf:
99
ld hl, 6
1010
add hl, sp
1111
ld a, (hl)
12-
rla
13-
sbc a, a
12+
rlca ; faster than rla \ sbc a, a
1413
ret

src/libc/signbitl.src

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ __signbitl:
99
ld hl, 10
1010
add hl, sp
1111
ld a, (hl)
12-
rla
13-
sbc a, a
12+
rlca ; faster than rla \ sbc a, a
1413
ret

0 commit comments

Comments
 (0)