Dmitry
Dmitry

Reputation: 183

CUDA int4 bitwise operations

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

Answers (1)

Tom
Tom

Reputation: 21108

I believe you have to do the operation element-wise (or define the operator yourself).

Upvotes: 1

Related Questions