Reputation: 183
I was wondering is there any available bitwise operations for CUDA's vector types like int4/int2? I see lot of aux functions in cutil_math.h, but no any bit (left/right shift) operations, so I could
int4 x;
x <<= 100;
Thank you.
Upvotes: 2
Views: 1675
Reputation: 21108
I believe you have to do the operation element-wise (or define the operator yourself).
Upvotes: 1