函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:调整mpi数组空间

函数原型:int mpi_resize(MPI a, unsigned nlimbs)

返回类型:int

参数:

类型参数名称
MPIa
unsignednlimbs
90  如果nlimbs小于等于 array size (# of allocated limbs) 则返回:0
93  如果 array with the limbs
94  p等于分配数组内存
95  如果非p则返回:负ENOMEM
97  内存复制(p, array with the limbs , array size (# of allocated limbs) * sizeof(mpi_limb_t))
98  kzfree - like kfree but zero memory*@p: object to free memory of* The memory of the object @p points to is zeroed before freed.* If @p is %NULL, kzfree() does nothing.* Note: this function zeroes the whole allocated buffer which can be a good
99  array with the limbs 等于p
100  否则
101  array with the limbs 等于分配数组内存并置零
102  如果非 array with the limbs 则返回:负ENOMEM
105  array size (# of allocated limbs) 等于nlimbs
106  返回:0
调用者
名称描述
mpi_powm异或取模