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

Function v_midp

include/vecmath/dag_vecMath_common.h:226–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224 return v_mul_x(a, a);
225}
226VECTORCALL VECMATH_FINLINE vec4f v_midp(vec4f a, vec4f b)
227{
228 return v_mul(v_add(a, b), V_C_HALF);
229}
230
231VECTORCALL VECMATH_FINLINE vec4f v_perm_xxxx(vec4f a) { return v_splat_x(a); }
232VECTORCALL VECMATH_FINLINE vec4f v_perm_yyyy(vec4f a) { return v_splat_y(a); }

Callers

nothing calls this directly

Calls 2

v_mulFunction · 0.70
v_addFunction · 0.70

Tested by

no test coverage detected