Back to index

glibc  2.9
Defines
memcopy.h File Reference
#include <sysdeps/generic/memcopy.h>

Go to the source code of this file.

Defines

#define OP_T_THRES   OPSIZ
#define WORD_COPY_FWD(dst_bp, src_bp, nbytes_left, nbytes)
#define WORD_COPY_BWD(dst_bp, src_bp, nbytes_left, nbytes)

Define Documentation

#define OP_T_THRES   OPSIZ

Definition at line 28 of file memcopy.h.

#define WORD_COPY_BWD (   dst_bp,
  src_bp,
  nbytes_left,
  nbytes 
)
Value:
do                                                             \
    {                                                          \
      unsigned long enddst_bp = dst_bp - nbytes + (nbytes % OPSIZ);   \
      nbytes_left = (nbytes % OPSIZ);                                 \
      while (dst_bp > enddst_bp)                               \
       {                                                       \
	  op_t x;                                              \
         src_bp -= sizeof x;                                          \
         x = *(op_t *) src_bp;                                        \
         dst_bp -= sizeof x;                                          \
         *(op_t *) dst_bp = x;                                        \
       }                                                       \
    } while (0)

Definition at line 44 of file memcopy.h.

#define WORD_COPY_FWD (   dst_bp,
  src_bp,
  nbytes_left,
  nbytes 
)
Value:
do                                                             \
    {                                                          \
      unsigned long enddst_bp = dst_bp + nbytes - (nbytes % OPSIZ);   \
      nbytes_left = (nbytes % OPSIZ);                                 \
      while (dst_bp < (unsigned long) enddst_bp)               \
       {                                                       \
	  op_t x = *(op_t *) src_bp;                                  \
         src_bp += sizeof x;                                          \
         *(op_t *) dst_bp = x;                                        \
         dst_bp += sizeof x;                                          \
       }                                                       \
    } while (0)

Definition at line 30 of file memcopy.h.