News for hackers. Stuff that matters.
Re:FFmpeg and a thousand fixes by astrange on Saturday January 11, 2014 @02:46PM (#7043511)
gcc mostly ignores restrict, though it's got a little better in recent versions. icc uses it a little more.

But restrict is only good in specific situations - if you have three pointers, and #2 can alias #1 but not #3, there's no way to express that.

It also tends to be used on function arguments, not at some higher up point of declaration. So when compilers inline the function and can see more global info about it, the restrict gets lost and optimization gets worse.

I think some kind of stronger 'typedef' would be better.

There are no comments on this comment yet.