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

Function v_mod

include/vecmath/dag_vecMath_common.h:153–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153VECTORCALL VECMATH_FINLINE vec4f v_mod(vec4f a, vec4f aDiv)
154{
155 vec4f c = v_div(a, aDiv);
156 vec4f cTrunc = v_cvt_vec4f(v_cvt_vec4i(c));
157 vec4f base = v_mul(cTrunc, aDiv);
158 vec4f r = v_sub(a, base);
159 return r;
160}
161
162VECTORCALL VECMATH_FINLINE vec4f v_lerp_vec4f(vec4f tttt, vec4f a, vec4f b)
163{

Callers 2

ModMethod · 0.85
SetModMethod · 0.85

Calls 5

v_cvt_vec4fFunction · 0.85
v_cvt_vec4iFunction · 0.85
v_divFunction · 0.70
v_mulFunction · 0.70
v_subFunction · 0.70

Tested by

no test coverage detected