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

Function v_exp

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

natural exponent

Source from the content-addressed store, hash-verified

2792VECTORCALL VECMATH_FINLINE vec4f v_log(vec4f x){return v_mul(v_log2_est_p5(x), v_splats(0.6931471805599453f));}
2793//natural exponent
2794VECTORCALL VECMATH_FINLINE vec4f v_exp(vec4f x){return v_exp2(v_mul(x, v_splats(1.4426950408889634073599f)));}//log2(e)
2795//safer pow. checks for y == 0
2796VECTORCALL VECMATH_FINLINE vec4f v_pow(vec4f x, vec4f y)
2797{

Callers 2

ExpMethod · 0.85
ExpMethod · 0.85

Calls 3

v_exp2Function · 0.85
v_mulFunction · 0.70
v_splatsFunction · 0.70

Tested by

no test coverage detected