1 #ifndef __ALPHA_STRING_H 2 #define __ALPHA_STRING_H 3 4 /* This doesn't actually work that well for unaligned stuff ;-p */ 5 extern inline void * memcpy(void * to, const void * from, size_t n) /* */ 6 { 7 const unsigned long * f = from; 8 unsigned long * t = to; 9 int size = n; 10 11 for (;;) { 12 size -= 8; 13 if (size < 0) 14 return to; 15 *(t++) = *(f++); 16 } 17 } 18 19 #endif