bcopy.c
来自「基于4个mips核的noc设计」· C语言 代码 · 共 36 行
C
36 行
/* bcopy -- copy memory regions of arbitary lengthNAME bcopy -- copy memory regions of arbitrary lengthSYNOPSIS void bcopy (char *in, char *out, int length)DESCRIPTION Copy LENGTH bytes from memory region pointed to by IN to memory region pointed to by OUT.BUGS Significant speed improvements can be made in some cases by implementing copies of multiple bytes simultaneously, or unrolling the copy loop.*/voidbcopy (src, dest, len) register char *src, *dest; int len;{ if (dest < src) while (len--) *dest++ = *src++; else { char *lasts = src + (len-1); char *lastd = dest + (len-1); while (len--) *(char *)lastd-- = *(char *)lasts--; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?