root/include/asm-alpha/string.h

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

INCLUDED FROM


   1 #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__ */

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