mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-20 21:29:42 +08:00
Update kservice.c
This commit is contained in:
+1
-2
@@ -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[] =
|
||||
|
||||
Reference in New Issue
Block a user