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

C99 introduced the restrict keyword by which the programmer promises that the pointer doesn't alias anything (or else the behavior is undefined).

memmove versus memcpy only solves the problem for block moves, not for other array operations. Think about a Fast Fourier Transform or whatever where the compiler has to suspect that the inputs overlap in dumb ways.




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

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

Search: