From d449bc768c9ae12d1cc4c86914afdb9c69ffc704 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Tue, 5 Oct 2021 00:31:21 +0100 Subject: [PATCH] Add definition for forcing inlining. --- library.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library.h b/library.h index ab0edf8..ebbe48d 100644 --- a/library.h +++ b/library.h @@ -27,4 +27,12 @@ #endif #endif +#ifdef _MSC_VER +#define FORCE_INLINE static inline +#else +#define FORCE_INLINE static inline __attribute__((always_inline)) +#endif + +#include "simd.h" + #endif // AARU_CHECKSUMS_NATIVE_LIBRARY_H