forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstring.h
More file actions
28 lines (23 loc) · 698 Bytes
/
string.h
File metadata and controls
28 lines (23 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2018 Intel Corporation. All rights reserved.
*
* Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
*/
#ifndef __SOF_STRING_H__
#define __SOF_STRING_H__
#include <arch/string.h>
#include <stddef.h>
/* C memcpy for arch that don't have arch_memcpy() */
void cmemcpy(void *dest, void *src, size_t size);
int memcmp(const void *p, const void *q, size_t count);
int rstrlen(const char *s);
int rstrcmp(const char *s1, const char *s2);
#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
#endif /* __SOF_STRING_H__ */