Hacker News new | past | comments | ask | show | jobs | submit login

aligned_alloc is a C function. It doesn't help the compiler prove that two pointers can't alias. restrict is the keyword that does.



The compiler is allowed to assume the results of malloc and certain other allocation functions do not alias.

Restrict does too.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: