Skip to content

Commit 41db7ff

Browse files
jdumasCopilot
authored andcommitted
🐛 Restore explicit SIMD mask accessors for Emscripten
Keep m128i() and m128d() available when compiling with Emscripten. SSE2 equality, shuffle, and masked integer loads call the explicit accessors regardless of platform. Continue excluding the implicit integer and double conversion operators for Emscripten, and leave the MSVC ARM64 path unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0bc1f5c commit 41db7ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎common/simd/vboolf4_sse2.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ namespace embree
5858
#if !defined(__EMSCRIPTEN__)
5959
__forceinline operator const __m128i() const { return _mm_castps_si128(v); }
6060
__forceinline operator const __m128d() const { return _mm_castps_pd(v); }
61+
#endif
6162
/* kept for source compatibility with code that calls .m128i()/.m128d() explicitly */
6263
__forceinline const __m128i m128i() const { return _mm_castps_si128(v); }
6364
__forceinline const __m128d m128d() const { return _mm_castps_pd(v); }
64-
#endif
6565
#endif
6666

6767
__forceinline vboolf(bool a)

0 commit comments

Comments
 (0)