Skip to content

Commit

Permalink
Optimize copysign
Browse files Browse the repository at this point in the history
  • Loading branch information
calc84maniac authored and mateoconlechuga committed Nov 21, 2024
1 parent d3c7f67 commit 3e2a7b8
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/libc/copysign.src
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@
_copysign:
_copysignf:
pop bc
pop hl
pop de
ld a,e
pop de
pop de
push de
push de
push de
pop hl
ld a,l
inc sp
ex (sp),hl
dec sp
push hl
push de
push bc
xor a,e
and a,$7F
xor a,e
ld e,a
add hl,hl
rla
rrca
ld l,a
ex de,hl
ret

0 comments on commit 3e2a7b8

Please sign in to comment.