We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c404ee commit fd242c4Copy full SHA for fd242c4
src/libc/frexpf.src
@@ -58,8 +58,8 @@ _frexpf:
58
ld (iy + 3), hl
59
scf
60
sbc hl, hl
61
- neg
62
- add a, 130 ; 127 + 3? idk where this magic number comes from
+ cpl
+ add a, 131 ; 127 + 3 + 1? idk where this magic number comes from
63
ld l, a
64
ld a, b ; exponent
65
xor a, $3F
src/libc/ilogbl.src
@@ -41,11 +41,11 @@ _ilogbl:
41
cp a, 64
42
43
jr z, .ret_zero ; A was 64
44
45
46
- ; -1023 + 11 + 1
+ ; -1023 + 11 + 1 + 1
47
; Float64_ilogb_subnorm_max + Float64_exponent_bits + Float64_sign_bits
48
- ld de, -1011
+ ld de, -1010
49
add hl, de
50
ret
51
0 commit comments