Closed walbourn closed 4 years ago
_Use_decl_annotations_ inline void XM_CALLCONV XMStoreByteN4 ( XMBYTEN4* pDestination, FXMVECTOR V ) { assert(pDestination); #if defined(_XM_NO_INTRINSICS_) XMVECTOR N = XMVectorClamp(V, g_XMNegativeOne.v, g_XMOne.v); N = XMVectorMultiply(V, g_ByteMax); N = XMVectorTruncate(N); XMFLOAT4A tmp; XMStoreFloat4A(&tmp, N ); pDestination->x = static_cast<int8_t>(tmp.x); pDestination->y = static_cast<int8_t>(tmp.y); pDestination->z = static_cast<int8_t>(tmp.z); pDestination->w = static_cast<int8_t>(tmp.w); #elif defined(_XM_ARM_NEON_INTRINSICS_)
should be:
XMVECTOR N = XMVectorClamp(V, g_XMNegativeOne.v, g_XMOne.v); N = XMVectorMultiply(N, g_ByteMax); N = XMVectorTruncate(N);
Fixed in this commit
should be: