Skip to content

Commit 46fe85e

Browse files
authored
精简简化版的__rt_ffs()函数
1 parent e6e9062 commit 46fe85e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kservice.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ const rt_uint8_t __lowest_bit_bitmap[] =
13751375
*/
13761376
int __rt_ffs(int value)
13771377
{
1378-
return __lowest_bit_bitmap_new[(rt_uint32_t)(value & (value - 1) ^ value) % 37];
1378+
return __lowest_bit_bitmap[(rt_uint32_t)(value & (value - 1) ^ value) % 37];
13791379
}
13801380
#else
13811381
const rt_uint8_t __lowest_bit_bitmap[] =

0 commit comments

Comments
 (0)