Fix handling of misaligned bytes in fill

This commit is contained in:
2018-02-04 05:38:49 +01:00
parent e9f70853c6
commit 2cda82eeea
2 changed files with 15 additions and 25 deletions

View File

@ -37,6 +37,11 @@ _D5tanya6memory2op10fillMemoryFNaNbNiAvmZv:
mov %rsi, %r8
// If the length is less than the number of misaligned bytes,
// write one byte at a time and exit
cmp %rax, %rcx
jg aligned_1
naligned:
mov %dl, (%r8) // Write a byte