summaryrefslogtreecommitdiffstats
path: root/include/asm-alpha/string.h
blob: e90d5500363a19825b004878d81723c4f08cea09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __ALPHA_STRING_H
#define __ALPHA_STRING_H

/* This doesn't actually work that well for unaligned stuff ;-p */
extern inline void * memcpy(void * to, const void * from, size_t n)
{
	const unsigned long * f = from;
	unsigned long * t = to;
	int size = n;

	for (;;) {
		size -= 8;
		if (size < 0)
			return to;
		*(t++) = *(f++);
	}
}

#endif