10 lines
168 B
ArmAsm

/// File with support code for gcc memory stuff
.section ".text", "ax"
.globl memset
memset:
mov %rdx, %rcx
mov %sil, %al
rep stosb (%rdi)
mov %rdi, %rax
ret