MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / all

Function all

encoder/cppspmd_sse.h:1378–1378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1376CPPSPMD_FORCE_INLINE exec_mask operator|(const exec_mask& a, const exec_mask& b) { return exec_mask{ _mm_or_si128(a.m_mask, b.m_mask) }; }
1377
1378CPPSPMD_FORCE_INLINE bool all(const exec_mask& e) { return _mm_movemask_ps(_mm_castsi128_ps(e.m_mask)) == ALL_ON_MOVEMASK; }
1379CPPSPMD_FORCE_INLINE bool any(const exec_mask& e) { return _mm_movemask_ps(_mm_castsi128_ps(e.m_mask)) != 0; }
1380
1381// Bad pattern - doesn't factor in the current exec mask. Prefer spmd_any() instead.

Callers 1

spmd_allMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected