Subversion Repositories Kolibri OS

Rev

Rev 4874 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4874 Rev 4921
Line 2... Line 2...
2
FUNCTION
2
FUNCTION
3
        <>---copy memory regions
3
        <>---copy memory regions
Line 4... Line 4...
4
 
4
 
5
ANSI_SYNOPSIS
5
ANSI_SYNOPSIS
6
        #include 
6
        #include 
-
 
7
        void* memcpy(void *restrict <[out]>, const void *restrict <[in]>,
Line 7... Line 8...
7
        void* memcpy(void *<[out]>, const void *<[in]>, size_t <[n]>);
8
                     size_t <[n]>);
8
 
9
 
9
TRAD_SYNOPSIS
10
TRAD_SYNOPSIS
10
        #include 
11
        #include 
Line 49... Line 50...
49
/* Threshhold for punting to the byte copier.  */
50
/* Threshhold for punting to the byte copier.  */
50
#define TOO_SMALL(LEN)  ((LEN) < BIGBLOCKSIZE)
51
#define TOO_SMALL(LEN)  ((LEN) < BIGBLOCKSIZE)
Line 51... Line 52...
51
 
52
 
52
_PTR
53
_PTR
53
_DEFUN (memcpy, (dst0, src0, len0),
54
_DEFUN (memcpy, (dst0, src0, len0),
54
	_PTR dst0 _AND
55
	_PTR __restrict dst0 _AND
55
	_CONST _PTR src0 _AND
56
	_CONST _PTR __restrict src0 _AND
56
	size_t len0)
57
	size_t len0)
57
{
58
{
58
#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
59
#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
59
  char *dst = (char *) dst0;
60
  char *dst = (char *) dst0;