Does the restrict keyword provide significant benefits in gcc/g++?
The restrict keyword does a difference. I’ve seen improvements of factor 2 and more in some situations (image processing). Most of the time the difference is not that large though. About 10%. Here is a little example that illustrate the difference. I’ve written a very basic 4×4 vector * matrix transform as a test. Note … Read more