函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\mpi\mpicoder.c Create Date:2022-07-27 08:17:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:读一字节流为正整数

函数原型:MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes)

返回类型:MPI

参数:

类型参数名称
const void *xbuffer
size_tnbytes
37  buffer等于xbuffer
41  MPI val = NULL
43 nbytes大于0且buffer[0]恒等于0循环
44  buffer自加
45  nbytes自减
48  nbits等于nbytes乘8
49  如果nbits大于MAX_EXTERN_MPI_BITS
50  打印信息("MPI: mpi too large (%u bits)\n", nbits)
51  返回:NULL
53  如果nbytes大于0则nbits减等于_leading_zeros - Count the number of zeros from the MSB back*@x: The value* Count the number of leading zeros from the MSB going towards the LSB in @x.* If the MSB of @x is set, the result is 0.BITS_PER_LONG减8
56  nlimbs等于DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB)
57  val等于分配mpi空间
58  如果非val则返回:NULL
60  the real number of valid bits (info only) 等于nbits
61  indicates a negative number 等于0
62  number of valid limbs 等于nlimbs
64  如果nbytes大于0则
65  i等于BYTES_PER_MPI_LIMBnbytes取模BYTES_PER_MPI_LIMB
66  i取模等于BYTES_PER_MPI_LIMB
67 j大于0循环
68  a等于0
70  a左移等于8位
71  a或等于buffer自加
73  i等于0
74  array with the limbs [j - 1]等于a
77  返回:val
调用者
名称描述
mpi_read_from_buffer