Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kevingadd
on May 11, 2022
|
parent
|
context
|
favorite
| on:
Mysterious Memset
since it's std::memset, the compiler could theoretically inline it or have a small-count path that uses vector intrinsics
saagarjha
on May 11, 2022
[–]
It could, but for a case without a known count it doesn't really make sense to do that. (I honestly found the concern to be kind of strange for that reason, honestly.)
astrange
on May 11, 2022
|
parent
[–]
A memset tail call would be less code size than the loop, so it's still worth it even for cold code.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: