Fix issue with small, misaligned copies

This commit is contained in:
Gwilym Kuiper 2022-06-19 13:03:44 +01:00
parent a7d52bbed0
commit c9f1401ef3

View file

@ -29,6 +29,10 @@ __aeabi_memcpy:
bmi .Lcopy1
bcs .Lcopy2
// If the number of bytes to copy is less than 4, we should just copy one byte at a time
cmp r2, #4
bmi .Lcopy1
.Lcopy4:
// Copy half and byte head
rsb r3, r0, #4