zephyr: rtos: Add __vec_memcpy / __vec_memset

libc used by Zephyr does not provide implementation for
__vec_memcpy / __vec_memset so add them here.

Fixes c90055f2f5 ("header: rtos: use rtos specific version of string.h")
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
Daniel Baluta 2022-11-10 11:33:51 +02:00 committed by Daniel Baluta
parent b553e529ee
commit d9aed376d5
1 changed files with 10 additions and 0 deletions

View File

@ -63,6 +63,16 @@ static inline int memset_s(void *dest, size_t dest_size, int data, size_t count)
return 0;
}
static inline void *__vec_memcpy(void *dst, const void *src, size_t len)
{
return memcpy(dst, src, len);
}
static inline void *__vec_memset(void *dest, int data, size_t src_size)
{
return memset(dest, data, src_size);
}
#ifdef __cplusplus
} /* extern "C" */
#endif