Computes the base two logarithm of each component of a vector. XMVectorLog is a compatibility alias for this function.
XMVECTOR XMVectorLog2(
XMVECTOR V
)
V
Type: XMVECTOR
Vector for which to compute the base two logarithm.
Type: XMVECTOR
Returns a vector whose components are base two logarithm of the corresponding components of V.
The following pseudocode shows how this function is implemented.
XMVECTOR Result;
Result.x = logf(V.x) / logf(2);
Result.y = logf(V.y) / logf(2);
Result.z = logf(V.z) / logf(2);
Result.w = logf(V.w) / logf(2);
return Result;
Header: Declared in directxmath.h.