4 ms·
Yes, C99 added that keyword, and you can use it in C code. (C++ is a more complicated matter, I believe…) But I think it's pretty uncommon in practice. One rea
by TazeTSchnitzel 6y ago
Yes, C99 added that keyword, and you can use it in C code. (C++ is a more complicated matter, I believe…)
But I think it's pretty uncommon in practice. One reason is that the C compiler has no borrow checker to help you notice when you're using `restrict` unsafely.
(Also, there's the whole “strict aliasing” hell…)
- petschge 6y agoIt's not that uncommon in HPC codes. I.e. one of the places where speed matters.