]> AND Private Git Repository - book_gpu.git/blob - BookGPU/Chapters/chapter18/code2.cu
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
fin correct ch14
[book_gpu.git] / BookGPU / Chapters / chapter18 / code2.cu
1 {
2 unsigned int CIPRNG() {
3   static unsigned int x = 123123123;
4   unsigned long t1 = xorshift();
5   unsigned long t2 = xor128();
6   unsigned long t3 = xorwow();
7   x = x^(unsigned int)t1;
8   x = x^(unsigned int)(t2>>32);
9   x = x^(unsigned int)(t3>>32);
10   x = x^(unsigned int)t2;
11   x = x^(unsigned int)(t1>>32);
12   x = x^(unsigned int)t3;
13   return x;
14 }