--- 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);