浏览代码

Update kservice.c

杨澄 3 年之前
父节点
当前提交
e6e9062977
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/kservice.c

+ 1 - 2
src/kservice.c

@@ -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[] =