Explorar o código

精简简化版的__rt_ffs()函数

杨澄 %!s(int64=3) %!d(string=hai) anos
pai
achega
46fe85e2c2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/kservice.c

+ 1 - 1
src/kservice.c

@@ -1375,7 +1375,7 @@ const rt_uint8_t __lowest_bit_bitmap[] =
  */
 int __rt_ffs(int value)
 {
-    return __lowest_bit_bitmap_new[(rt_uint32_t)(value & (value - 1) ^ value) % 37];
+    return __lowest_bit_bitmap[(rt_uint32_t)(value & (value - 1) ^ value) % 37];
 }
 #else
 const rt_uint8_t __lowest_bit_bitmap[] =