OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-alpha/] [string.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1632 jcastillo
#ifndef __ALPHA_STRING_H__
2
#define __ALPHA_STRING_H__
3
 
4
#ifdef __KERNEL__
5
 
6
extern void * __constant_c_memset(void *, unsigned long, long);
7
extern void * __memset(void *, char, size_t);
8
 
9
/*
10
 * Ugh. Gcc uses "bcopy()" internally for structure assignments.
11
 */
12
#define __HAVE_ARCH_BCOPY
13
 
14
/*
15
 * Define "memcpy()" to something else, otherwise gcc will
16
 * corrupt that too into a "bcopy".  Also, some day we might
17
 * want to do a separate inlined constant-size memcpy (for 8
18
 * and 16 byte user<->kernel structure copying).
19
 */
20
#define __HAVE_ARCH_MEMCPY
21
extern void * __memcpy(void *, const void *, size_t);
22
#define memcpy __memcpy
23
 
24
#define __HAVE_ARCH_MEMSET
25
#define memset(s, c, count) \
26
(__builtin_constant_p(c) ? \
27
 __constant_c_memset((s),(0x0101010101010101UL*(unsigned char)c),(count)) : \
28
 __memset((s),(c),(count)))
29
 
30
#define __HAVE_ARCH_STRLEN
31
 
32
#endif /* __KERNEL__ */
33
 
34
#endif /* __ALPHA_STRING_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.