Z
zacariaz
typedef unsigned long long uint64 // just so we dont get confused
ok, the problem is this.
I have 1 + n number of uint64 variables and the 1 should at all times
contain a value equal to the ORing of all the n variables. eg.
@code
uint64 x;
uint64 y[n];
x = y[0] | y[1] | y[2] ...| y[n-1]
@code
i would like this to happen automaticly, like x pointing to severel
variables at the same time, which of course is not possible (i think).
Oh, there is one unsignificant thing. It is know that that the
variable in y[n] will allways equal 0 if ANDed.
so, do i have to write a function which i have to call constantly, or
is there a smarter way?
NB. the y[n] variable must of course not be altered in anyway by this
operation.
ok, the problem is this.
I have 1 + n number of uint64 variables and the 1 should at all times
contain a value equal to the ORing of all the n variables. eg.
@code
uint64 x;
uint64 y[n];
x = y[0] | y[1] | y[2] ...| y[n-1]
@code
i would like this to happen automaticly, like x pointing to severel
variables at the same time, which of course is not possible (i think).
Oh, there is one unsignificant thing. It is know that that the
variable in y[n] will allways equal 0 if ANDed.
so, do i have to write a function which i have to call constantly, or
is there a smarter way?
NB. the y[n] variable must of course not be altered in anyway by this
operation.