MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / mod_epi32

Function mod_epi32

Source/ThirdParty/basis_universal/encoder/cppspmd_sse.h:1729–1735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1727}
1728
1729CPPSPMD_FORCE_INLINE vint mod_epi32(const vint &a, const vint& b)
1730{
1731 vint aa = abs(a), ab = abs(b);
1732 vint q = div_epi32(aa, ab);
1733 vint r = aa - q * ab;
1734 return spmd_ternaryi(a < 0, -r, r);
1735}
1736
1737CPPSPMD_FORCE_INLINE vint operator/ (const vint& a, const vint& b)
1738{

Callers 1

operator%Function · 0.85

Calls 3

div_epi32Function · 0.85
spmd_ternaryiFunction · 0.85
absFunction · 0.70

Tested by

no test coverage detected