Don't actually need to clear the buffer

This commit is contained in:
Gwilym Kuiper 2022-06-12 17:30:01 +01:00
parent 2ace226db8
commit 33c948208a

View file

@ -169,13 +169,7 @@ agb_arm_func agb_rs__mixer_collapse
@ r0 = target buffer (i8) @ r0 = target buffer (i8)
@ r1 = input buffer (i16) of fixnums with 4 bits of precision (read in sets of i16 in an i32) @ r1 = input buffer (i16) of fixnums with 4 bits of precision (read in sets of i16 in an i32)
@ firstly clear the buffer push {r4-r11}
push {r0, r1, r4-r11, lr}
ldr r1, agb_rs__buffer_size
bl agb_rs__init_buffer
pop {r0, r1}
CONST_0 .req r7 CONST_0 .req r7
CONST_FF .req r8 CONST_FF .req r8
@ -252,6 +246,6 @@ SWAP_SIGN .req r11
subs r2, r2, #16 @ r2 -= 16 subs r2, r2, #16 @ r2 -= 16
bne 1b @ loop if not 0 bne 1b @ loop if not 0
pop {r4-r11, lr} pop {r4-r11}
bx lr bx lr
agb_arm_end agb_rs__mixer_collapse agb_arm_end agb_rs__mixer_collapse