Skip to content
Snippets Groups Projects
Commit 246a3d83 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Oops. Forgot to change this to the wrapper call.

parent b9ef2732
No related branches found
No related tags found
No related merge requests found
......@@ -138,8 +138,8 @@ class LL_COMMON_API LLUUID
bool operator<(const LLUUID& rhs) const
{
__m128i mm_left = _mm_lddqu_si128(reinterpret_cast<const __m128i*>(mData));
__m128i mm_right = _mm_lddqu_si128(reinterpret_cast<const __m128i*>(rhs.mData));
__m128i mm_left = load_unaligned_si128(mData);
__m128i mm_right = load_unaligned_si128(rhs.mData);
// To emulate lexicographical_compare behavior we have to perform two comparisons - the forward and reverse one.
// Then we know which bytes are equivalent and which ones are different, and for those different the comparison results
......
......@@ -79,8 +79,8 @@ class LLMaterialID
bool operator<(const LLMaterialID& rhs) const
{
__m128i mm_left = _mm_lddqu_si128(reinterpret_cast<const __m128i*>(mID));
__m128i mm_right = _mm_lddqu_si128(reinterpret_cast<const __m128i*>(rhs.mID));
__m128i mm_left = load_unaligned_si128(mID);
__m128i mm_right = load_unaligned_si128(rhs.mID);
// To emulate lexicographical_compare behavior we have to perform two comparisons - the forward and reverse one.
// Then we know which bytes are equivalent and which ones are different, and for those different the comparison results
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment