rshift = ((J[i]-1)*((2*net)-J[i]) >> -1);
L[i] = rshift + K[i]-J[i];
when i compile this, i get "error: expression must have integral or enum type" corresponding to the first line. except for 'i' all have double precision.
it works for neither left nor right shift. i'm using fedora 12 and i have nvcc 3.2, V0.2.1221. for c++(g++ compiler), it works perfectly.
but when i tried it for
rshift = ((J[i]-1)*((2*net)-J[i]) >>= -1);
L[i] = rshift + K[i]-J[i];
it was "error: expression must be a modifiable lvalue" i tried a lot and couldn't fix it. any ideas?