B
Bart Vandewoestyne
I'm tryign to make a certain piece of code C89 standard compliant
to make it more portable. I also prefer not to use any
compiler-specific extensions. I came across lines that look like
this:
float * __restrict__ f_Qk = f_Q + sk;
From http://en.wikipedia.org/wiki/Restrict i learn that restrict
pointers are just something you can use to optimize and speedup
your code. But for as far as I understand, the __restrict__
macro is something gcc specific?
To make my code C89 compliant and without any compiler-specific
extensions, can I simply replace the above line by
float *f_Qk = f_Q + sk;
and will this keep the behavior of the original code?
Thanks,
Bart
to make it more portable. I also prefer not to use any
compiler-specific extensions. I came across lines that look like
this:
float * __restrict__ f_Qk = f_Q + sk;
From http://en.wikipedia.org/wiki/Restrict i learn that restrict
pointers are just something you can use to optimize and speedup
your code. But for as far as I understand, the __restrict__
macro is something gcc specific?
To make my code C89 compliant and without any compiler-specific
extensions, can I simply replace the above line by
float *f_Qk = f_Q + sk;
and will this keep the behavior of the original code?
Thanks,
Bart