Skip to content

Commit 216f700

Browse files
committed
More code review
1 parent e895f41 commit 216f700

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

Inc/DirectXPackedVector.inl

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2747,10 +2747,10 @@ inline void XM_CALLCONV XMStoreFloat3SE
27472747
#endif
27482748

27492749
// Extract and pack into bitfields
2750-
pDestination->v = (vgetq_lane_u32(ints, 0) & 0x1FF)
2751-
| ((vgetq_lane_u32(ints, 1) & 0x1FF) << 9)
2752-
| ((vgetq_lane_u32(ints, 2) & 0x1FF) << 18)
2753-
| ((exp - 0x6f) << 27);
2750+
pDestination->xm = vgetq_lane_u32(ints, 0) & 0x1FF;
2751+
pDestination->ym = vgetq_lane_u32(ints, 1) & 0x1FF;
2752+
pDestination->zm = vgetq_lane_u32(ints, 2) & 0x1FF;
2753+
pDestination->e = exp - 0x6f;
27542754

27552755
#elif defined(_XM_SSE_INTRINSICS_)
27562756

@@ -2787,11 +2787,10 @@ inline void XM_CALLCONV XMStoreFloat3SE
27872787
XM_ALIGNED_DATA(16) uint32_t ivals[4];
27882788
_mm_store_si128(reinterpret_cast<__m128i*>(ivals), ints);
27892789

2790-
pDestination->v = (ivals[0] & 0x1FF)
2791-
| ((ivals[1] & 0x1FF) << 9)
2792-
| ((ivals[2] & 0x1FF) << 18)
2793-
| ((exp - 0x6f) << 27);
2794-
2790+
pDestination->xm = ivals[0] & 0x1FF;
2791+
pDestination->ym = ivals[1] & 0x1FF;
2792+
pDestination->zm = ivals[2] & 0x1FF;
2793+
pDestination->e = exp - 0x6f;
27952794
#endif
27962795
}
27972796

0 commit comments

Comments
 (0)