Skip to content

Commit f7096a7

Browse files
DiamonDinoiaJetBrains
andcommitted
Fixes XSIMD_INLINE for compilers that don't have always_inline
Small fix for compiler (and linters) that do not have the attribute always_inline. This avoids a cascade of false positives. Co-authored-by: JetBrains <contact@jetbrains.com> Co-authored-by: Marco Barbone <mbarbone@flatironinstitute.org>
1 parent e808799 commit f7096a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/xsimd/config/xsimd_inline.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#elif defined __has_attribute
1818
#if __has_attribute(always_inline)
1919
#define XSIMD_INLINE inline __attribute__((always_inline))
20+
#else
21+
#define XSIMD_INLINE inline
2022
#endif
2123
#elif defined(_MSC_VER)
2224
#define XSIMD_INLINE inline __forceinline

0 commit comments

Comments
 (0)