Restrict keyword and pointers to pointers
I'm in C and I have an int ** (2 dimensional array, it's basically a matrix, it's actually set up a little bit complicated but there's no internal aliasing, so it's not relevant). is this int** restrict or int * restrict * restrict my instinct is the former since restrict only really applies to variables but the compiler is merrily happy to accept both (although free gets upset at discarding the restrict). For reference the only way the code access i[4][5] is by using i[4][5] . I.e. there are NO other variables such that say j=&(i[4][5]) and the internal array is structured such that say i[a][
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.