2019-06-02 03:14:06 +08:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
2018-04-03 21:57:17 +08:00
|
|
|
*
|
2019-06-02 03:14:06 +08:00
|
|
|
* Copyright(c) 2018 Intel Corporation. All rights reserved.
|
2018-04-03 21:57:17 +08:00
|
|
|
*
|
|
|
|
* Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
|
|
|
|
*/
|
|
|
|
|
2022-08-29 19:15:05 +08:00
|
|
|
#ifndef __XTOS_RTOS_STRING_H__
|
|
|
|
#define __XTOS_RTOS_STRING_H__
|
2018-04-03 21:57:17 +08:00
|
|
|
|
|
|
|
#include <arch/string.h>
|
2019-07-15 17:27:29 +08:00
|
|
|
#include <stddef.h>
|
2018-04-03 21:57:17 +08:00
|
|
|
|
|
|
|
/* C memcpy for arch that don't have arch_memcpy() */
|
|
|
|
void cmemcpy(void *dest, void *src, size_t size);
|
2020-05-29 14:15:43 +08:00
|
|
|
int memcmp(const void *p, const void *q, size_t count);
|
2019-03-12 21:39:37 +08:00
|
|
|
int rstrlen(const char *s);
|
|
|
|
int rstrcmp(const char *s1, const char *s2);
|
2018-04-03 21:57:17 +08:00
|
|
|
|
|
|
|
#if defined(arch_memcpy)
|
|
|
|
#define rmemcpy(dest, src, size) \
|
|
|
|
arch_memcpy(dest, src, size)
|
|
|
|
#else
|
|
|
|
#define rmemcpy(dest, src, size) \
|
|
|
|
cmemcpy(dest, src, size)
|
|
|
|
#endif
|
|
|
|
|
2022-08-29 19:15:05 +08:00
|
|
|
#endif /* __XTOS_RTOS_STRING_H__ */
|