This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Using __restrict__ on a class member variable
- From: "Szabolcs HorvÃt" <szhorvat at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 24 Apr 2007 11:40:00 +0200
- Subject: Using __restrict__ on a class member variable
Is it possible to use __restrict__ in C++ on a member variable, like
in the example below? (Does it have an effect on functions that take
arrays as arguments?)
class array {
double * __restrict__ data;
...
...
};
The documentation only mentions using __restrict__ with function
arguments or member functions, and, if I understand correctly, it says
that __restrict__ will only have an effect on the function it was used
with.
http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Restricted-Pointers.html#index-restricted-pointers-2455