Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPUs.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

ssef constructor question

P_V__Hariprasad
Beginner
170 Views

Sory, don't undestand much SSE, but why this constructor was commented:

__forceinline ssef           ( float  a ) : m128(_mm_set1_ps(a)) {}

and now this one is used:

__forceinline ssef           ( const float&  a ) : m128(_mm_castsi128_ps(_mm_shuffle_epi32(_mm_castps_si128(_mm_load_ss(&a)), _MM_SHUFFLE(0, 0, 0, 0)))) {}

The other constructors are still using _mm_set_ps(). 

0 Kudos
0 Replies
Reply