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

Function any_ps

test/pthread/test_pthread_mandelbrot.cpp:169–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169int any_ps(__m128 m)
170{
171 __m128 y = _mm_shuffle_ps(m, m, _MM_SHUFFLE(2,3,0,1));
172 m = _mm_or_ps(m, y);
173 __m128 z = _mm_movehl_ps(m, m);
174 m = _mm_or_ps(m, z);
175 return !_mm_ucomige_ss(m, m);
176}
177
178int xnan_ss(__m128 m) { return !_mm_ucomige_ss(m, m); }
179int ynan_ss(__m128 m) { return xnan_ss(_mm_shuffle_ps(m, m, _MM_SHUFFLE(1,1,1,1))); }

Callers 1

ComputeMandelbrot_SSEFunction · 0.85

Calls 3

_mm_or_psFunction · 0.85
_mm_movehl_psFunction · 0.85
_mm_ucomige_ssFunction · 0.85

Tested by

no test coverage detected