Skip to content

Commit

Permalink
Mark SLEEF_ALWAYS_INLINE as always_inline (shibatch#537)
Browse files Browse the repository at this point in the history
* Mark SLEEF_ALWAYS_INLINE as always_inline

@co-authored-by: Hamlin Li <[email protected]>
  • Loading branch information
luhenry authored Apr 26, 2024
1 parent 945a7ef commit 492a2fa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libm/sleefinline_header.h.org
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/quad/sleefquadinline_header.h.org
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 492a2fa

Please sign in to comment.