MCPcopy Create free account
hub / github.com/defold/defold / spmd_ternaryf

Function spmd_ternaryf

engine/dlib/src/basis/encoder/cppspmd_sse.h:1431–1431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1429CPPSPMD_FORCE_INLINE vbool operator>=(const vfloat& a, float b) { return a >= vfloat(b); }
1430
1431CPPSPMD_FORCE_INLINE vfloat spmd_ternaryf(const vbool& cond, const vfloat& a, const vfloat& b) { return vfloat{ blendv_mask_ps(b.m_value, a.m_value, _mm_castsi128_ps(cond.m_value)) }; }
1432CPPSPMD_FORCE_INLINE vint spmd_ternaryi(const vbool& cond, const vint& a, const vint& b) { return vint{ blendv_mask_epi32(b.m_value, a.m_value, cond.m_value) }; }
1433
1434CPPSPMD_FORCE_INLINE vfloat sqrt(const vfloat& v) { return vfloat{ _mm_sqrt_ps(v.m_value) }; }

Callers 10

fmod_invFunction · 0.85
safe_divFunction · 0.85
exp2_estMethod · 0.85
recip_est1Method · 0.85
recip_est1_pnMethod · 0.85
atan2_estMethod · 0.85
CPPSPMD_DECLFunction · 0.85
get_randfMethod · 0.85
fmodFunction · 0.85
signFunction · 0.85

Calls 1

blendv_mask_psFunction · 0.85

Tested by

no test coverage detected