📄 memcpy.optimize.c
字号:
/* ---------------------------------------------------------------------------
* @
* MEMCPY OPTIMIZATION
* ==================
*
* Build 0x001 24.06.2002
--------------------------------------------------------------------------- */
// configuration
#define BLOCK_SIZE (8*M) // size of the processed block
#define subBLOCK_SIZE (L1_CACHE_SIZE/2) // size of the sub-block
#define BRUST_LEN (32) // size of the read burst cycle
// 32 bytes is the optimal choice
// for all processors, although
// to achieve maximum performance
// it is necessary to determine this
// value exactly
#include <DoCPU.h>
main()
{
int *p1, *p2;
int a, b, tmp=0;
// TITLE
PRINT("= = = demonstration of the optimized version of memcpy = = =\n");
PRINT_TITLE;
// 恹溴
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -