MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / ExtractInRandomOrder

Function ExtractInRandomOrder

test/sse/test_sse.h:292–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292__m128i ExtractInRandomOrder(uint32_t *arr, int i, int n, int prime) {
293 return _mm_set_epi32(arr[(i*prime)%n], arr[((i+1)*prime)%n], arr[((i+2)*prime)%n], arr[((i+3)*prime)%n]);
294}
295
296__m128d ExtractInRandomOrder(double *arr, int i, int n, int prime) {
297 return _mm_set_pd(arr[(i*prime)%n], arr[((i+1)*prime)%n]);

Callers

nothing calls this directly

Calls 2

_mm_set_epi32Function · 0.85
_mm_set_pdFunction · 0.85

Tested by

no test coverage detected