Update kservice.c

This commit is contained in:
杨澄
2021-11-07 14:57:02 +08:00
committed by GitHub
parent 1ef31445fd
commit e6e9062977
+1 -2
View File
@@ -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[] =