函数 | |
VOID | LOS_BitmapSet (UINT32 *bitmap, UINT16 pos) |
Set one bit. 更多... | |
VOID | LOS_BitmapClr (UINT32 *bitmap, UINT16 pos) |
Clear one bit. 更多... | |
UINT16 | LOS_LowBitGet (UINT32 bitmap) |
Find the lowest one bit that is set. 更多... | |
UINT16 | LOS_HighBitGet (UINT32 bitmap) |
Find the highest one bit that is set. 更多... | |
int | LOS_BitmapFfz (UINTPTR *bitmap, UINT32 numBits) |
Find the first zero bit starting from LSB. 更多... | |
VOID | LOS_BitmapSetNBits (UINTPTR *bitmap, UINT32 start, UINT32 numsSet) |
Set the number of bit to 1 from start. 更多... | |
VOID | LOS_BitmapClrNBits (UINTPTR *bitmap, UINT32 start, UINT32 numsClear) |
Clear the number of bit to zero from start. 更多... | |
Clear one bit.
bitmap | [IN] The bitmap variable pointer. |
pos | [IN] The number bit to be cleared. |
none. |
Clear one bit.
在文件 los_bitmap.c 第 69 行定义.
Clear the number of bit to zero from start.
*bitmap | [IN] The bitmap pointer. |
start | [IN] The start bit. |
numsClear | [IN] The number of clear bits |
none. |
Clear the number of bit to zero from start.
在文件 los_bitmap.c 第 126 行定义.
Find the first zero bit starting from LSB.
*bitmap | [IN] The bitmap pointer. |
int | The bit index of the first zero bit from LSB. |
Find the first zero bit starting from LSB.
在文件 los_bitmap.c 第 146 行定义.
Set one bit.
bitmap | [IN] The bitmap variable pointer. |
pos | [IN] The number bit to be set. |
None |
Set one bit.
在文件 los_bitmap.c 第 60 行定义.
Set the number of bit to 1 from start.
*bitmap | [IN] The bitmap pointer. |
start | [IN] The start bit. |
numsSet | [IN] The number of set bits |
none. |
Set the number of bit to 1 from start.
在文件 los_bitmap.c 第 106 行定义.
Find the highest one bit that is set.
bitmap | [IN] The bitmap variable. |
UINT16 | The bit index of the highest one bit that is set. |
Find the highest one bit that is set.
CLZ 用于计算操作数最高端0的个数,这条指令主要用于以下两个场合 1.计算操作数规范化(使其最高位为1)时需要左移的位数 2.确定一个优先级掩码中最高优先级 *
bitmap |
在文件 los_bitmap.c 第 88 行定义.
Find the lowest one bit that is set.
bitmap | [IN] The bitmap variable. |
UINT16 | The bit index of the lowest one bit that is set. |
Find the lowest one bit that is set.
在文件 los_bitmap.c 第 97 行定义.