📄 capicommon.h
字号:
/*
* Copyright (c) 2006-2008
* Author: Weiming Zhou
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permission notice appear
* in supporting documentation.
*/
/*
* CapiCommon.h
*
* DESCRIPTION
* Interface to a common functions.
*
* HISTORY
* 10-02-2007 create by zhouweiming.
*
*/
#ifndef __CAPICOMMON_H__
#define __CAPICOMMON_H__
#define CACHE_LINE_SIZE 64
int power2(int n);
int BFind(void **ppData, UINT uCount, void *pData, COMPAREFUNC CompareFunc);
int dtn(int n, int min_n);
int dtn2(int n, int min_n);
void *GetCacheAlignedAddr(void *pAddr);
void *GetNextCacheAlignedAddr(void *pAddr);
#endif //__CAPICOMMON_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -