diff options
| author | 杨澄 <[email protected]> | 2021-11-07 14:57:02 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-07 14:57:02 +0800 |
| commit | e6e90629773897394e99a156cf76756b883ff86d (patch) | |
| tree | 28d6dbd9ce64d4e4b7a3ff95bd72d234d5f751cb /src | |
| parent | 1ef31445fd731c81c403eda47c13f2c027dd26b3 (diff) | |
Update kservice.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/kservice.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kservice.c b/src/kservice.c index 7c62901e36..dd95fe029a 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -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[] = |
