1 /* SPDX-License-Identifier: BSD-3-Clause 2 * 3 * Copyright(c) 2018 Intel Corporation. All rights reserved. 4 * 5 * Author: Liam Girdwood <liam.r.girdwood@linux.intel.com> 6 */ 7 8 #ifndef __XTOS_RTOS_STRING_H__ 9 #define __XTOS_RTOS_STRING_H__ 10 11 #include <arch/string.h> 12 #include <stddef.h> 13 14 /* C memcpy for arch that don't have arch_memcpy() */ 15 void cmemcpy(void *dest, void *src, size_t size); 16 int memcmp(const void *p, const void *q, size_t count); 17 int rstrlen(const char *s); 18 int rstrcmp(const char *s1, const char *s2); 19 20 #if defined(arch_memcpy) 21 #define rmemcpy(dest, src, size) \ 22 arch_memcpy(dest, src, size) 23 #else 24 #define rmemcpy(dest, src, size) \ 25 cmemcpy(dest, src, size) 26 #endif 27 28 #endif /* __XTOS_RTOS_STRING_H__ */ 29