Skip to content

Commit

Permalink
Fix for __m128i component access warning under gcc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbikker committed Nov 1, 2024
1 parent d36c21e commit 9879b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiny_bvh.h
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ void BVH::Build( const bvhvec4* vertices, const unsigned int primCount )
#define ILANE(a,b) a.m128i_i32[b]
#else
#define LANE(a,b) a[b]
#define ILANE(a,b) a[b]
#define ILANE(a,b) ((int*)&a)[b] // compiler should handle this, make sure it does
#endif
inline float halfArea( const __m128 a /* a contains extent of aabb */ )
{
Expand Down

0 comments on commit 9879b5c

Please sign in to comment.