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

Go to the source code of this file.

Macros

#define word_t   uint64_t
 
#define PREFETCH_LINES_AHEAD   3
 
#define ST(p, v)   (*(p) = (v))
 
#define LD(p)   (*(p))
 
#define ST1   ST
 
#define ST2   ST
 
#define ST4   ST
 
#define ST8   ST
 
#define LD1   LD
 
#define LD2   LD
 
#define LD4   LD
 
#define LD8   LD
 
#define RETVAL   dstv
 
#define COPY_WORD(offset)   ({ ST8(dst8+offset, LD8(src8+offset)); n -= 8; })
 

Functions

voidmemcpy (void *__restrict dstv, const void *__restrict srcv, size_t n)
 

Macro Definition Documentation

#define COPY_WORD (   offset)    ({ ST8(dst8+offset, LD8(src8+offset)); n -= 8; })
#define LD (   p)    (*(p))

Definition at line 35 of file memcpy_64.c.

#define LD1   LD

Definition at line 42 of file memcpy_64.c.

#define LD2   LD

Definition at line 43 of file memcpy_64.c.

#define LD4   LD

Definition at line 44 of file memcpy_64.c.

#define LD8   LD

Definition at line 45 of file memcpy_64.c.

#define PREFETCH_LINES_AHEAD   3

Definition at line 28 of file memcpy_64.c.

#define RETVAL   dstv

Definition at line 46 of file memcpy_64.c.

#define ST (   p,
  v 
)    (*(p) = (v))

Definition at line 34 of file memcpy_64.c.

#define ST1   ST

Definition at line 38 of file memcpy_64.c.

#define ST2   ST

Definition at line 39 of file memcpy_64.c.

#define ST4   ST

Definition at line 40 of file memcpy_64.c.

#define ST8   ST

Definition at line 41 of file memcpy_64.c.

#define word_t   uint64_t

Definition at line 21 of file memcpy_64.c.

Function Documentation

void* memcpy ( void *__restrict  dstv,
const void *__restrict  srcv,
size_t  n 
)

Definition at line 47 of file memcpy_64.c.