root/include/asm-alpha/string.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. memcpy

   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)
     /* [previous][next][first][last][top][bottom][index][help] */
   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

/* [previous][next][first][last][top][bottom][index][help] */