mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-22 10:23:40 +08:00
精简简化版的__rt_ffs()函数
This commit is contained in:
+1
-1
@@ -1375,7 +1375,7 @@ const rt_uint8_t __lowest_bit_bitmap[] =
|
||||
*/
|
||||
int __rt_ffs(int value)
|
||||
{
|
||||
return __lowest_bit_bitmap_new[(rt_uint32_t)(value & (value - 1) ^ value) % 37];
|
||||
return __lowest_bit_bitmap[(rt_uint32_t)(value & (value - 1) ^ value) % 37];
|
||||
}
|
||||
#else
|
||||
const rt_uint8_t __lowest_bit_bitmap[] =
|
||||
|
||||
Reference in New Issue
Block a user