mirror of
https://github.com/g-truc/glm.git
synced 2025-04-10 23:31:51 +00:00
gna
This commit is contained in:
parent
712f27f768
commit
cd8f3d2814
1 changed files with 20 additions and 0 deletions
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue