示例#1
0
文件: gcs_link.c 项目: lufb/code
/**
 *	build_linkno - 构建一个LINKNO
 *
 *	@ptr:		LINKNO项
 *
 *	return
 *		LINKNO
 */
static INLINE_FN linkno_t
build_linkno(IN struct linkno_s *ptr)
{
	struct linkno_s_pool	*obj = lnk_pool_object();
	unsigned int			hi = ptr->inc++;
	unsigned int			lo = ptr - obj->base;
	linkno_t				v;

	v = ((hi << 16) & 0xFFFF0000) | (lo & 0xFFFF);

	SET_ID(obj->bitmap, lo);

	return v;
}
示例#2
0
static UINT32 opDI(void)
{
	SET_ID(1);
	return clkIF;
}
示例#3
0
static UINT32 opEI(void)
{
	SET_ID(0);
	return clkIF;
}