| 21 | |
| 22 | struct RandNextHelper { |
| 23 | static __device__ int eval(int bits, state_t* seed) |
| 24 | { |
| 25 | *seed = (*seed * 0x5DEECE66DL + 0xBL) & ((1LL << 48) - 1); |
| 26 | return (int)(*seed >> (48 - bits)); |
| 27 | } |
| 28 | }; |
| 29 | |
| 30 | template<typename S> |
nothing calls this directly
no outgoing calls
no test coverage detected