forked from pool/MozillaFirefox
64f10b5910
Mozilla Firefox 105.0.2 OBS-URL: https://build.opensuse.org/request/show/1008280 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=1004
27 lines
830 B
Diff
27 lines
830 B
Diff
# HG changeset patch
|
|
# User Wolfgang Rosenauer <wr@rosenauer.org>
|
|
# Parent 265eaf654a30dd08d5d35428fde308ccdb6142ec
|
|
|
|
diff --git a/mozglue/misc/SIMD_avx2.cpp b/mozglue/misc/SIMD_avx2.cpp
|
|
--- a/mozglue/misc/SIMD_avx2.cpp
|
|
+++ b/mozglue/misc/SIMD_avx2.cpp
|
|
@@ -50,17 +50,17 @@ template <typename TValue>
|
|
}
|
|
if (sizeof(TValue) == 2) {
|
|
return _mm256_cmpeq_epi16(a, b);
|
|
}
|
|
|
|
return _mm256_cmpeq_epi64(a, b);
|
|
}
|
|
|
|
-# if defined(__GNUC__) && !defined(__clang__)
|
|
+# if 0
|
|
|
|
// See the comment in SIMD.cpp over Load32BitsIntoXMM. This is just adapted
|
|
// from that workaround. Testing this, it also yields the correct instructions
|
|
// across all tested compilers.
|
|
__m128i Load64BitsIntoXMM(uintptr_t ptr) {
|
|
int64_t tmp;
|
|
memcpy(&tmp, reinterpret_cast<const void*>(ptr), sizeof(tmp));
|
|
return _mm_cvtsi64_si128(tmp);
|