MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / eval

Method eval

extensions/include/cuMat/src/SimpleRandom.h:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected