函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mpih_sqr_n

函数原型:void mpih_sqr_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size, mpi_ptr_t tspace)

返回类型:void

参数:

类型参数名称
mpi_ptr_tprodp
mpi_ptr_tup
mpi_size_tsize
mpi_ptr_ttspace
247  如果size按位与1则
258  esize等于size减1
262  cy_limb等于mpihelp_addmul_1(prodp + esize, up, esize, up[esize])
263  prodp[esize + esize]等于cy_limb
264  cy_limb等于mpihelp_addmul_1(prodp + esize, up, size, up[esize])
266  prodp[esize + size]等于cy_limb
267  否则
268  hsize等于size右移1位
281  如果mpi比较大于等于0则mpihelp_sub_n(prodp, up + hsize, up, hsize)
283  否则mpihelp_sub_n(prodp, up, up + hsize, hsize)
292  Copy N limbs from S to D. (prodp + hsize, prodp + size, hsize)
293  cy等于mpihelp_add_n(prodp + size, prodp + size, prodp + size + hsize, hsize)
297  cy减等于mpihelp_sub_n(prodp + hsize, prodp + hsize, tspace, size)
307  cy加等于mpihelp_add_n(prodp + hsize, prodp + hsize, tspace, size)
308  如果cympihelp_add_1(prodp + hsize + size, prodp + hsize + size, hsize, cy)
312  Copy N limbs from S to D. (prodp, tspace, hsize)
313  cy等于mpihelp_add_n(prodp + hsize, prodp + hsize, tspace + hsize, hsize)
315  如果cympihelp_add_1(prodp + size, prodp + size, size, 1)
调用者
名称描述
mpi_powm异或取模