capicommon.h

来自「C/C++ 多任务下的数据结构与算法 (周伟明)华中科技大学出版社」· C头文件 代码 · 共 42 行

H
42
字号
/*
 * 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 + =
减小字号Ctrl + -
显示快捷键?