URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [builtins/] [pr22237-lib.c] - Rev 816
Compare with Previous | Blame | View Log
extern void abort (void); void * memcpy (void *dst, const void *src, __SIZE_TYPE__ n) { const char *srcp; char *dstp; srcp = src; dstp = dst; if (dst < src) { if (dst + n > src) abort (); } else { if (src + n > dst) abort (); } while (n-- != 0) *dstp++ = *srcp++; return dst; }