From c17debf2d51731ed345829b1fadadd2f18240b35 Mon Sep 17 00:00:00 2001 From: Alfred Klomp Date: Sat, 13 Jan 2024 14:26:18 +0100 Subject: [PATCH] avx512: apply BASE64_FORCE_INLINE keyword --- lib/arch/avx512/enc_loop.c | 4 ++-- lib/arch/avx512/enc_reshuffle_translate.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/arch/avx512/enc_loop.c b/lib/arch/avx512/enc_loop.c index 4c71e160..c15d2cc4 100644 --- a/lib/arch/avx512/enc_loop.c +++ b/lib/arch/avx512/enc_loop.c @@ -1,4 +1,4 @@ -static inline void +BASE64_FORCE_INLINE void enc_loop_avx512_inner (const uint8_t **s, uint8_t **o) { // Load input. @@ -12,7 +12,7 @@ enc_loop_avx512_inner (const uint8_t **s, uint8_t **o) *o += 64; } -static inline void +BASE64_FORCE_INLINE void enc_loop_avx512 (const uint8_t **s, size_t *slen, uint8_t **o, size_t *olen) { if (*slen < 64) { diff --git a/lib/arch/avx512/enc_reshuffle_translate.c b/lib/arch/avx512/enc_reshuffle_translate.c index 5c332bb2..4085fa6f 100644 --- a/lib/arch/avx512/enc_reshuffle_translate.c +++ b/lib/arch/avx512/enc_reshuffle_translate.c @@ -1,7 +1,7 @@ // AVX512 algorithm is based on permutevar and multishift. The code is based on // https://github.com/WojciechMula/base64simd which is under BSD-2 license. -static inline __m512i +BASE64_FORCE_INLINE __m512i enc_reshuffle_translate (const __m512i input) { // 32-bit input