Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
linux
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
1
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
a47e5bb
Documentation
arch
alpha
boot
include
asm
Kbuild
a.out-core.h
a.out.h
agp.h
agp_backend.h
asm-offsets.h
atomic.h
barrier.h
bitops.h
bug.h
bugs.h
cache.h
cacheflush.h
checksum.h
cmpxchg.h
compiler.h
console.h
core_apecs.h
core_cia.h
core_irongate.h
core_lca.h
core_marvel.h
core_mcpcia.h
core_polaris.h
core_t2.h
core_titan.h
core_tsunami.h
core_wildfire.h
cputime.h
current.h
delay.h
device.h
div64.h
dma-mapping.h
dma.h
elf.h
emergency-restart.h
err_common.h
err_ev6.h
err_ev7.h
fb.h
floppy.h
fpu.h
ftrace.h
futex.h
gct.h
gpio.h
hardirq.h
hw_irq.h
hwrpb.h
io.h
io_trivial.h
irq.h
irq_regs.h
irqflags.h
jensen.h
kdebug.h
kmap_types.h
linkage.h
local.h
local64.h
machvec.h
mc146818rtc.h
mce.h
mmu.h
mmu_context.h
mmzone.h
module.h
mutex.h
page.h
pal.h
param.h
parport.h
pci.h
percpu.h
perf_event.h
pgalloc.h
pgtable.h
processor.h
ptrace.h
rtc.h
rwsem.h
scatterlist.h
sections.h
segment.h
serial.h
sfp-machine.h
shmparam.h
signal.h
smp.h
socket.h
special_insns.h
spinlock.h
spinlock_types.h
string.h
switch_to.h
termios.h
thread_info.h
timex.h
tlb.h
tlbflush.h
topology.h
types.h
uaccess.h
ucontext.h
unaligned.h
unistd.h
user.h
vga.h
word-at-a-time.h
wrperfmon.h
xchg.h
xor.h
uapi
kernel
lib
math-emu
mm
oprofile
Kconfig
Kconfig.debug
Makefile
defconfig
arc
arm
arm64
avr32
blackfin
c6x
cris
frv
hexagon
ia64
m32r
m68k
metag
microblaze
mips
mn10300
openrisc
parisc
powerpc
s390
score
sh
sparc
tile
um
unicore32
x86
xtensa
.gitignore
Kconfig
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
REPORTING-BUGS
Breadcrumbs
linux
/
arch
/
alpha
/
include
/
asm
/
string.h
Copy path
Blame
Blame
Latest commit
History
History
78 lines (64 loc) · 2.36 KB
Breadcrumbs
linux
/
arch
/
alpha
/
include
/
asm
/
string.h
Top
File metadata and controls
Code
Blame
78 lines (64 loc) · 2.36 KB
Raw
#ifndef __ALPHA_STRING_H__ #define __ALPHA_STRING_H__ #ifdef __KERNEL__ /* * GCC of any recent vintage doesn't do stupid things with bcopy. * EGCS 1.1 knows all about expanding memcpy inline, others don't. * * Similarly for a memset with data = 0. */ #define __HAVE_ARCH_MEMCPY extern void * memcpy(void *, const void *, size_t); #define __HAVE_ARCH_MEMMOVE extern void * memmove(void *, const void *, size_t); /* For backward compatibility with modules. Unused otherwise. */ extern void * __memcpy(void *, const void *, size_t); #define memcpy __builtin_memcpy #define __HAVE_ARCH_MEMSET extern void * __constant_c_memset(void *, unsigned long, size_t); extern void * ___memset(void *, int, size_t); extern void * __memset(void *, int, size_t); extern void * memset(void *, int, size_t); /* For gcc 3.x, we cannot have the inline function named "memset" because the __builtin_memset will attempt to resolve to the inline as well, leading to a "sorry" about unimplemented recursive inlining. */ extern inline void *__memset(void *s, int c, size_t n) { if (__builtin_constant_p(c)) { if (__builtin_constant_p(n)) { return __builtin_memset(s, c, n); } else { unsigned long c8 = (c & 0xff) * 0x0101010101010101UL; return __constant_c_memset(s, c8, n); } } return ___memset(s, c, n); } #define memset __memset #define __HAVE_ARCH_STRCPY extern char * strcpy(char *,const char *); #define __HAVE_ARCH_STRNCPY extern char * strncpy(char *, const char *, size_t); #define __HAVE_ARCH_STRCAT extern char * strcat(char *, const char *); #define __HAVE_ARCH_STRNCAT extern char * strncat(char *, const char *, size_t); #define __HAVE_ARCH_STRCHR extern char * strchr(const char *,int); #define __HAVE_ARCH_STRRCHR extern char * strrchr(const char *,int); #define __HAVE_ARCH_STRLEN extern size_t strlen(const char *); #define __HAVE_ARCH_MEMCHR extern void * memchr(const void *, int, size_t); /* The following routine is like memset except that it writes 16-bit aligned values. The DEST and COUNT parameters must be even for correct operation. */ #define __HAVE_ARCH_MEMSETW extern void * __memsetw(void *dest, unsigned short, size_t count); #define memsetw(s, c, n) \ (__builtin_constant_p(c) \ ? __constant_c_memset((s),0x0001000100010001UL*(unsigned short)(c),(n)) \ : __memsetw((s),(c),(n))) #endif /* __KERNEL__ */ #endif /* __ALPHA_STRING_H__ */
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
You can’t perform that action at this time.