Skip to content

Commit

Permalink
gna
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-lunarg committed Jan 18, 2024
1 parent 712f27f commit cd8f3d2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/gtc/gtc_bitfield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,17 @@ namespace bitfieldInterleave

__m128i Result;
_mm_store_si128(&Result, Reg1);

#if GLM_COMPILER & GLM_COMPILER_CLANG
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wundefined-reinterpret-cast"
#endif

return *reinterpret_cast<glm::uint64*>(&Result);

#if GLM_COMPILER & GLM_COMPILER_CLANG
# pragma clang diagnostic pop
#endif
}

static inline glm::uint64 sseUnalignedBitfieldInterleave(glm::uint32 x, glm::uint32 y)
Expand Down Expand Up @@ -468,7 +478,17 @@ namespace bitfieldInterleave

__m128i Result;
_mm_store_si128(&Result, Reg1);

#if GLM_COMPILER & GLM_COMPILER_CLANG
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wundefined-reinterpret-cast"
#endif

return *reinterpret_cast<glm::uint64*>(&Result);

#if GLM_COMPILER & GLM_COMPILER_CLANG
# pragma clang diagnostic pop
#endif
}
#endif//GLM_ARCH & GLM_ARCH_SSE2_BIT

Expand Down

0 comments on commit cd8f3d2

Please sign in to comment.