函数逻辑报告 |
Source Code:lib\find_bit.c |
Create Date:2022-07-27 07:21:35 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:This is a common helper function for find_next_bit, find_next_zero_bit, and* find_next_and_bit. The differences are:* - The "invert" argument, which is XORed with each fetched word before* searching it for one bits.
函数原型:static inline unsigned long _find_next_bit(const unsigned long *addr1, const unsigned long *addr2, unsigned long nbits, unsigned long start, unsigned long invert)
返回类型:unsigned long
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const unsigned long * | addr1 | |
| const unsigned long * | addr2 | |
| unsigned long | nbits | |
| unsigned long | start | |
| unsigned long | invert |
| 36 | 如果此条件成立可能性小(为编译器优化)(start >= nbits)则返回:nbits |
| 39 | tmp等于addr1[start / BITS_PER_LONG] |
| 40 | 如果addr2则tmp与等于addr2[start / BITS_PER_LONG] |
| 45 | tmp与等于BITMAP_FIRST_WORD_MASK(start) |
| 49 | start加等于BITS_PER_LONG |
| 53 | tmp等于addr1[start / BITS_PER_LONG] |
| 54 | 如果addr2则tmp与等于addr2[start / BITS_PER_LONG] |
| 59 | 返回:两数取小(start + 在字中找到第一个指定位, nbits) |
| 名称 | 描述 |
|---|---|
| find_next_bit | 在内存区域中找到下一个设置位 |
| find_next_zero_bit | 在内存区域中查找下一个零位 |
| find_next_and_bit |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |