Displaying 4 results from an estimated 4 matches for "remoteptr".
Did you mean:
remotepath
2020 Jun 21
3
Restrict qualifier on class members
Hi,
I'm trying to abstract some special pointers with a class, like in the
example program below:
1 #define __remote __attribute__((address_space(1)))
2 #include <stdint.h>
3
4 __remote int* A;
5 __remote int* B;
6
7 class RemotePtr {
8 private:
9 __remote int* __restrict a;
10
11 public:
12 RemotePtr(__remote int* a) : a(a) {}
13
14 __remote int& at(int n) {
15 return a[n];
16 }
17 };
18
19 int main(int argc, char** argv) {
20 RemotePtr a(A);
21 RemotePtr b(B);
22
23 #prag...
2020 Jun 22
2
Restrict qualifier on class members
...,
>
> I'm trying to abstract some special pointers with a class, like in the
> example program below:
>
> 1 #define __remote __attribute__((address_space(1)))
> 2 #include <stdint.h>
> 3
> 4 __remote int* A;
> 5 __remote int* B;
> 6
> 7 class RemotePtr {
> 8 private:
> 9 __remote int* __restrict a;
> 10
> 11 public:
> 12 RemotePtr(__remote int* a) : a(a) {}
> 13
> 14 __remote int& at(int n) {
> 15 return a[n];
> 16 }
> 17 };
> 18
> 19 int main(int argc, char** argv) {...
2020 Jun 22
2
Restrict qualifier on class members
...n the
>> > example program below:
>> >
>> > 1 #define __remote __attribute__((address_space(1)))
>> > 2 #include <stdint.h>
>> > 3
>> > 4 __remote int* A;
>> > 5 __remote int* B;
>> > 6
>> > 7 class RemotePtr {
>> > 8 private:
>> > 9 __remote int* __restrict a;
>> > 10
>> > 11 public:
>> > 12 RemotePtr(__remote int* a) : a(a) {}
>> > 13
>> > 14 __remote int& at(int n) {
>> > 15 return a[n];
>&g...
2020 Jun 24
2
FW: Restrict qualifier on class members
...pecial pointers with a class, like in the
> > example program below:
> >
> > 1 #define __remote __attribute__((address_space(1)))
> > 2 #include <stdint.h>
> > 3
> > 4 __remote int* A;
> > 5 __remote int* B;
> > 6
> > 7 class RemotePtr {
> > 8 private:
> > 9 __remote int* __restrict a;
> > 10
> > 11 public:
> > 12 RemotePtr(__remote int* a) : a(a) {}
> > 13
> > 14 __remote int& at(int n) {
> > 15 return a[n];
> > 16 }
> > 17 };
&...