Commit 4a5f3ee0 authored by Matteo Croce's avatar Matteo Croce Committed by Anup Patel
Browse files

riscv: optimized memset



The generic memset is defined as a byte at time write. This is always
safe, but it's slower than a 4 byte or even 8 byte write.

Write a generic memset which fills the data one byte at time until the
destination is aligned, then fills using the largest size allowed,
and finally fills the remaining data one byte at time.

Signed-off-by: default avatarMatteo Croce <mcroce@microsoft.com>
parent 1de17bee
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment