未验证 提交 e6e90629 编写于 作者: 杨澄 提交者: GitHub

Update kservice.c

上级 1ef31445
......@@ -1375,8 +1375,7 @@ const rt_uint8_t __lowest_bit_bitmap[] =
*/
int __rt_ffs(int value)
{
rt_uint32_t result = (rt_uint32_t)value;
return __lowest_bit_bitmap[ (result & (result - 1) ^ result) % 37];
return __lowest_bit_bitmap_new[(rt_uint32_t)(value & (value - 1) ^ value) % 37];
}
#else
const rt_uint8_t __lowest_bit_bitmap[] =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册