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

Function writeOut128Bytes

src/backend/oneapi/kernel/random_engine_write.hpp:168–187  ·  view source on GitHub ↗

Writes without boundary checking

Source from the content-addressed store, hash-verified

166
167// Writes without boundary checking
168static void writeOut128Bytes(uchar *out, const uint &index, const uint groupSz,
169 const uint &r1, const uint &r2, const uint &r3,
170 const uint &r4) {
171 out[index] = r1;
172 out[index + groupSz] = r1 >> 8;
173 out[index + 2 * groupSz] = r1 >> 16;
174 out[index + 3 * groupSz] = r1 >> 24;
175 out[index + 4 * groupSz] = r2;
176 out[index + 5 * groupSz] = r2 >> 8;
177 out[index + 6 * groupSz] = r2 >> 16;
178 out[index + 7 * groupSz] = r2 >> 24;
179 out[index + 8 * groupSz] = r3;
180 out[index + 9 * groupSz] = r3 >> 8;
181 out[index + 10 * groupSz] = r3 >> 16;
182 out[index + 11 * groupSz] = r3 >> 24;
183 out[index + 12 * groupSz] = r4;
184 out[index + 13 * groupSz] = r4 >> 8;
185 out[index + 14 * groupSz] = r4 >> 16;
186 out[index + 15 * groupSz] = r4 >> 24;
187}
188
189static void writeOut128Bytes(schar *out, const uint &index, const uint groupSz,
190 const uint &r1, const uint &r2, const uint &r3,

Callers 3

operator()Method · 0.70
operator()Method · 0.70
operator()Method · 0.70

Calls 3

getFloat01Function · 0.70
getDouble01Function · 0.70
oneMinusGetHalf01Function · 0.70

Tested by

no test coverage detected