Changeset 9756131 in mainline for include/memstr.h


Ignore:
Timestamp:
2005-08-31T10:00:14Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b9e97fb
Parents:
3de9e5e
Message:

Get rid of memcopy().
All we now have is memcpy() and _memcpy().
memcpy() is defined to be builtin.
Where not applicable, architectures must implement memcpy() code or call slowish _memcopy().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/memstr.h

    r3de9e5e r9756131  
    3333#include <arch/types.h>
    3434
    35 extern char *memcpy(void * dst, const void *src, size_t cnt);
    36 extern char *memcopy(void * dst, const void *src, size_t cnt);
     35#define memcpy(dst, src, cnt)   __builtin_memcpy((dst), (src), (cnt));
    3736
    3837extern void memsetw(__address dst, size_t cnt, __u16 x);
     
    4443 * Architecture independent variants.
    4544 */
    46 extern char *_memcopy(void *dst, const void *src, size_t cnt);
     45extern char *_memcpy(void *dst, const void *src, size_t cnt);
    4746extern void _memsetb(__address dst, size_t cnt, __u8 x);
    4847extern void _memsetw(__address dst, size_t cnt, __u16 x);
Note: See TracChangeset for help on using the changeset viewer.