mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-03-02 03:05:29 +08:00
Update kservice.c
This commit is contained in:
parent
1ef31445fd
commit
e6e9062977
@ -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[] =
|
||||
|
Loading…
x
Reference in New Issue
Block a user