Quellcode durchsuchen

Replace _mm_broadcast_ss with _mm_set_ps1 for sse3

Dhairya Malhotra vor 10 Jahren
Ursprung
Commit
10190106b9
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      include/intrin_wrapper.hpp

+ 1 - 1
include/intrin_wrapper.hpp

@@ -118,7 +118,7 @@ inline __m128d load_intrin(double const* a){
 
 template <>
 inline __m128 bcast_intrin(float const* a){
-  return _mm_broadcast_ss((float*)a);
+  return _mm_set_ps1(a[0]);
 }
 
 template <>