Re: Use of __restrict__ in g++

2009-03-30 Thread Paul Koning
> "quick" == quick writes: quick> I have two questions regarding the use on __restrict__ quick> qualifiers for function arguments in C++: quick> 1) How does it interact with volatile? quick> Example, given: quick> void foo(volatile int* __restrict__ p1, volatile int* quick> __restri

Use of __restrict__ in g++

2009-03-30 Thread quick
I have two questions regarding the use on __restrict__ qualifiers for function arguments in C++: 1) How does it interact with volatile? Example, given: void foo(volatile int* __restrict__ p1, volatile int* __restrict__ p2) { *p1 = 3; if (*p1 == 5) ...