how to use 2 int32 to simulate an int64 here double simulation

Hi,

i’m on G80, have to use int64. Any suggestions or references? thanks a lot!

num += k * k * q; //k: int32, q: int in [0,4], num: the int64 to be simulated.

Focused on same problem, best I have found so far

PRNG Random Numbers on GPU , W. B. Langdon . Code is in paper. He does byte by byte multiplication.

Hope that helps

www.essex.ac.uk/dces/research/publications/technicalreports/2007/ces-477.pdf