From 492a2fa49b44f852ee870655c5ecdc4706f97aab Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Fri, 26 Apr 2024 10:06:30 +0200 Subject: [PATCH] Mark SLEEF_ALWAYS_INLINE as always_inline (#537) * Mark SLEEF_ALWAYS_INLINE as always_inline @Co-Authored-By: Hamlin Li --- src/libm/sleefinline_header.h.org | 6 ++++++ src/quad/sleefquadinline_header.h.org | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/libm/sleefinline_header.h.org b/src/libm/sleefinline_header.h.org index 1e15c26f..a2cb471e 100644 --- a/src/libm/sleefinline_header.h.org +++ b/src/libm/sleefinline_header.h.org @@ -5,8 +5,14 @@ // This file is generated by SLEEF SLEEF_VERSION_SLEEF #ifndef SLEEF_ALWAYS_INLINE +#if defined (__GNUC__) || defined (__clang__) || defined(__INTEL_COMPILER) +#define SLEEF_ALWAYS_INLINE inline __attribute__((always_inline)) +#elif defined(_MSC_VER) +#define SLEEF_ALWAYS_INLINE inline __forceinline +#else #define SLEEF_ALWAYS_INLINE inline #endif +#endif #ifndef SLEEF_INLINE #define SLEEF_INLINE static inline diff --git a/src/quad/sleefquadinline_header.h.org b/src/quad/sleefquadinline_header.h.org index d9a95795..5341d769 100644 --- a/src/quad/sleefquadinline_header.h.org +++ b/src/quad/sleefquadinline_header.h.org @@ -5,8 +5,14 @@ // This file is generated by SLEEF SLEEF_VERSION_SLEEF #ifndef SLEEF_ALWAYS_INLINE +#if defined (__GNUC__) || defined (__clang__) || defined(__INTEL_COMPILER) +#define SLEEF_ALWAYS_INLINE inline __attribute__((always_inline)) +#elif defined(_MSC_VER) +#define SLEEF_ALWAYS_INLINE inline __forceinline +#else #define SLEEF_ALWAYS_INLINE inline #endif +#endif #ifndef SLEEF_INLINE #define SLEEF_INLINE static inline