sse2: fix portable cast functions in C++ mode
@@ -818,7 +818,7 @@ simde_mm_castps_si128 (simde__m128 a) {
#elif defined(SIMDE_SSE2_NEON)
r.neon_i32 = a.neon_i32;
#else
- r = HEDLEY_REINTERPRET_CAST(simde__m128i, a);
+ r = *((simde__m128i*) &a);
#endif
return r;
@@ -835,7 +835,7 @@ simde_mm_castsi128_pd (simde__m128i a) {
#if defined(SIMDE_SSE2_NATIVE)
return SIMDE__M128D_FROM_NATIVE(_mm_castsi128_pd(a.n));
#else
- r = HEDLEY_REINTERPRET_CAST(simde__m128d, a);
+ r = *((simde__m128d*) &a);
#endif
return r;
@@ -854,7 +854,7 @@ simde_mm_castsi128_ps (simde__m128i a) {
#elif defined(SIMDE_SSE2_NEON)
r.neon_f32 = a.neon_f32;
#else
- r = HEDLEY_REINTERPRET_CAST(simde__m128, a);
+ r = *((simde__m128*) &a);
#endif
return r;
