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

Function ExtractIntInRandomOrder

test/sse/test_sse.h:489–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487#endif
488
489__m128 ExtractIntInRandomOrder(unsigned int *arr, int i, int n, int prime) {
490 return _mm_set_ps(*(float*)&arr[(i*prime)%n], *(float*)&arr[((i+1)*prime)%n], *(float*)&arr[((i+2)*prime)%n], *(float*)&arr[((i+3)*prime)%n]);
491}
492
493#define E1(arr, i, n) ExtractFloatInRandomOrder(arr, i, n, 1)
494#define E2(arr, i, n) ExtractFloatInRandomOrder(arr, i, n, 1787)

Callers

nothing calls this directly

Calls 1

_mm_set_psFunction · 0.85

Tested by

no test coverage detected