Y
Hacker News
new
|
ask
|
show
|
jobs
by
nvartolomei
936 days ago
dlemire, you note that the read ”overflows”. Why can’t you copy just `len` bytes? Does it slow too much because of the branch/more load/store operations?
1 comments
xoranth
936 days ago
It is slower since it actually calls `memcpy`, instead of doing a single load. E.g.
https://godbolt.org/z/5xa33qbar
link
https://godbolt.org/z/5xa33qbar