MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / SetMod

Method SetMod

include/daScript/simulate/sim_policy.h:389–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387 *pa = cast<TT>::to ( v_mul(cast<TT>::from(*pa), b));
388 }
389 static __forceinline void SetMod ( char * a, vec4f b, Context &, LineInfo * ) {
390 TT * pa = (TT *)a;
391 *pa = cast<TT>::to ( v_mod(cast<TT>::from(*pa), b));
392 }
393 // vector-scalar
394 static __forceinline vec4f DivVecScal ( vec4f a, vec4f b, Context &, LineInfo * ) {
395 return v_div(a,v_splat_x(b));

Callers

nothing calls this directly

Calls 2

toFunction · 0.85
v_modFunction · 0.85

Tested by

no test coverage detected