Add function attributes to cmp_memcpy.
This commit is contained in:
parent
9181d58ecd
commit
16c7c91508
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user