Add function attributes to cmp_memcpy.

This commit is contained in:
Roz K 2023-01-06 17:03:21 +01:00
parent 9181d58ecd
commit 16c7c91508
Signed by: roz
GPG Key ID: 51FBF4E483E1C822
1 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,8 @@
#include "../types.hpp"
template<typename _small>
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<typename _big, typename _small>
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<typename _small>
[[RK_HOT, RK_FAST, RK_FLATTEN]]
bool rk_cmp_memcpy(
_small * const __restrict _dst,
_small const * const __restrict _src,