MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / temper

Function temper

src/backend/cuda/kernel/random_engine_mersenne.hpp:92–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92static inline __device__ uint temper(const uint *const temper_table,
93 const uint v, uint t) {
94 t ^= t >> 16;
95 t ^= t >> 8;
96 uint mat = temper_table[t & 0x0f];
97 return v ^ mat;
98}
99
100// Initialization
101

Callers 2

uniformMersenneFunction · 0.70
normalMersenneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected