From 16c7c9150853d658e494f16fdcfe2bcd0cb32b50 Mon Sep 17 00:00:00 2001 From: Roz K Date: Fri, 6 Jan 2023 17:03:21 +0100 Subject: [PATCH] Add function attributes to cmp_memcpy. --- cpp/utils/cmp_memcpy.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cpp/utils/cmp_memcpy.hpp b/cpp/utils/cmp_memcpy.hpp index a1fc329..d784c0c 100644 --- a/cpp/utils/cmp_memcpy.hpp +++ b/cpp/utils/cmp_memcpy.hpp @@ -19,7 +19,8 @@ #include "../types.hpp" template -bool _rk_cmp_memcpy_small( +[[RK_FAST]] +inline bool _rk_cmp_memcpy_small( _small * __restrict dst, _small const * __restrict src, unsigned count) { @@ -32,7 +33,8 @@ bool _rk_cmp_memcpy_small( } template -bool _rk_cmp_memcpy_big( +[[RK_FAST, RK_FLATTEN]] +inline bool _rk_cmp_memcpy_big( _small * const __restrict _dst, _small const * const __restrict _src, unsigned const _count) { @@ -61,6 +63,7 @@ bool _rk_cmp_memcpy_big( #endif template +[[RK_HOT, RK_FAST, RK_FLATTEN]] bool rk_cmp_memcpy( _small * const __restrict _dst, _small const * const __restrict _src,