zephyr: lib: memcpy should use zephyr version.

Also applies to host library.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2020-08-10 15:37:08 +01:00 committed by Liam Girdwood
parent d2076ce45c
commit b25922023e
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ int memset_s(void *dest, size_t dest_size, int data, size_t count)
return arch_memset_s(dest, dest_size, data, count);
}
#if !CONFIG_LIBRARY && !__ZEPHYR__
int memcmp(const void *p, const void *q, size_t count)
{
uint8_t *s1 = (uint8_t *)p;
@ -57,6 +58,7 @@ int memcmp(const void *p, const void *q, size_t count)
}
return 0;
}
#endif
/* generic strlen - TODO: can be optimsed for ARCH ? */
int rstrlen(const char *s)