Fix warning with OneAPI compiler and AVX512
authorRoland Schulz <roland.schulz@intel.com>
Fri, 23 Oct 2020 17:59:00 +0000 (10:59 -0700)
committerRoland Schulz <roland.schulz@intel.com>
Fri, 23 Oct 2020 18:00:57 +0000 (11:00 -0700)
Also improves consistentcy because other SIMD functions
are declared as `static inline`.

src/gromacs/simd/impl_x86_avx_512/impl_x86_avx_512_util_double.h
src/gromacs/simd/impl_x86_avx_512/impl_x86_avx_512_util_float.h

index 15b05d7848d469188e70492a1546bbb9c605f90f..dac65b097816f658f7b1b4b4ccca6b47c8215172 100644 (file)
@@ -60,7 +60,7 @@ namespace
 // shifting. Currently up to 8 is accelerated. Could be accelerated for any
 // number with a constexpr log2 function.
 template<int n>
-SimdDInt32 fastMultiply(SimdDInt32 x)
+static inline SimdDInt32 fastMultiply(SimdDInt32 x)
 {
     if (n == 2)
     {
index 99daabee6fcc265daebe4d2c7fa4b3a7850b1695..8c3f9621a1f123ec28bf99a5a872deb34f620223 100644 (file)
@@ -60,7 +60,7 @@ namespace
 // shifting. Currently up to 8 is accelerated. Could be accelerated for any
 // number with a constexpr log2 function.
 template<int n>
-SimdFInt32 fastMultiply(SimdFInt32 x)
+static inline SimdFInt32 fastMultiply(SimdFInt32 x)
 {
     if (n == 2)
     {