Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
memcpy.c File Reference
#include <linux/types.h>

Go to the source code of this file.

Macros

#define ALIGN_DEST_TO8_UP(d, s, n)
 
#define ALIGN_DEST_TO8_DN(d, s, n)
 
#define DO_REST_UP(d, s, n)
 
#define DO_REST_DN(d, s, n)
 
#define DO_REST_ALIGNED_UP(d, s, n)   DO_REST_UP(d,s,n)
 
#define DO_REST_ALIGNED_DN(d, s, n)   DO_REST_DN(d,s,n)
 

Functions

voidmemcpy (void *dest, const void *src, size_t n)
 
 asm ("__memcpy = memcpy; .globl __memcpy")
 

Macro Definition Documentation

#define ALIGN_DEST_TO8_DN (   d,
  s,
  n 
)
Value:
while (d & 7) { \
if (n <= 0) return; \
n--; \
d--; s--; \
*(char *) d = *(char *) s; \
}

Definition at line 31 of file memcpy.c.

#define ALIGN_DEST_TO8_UP (   d,
  s,
  n 
)
Value:
while (d & 7) { \
if (n <= 0) return; \
n--; \
*(char *) d = *(char *) s; \
d++; s++; \
}

Definition at line 24 of file memcpy.c.

#define DO_REST_ALIGNED_DN (   d,
  s,
  n 
)    DO_REST_DN(d,s,n)

Definition at line 61 of file memcpy.c.

#define DO_REST_ALIGNED_UP (   d,
  s,
  n 
)    DO_REST_UP(d,s,n)

Definition at line 60 of file memcpy.c.

#define DO_REST_DN (   d,
  s,
  n 
)
Value:
while (n > 0) { \
n--; \
d--; s--; \
*(char *) d = *(char *) s; \
}

Definition at line 49 of file memcpy.c.

#define DO_REST_UP (   d,
  s,
  n 
)
Value:
while (n > 0) { \
n--; \
*(char *) d = *(char *) s; \
d++; s++; \
}

Definition at line 43 of file memcpy.c.

Function Documentation

asm ( )
void * memcpy ( void dest,
const void src,
size_t  n 
)

Definition at line 151 of file memcpy.c.