Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Dylan16807
on Dec 11, 2024
|
parent
|
context
|
favorite
| on:
Making memcpy(NULL, NULL, 0) well-defined
If we're inlining the call, then we can hoist the NULL check out of the loop. Now it's 1 check per 20 million operations. There's no need to eliminate it or have UB at that point.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: