Unsigned long suffix? Is there a unsigned long suffix in CUDA?

Hi Folks!

I want to use 64 Bit constants with CUDA (for shifting). For that i would have to declare them with an unsigned long suffix. Sadly the ones I know (u64, ull) dont seem to work (C4293: shift count negative or too big, undefined behavior).

Does anybody know the proper suffixes which work with CUDA?

Thanks in advance!

CUDA supports only prefixes… You may want to try prefixing it…

Jokes apart… You just need to specify 64 at the max as the shift-count for a 64-bit number… right? So, why are you using a shift count that is 64-bit??? Only the main number needs to be 64-bit… The shifting count can be an integer or so… Just applying common sense here…