// Copyright 2019 Google LLC // SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // 128-bit vectors and SSE4 instructions, plus some AVX2 and AVX512-VL // operations when compiling for those targets. // External include guard in highway.h - see comment there. // Must come before HWY_DIAGNOSTICS and HWY_COMPILER_GCC_ACTUAL #include "hwy/base.h" // Avoid uninitialized warnings in GCC's emmintrin.h - see // https://github.com/google/highway/issues/710 and pull/902 HWY_DIAGNOSTICS(…) #if HWY_COMPILER_GCC_ACTUAL HWY_DIAGNOSTICS_OFF(disable : 4700, ignored "-Wuninitialized") HWY_DIAGNOSTICS_OFF(disable : 4701 4703 6001 26494, ignored "-Wmaybe-uninitialized") #endif #include <emmintrin.h> #include <stdio.h> #if HWY_TARGET == HWY_SSSE3 #include <tmmintrin.h> // SSSE3 #elif HWY_TARGET <= HWY_SSE4 #include <smmintrin.h> // SSE4 #ifndef HWY_DISABLE_PCLMUL_AES #include <wmmintrin.h> // CLMUL #endif #endif #include "hwy/ops/shared-inl.h" HWY_BEFORE_NAMESPACE(…); namespace hwy { N_SSSE3HWY_AFTER_NAMESPACE(…)#undef HWY_X86_IF_EMULATED_DHWY_DIAGNOSTICS(…)