0
mongodb-docker/0003-Disabled_AVX_in_mozjs_SIMD.patch

20 lines
665 B
Diff

--- a/src/third_party/mozjs/extract/mozglue/misc/SIMD.cpp
+++ b/src/third_party/mozjs/extract/mozglue/misc/SIMD.cpp
@@ -448,16 +448,8 @@
// assertion failure. Accordingly, we just don't allow that to happen. We
// are not particularly concerned about ensuring that newer 32 bit processors
// get access to the AVX2 functions exposed here.
-# if defined(MOZILLA_MAY_SUPPORT_AVX2) && defined(__x86_64__)
-
-bool SupportsAVX2() { return supports_avx2(); }
-
-# else
-
bool SupportsAVX2() { return false; }
-# endif
-
const char* SIMD::memchr8(const char* ptr, char value, size_t length) {
if (SupportsAVX2()) {
return memchr8AVX2(ptr, value, length);