From 14c0793140391a58c137a7a7394290a82ea0d1c8 Mon Sep 17 00:00:00 2001 From: Kim Walisch Date: Mon, 11 Nov 2024 18:46:37 +0100 Subject: [PATCH] ALWAYS_INLINE function --- src/PreSieve.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/PreSieve.cpp b/src/PreSieve.cpp index 886f4795..40dd8b06 100644 --- a/src/PreSieve.cpp +++ b/src/PreSieve.cpp @@ -321,12 +321,12 @@ void AND_PreSieveTables_Sieve_default(const uint8_t* __restrict preSieved0, #endif #endif -void AND_PreSieveTables(const uint8_t* __restrict preSieved0, - const uint8_t* __restrict preSieved1, - const uint8_t* __restrict preSieved2, - const uint8_t* __restrict preSieved3, - uint8_t* __restrict sieve, - std::size_t bytes) +ALWAYS_INLINE void AND_PreSieveTables(const uint8_t* __restrict preSieved0, + const uint8_t* __restrict preSieved1, + const uint8_t* __restrict preSieved2, + const uint8_t* __restrict preSieved3, + uint8_t* __restrict sieve, + std::size_t bytes) { #if defined(ENABLE_ARM_SVE) AND_PreSieveTables_arm_sve(preSieved0, preSieved1, preSieved2, preSieved3, sieve, bytes); @@ -352,12 +352,12 @@ void AND_PreSieveTables(const uint8_t* __restrict preSieved0, #endif } -void AND_PreSieveTables_Sieve(const uint8_t* __restrict preSieved0, - const uint8_t* __restrict preSieved1, - const uint8_t* __restrict preSieved2, - const uint8_t* __restrict preSieved3, - uint8_t* __restrict sieve, - std::size_t bytes) +ALWAYS_INLINE void AND_PreSieveTables_Sieve(const uint8_t* __restrict preSieved0, + const uint8_t* __restrict preSieved1, + const uint8_t* __restrict preSieved2, + const uint8_t* __restrict preSieved3, + uint8_t* __restrict sieve, + std::size_t bytes) { #if defined(ENABLE_ARM_SVE) AND_PreSieveTables_Sieve_arm_sve(preSieved0, preSieved1, preSieved2, preSieved3, sieve, bytes);