4
0
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:
杨澄 2021-11-07 14:57:02 +08:00 committed by GitHub
parent 1ef31445fd
commit e6e9062977
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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[] =