cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

drstrip
Journeyman III

cast INT to UINT in Brook+

Can I cast an int to a uint in Brook+?

If not, how do I assign from an int to a uint? I want to do something like

 

int4 indx = instance();

uint y_indx = indx.y;

uint x_indx = indx.x

0 Likes
3 Replies
riza_guntur
Journeyman III

uint x = (uint) someint;

0 Likes

I'd swear I tried that, but apparently not.

static_cast<uint>(foo) definitely didn't work.

Thanks

0 Likes

static_cast won't work as brcc is based on C, not C++.

0 Likes