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 extern void * __constant_c_memset(void *, unsigned long, long);
   5 extern void * __memset(void *, char, size_t);
   6 
   7 /*
   8  * Ugh. Gcc uses "bcopy()" internally for structure assignments.
   9  */
  10 #define __HAVE_ARCH_BCOPY
  11 
  12 /*
  13  * Define "memcpy()" to something else, otherwise gcc will
  14  * corrupt that too into a "bcopy".  Also, some day we might
  15  * want to do a separate inlined constant-size memcpy (for 8
  16  * and 16 byte user<->kernel structure copying).
  17  */
  18 #define __HAVE_ARCH_MEMCPY
  19 extern void * __memcpy(void *, const void *, size_t);
  20 #define memcpy __memcpy
  21 
  22 #define __HAVE_ARCH_MEMSET
  23 #define memset(s, c, count) \
  24 (__builtin_constant_p(c) ? \
  25  __constant_c_memset((s),(0x0101010101010101UL*(unsigned char)c),(count)) : \
  26  __memset((s),(c),(count)))
  27 
  28 #define __HAVE_ARCH_STRLEN
  29 
  30 #endif /* __ALPHA_STRING_H__ */

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