函数逻辑报告 |
Source Code:lib\bitmap.c |
Create Date:2022-07-27 07:17:26 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__bitmap_parse - convert an ASCII hex string into a bitmap
函数原型:int __bitmap_parse(const char *buf, unsigned int buflen, int is_user, unsigned long *maskp, int nmaskbits)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
const char * | buf | |
unsigned int | buflen | |
int | is_user | |
unsigned long * | maskp | |
int | nmaskbits |
396 | bitmap_zero(maskp, nmaskbits) |
398 | nchunks等于nbits等于totaldigits等于c等于0 |
399 | 循环 |
400 | chunk等于0 |
401 | ndigits等于totaldigits |
406 | 如果is_user则 |
412 | buflen自减 |
413 | 如果Note: isspace() must return false for %NUL-terminator (c)则继续下一循环 |
436 | 如果chunk按位与1UL左移Bitmap printing & parsing functions: first version by Nadia Yvette Chambers,* second version by Paul Jackson, third by Joe Korty.减4位的值减1的差的反则返回:负EOVERFLOW |
439 | chunk等于chunk左移4位按位或十六进制数字转换为实数 |
440 | totaldigits自加 |
442 | 如果ndigits恒等于totaldigits则返回:负EINVAL |
449 | nchunks自加 |
455 | 返回:0 |
名称 | 描述 |
---|---|
bitmap_parse_user | map_parse_user - convert an ASCII hex string in a user buffer into a bitmap*@ubuf: pointer to user buffer containing string.*@ulen: buffer size in bytes. If string is smaller than this* then it must be terminated with a \0. |
bitmap_parse |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |