Skip to content
Discussion options

You must be logged in to vote

This is a real bug in V4U16CompareGt() in physx/include/foundation/PxVecMathSSE.h: it reaches into VecU16V (which is just __m128) via a .m128_u16 union member that only exists in the MSVC/Unix headers, not for clang-cl's generic <xmmintrin.h> handling of __m128. So it breaks specifically for clang-cl builds on Windows going through the SSE path.

Good news: this is already fixed upstream. Commit 3ca45ad3 ("update ovphysx 0.5.10", 2026-08-07, tag ovphysx-0.5.10) rewrote V4U16CompareGt to avoid the union entirely:

// unsigned compares are not supported on x86
PX_FORCE_INLINE VecU16V V4U16CompareGt(VecU16V a, VecU16V b)
{
	const PxU16 signMask = 0x8000;
	const __m128i signBit = _mm_set1_epi16(P…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Niyll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants