函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mpih_sqr_n_basecase

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

返回类型:void

参数:

类型参数名称
mpi_ptr_tprodp
mpi_ptr_tup
mpi_size_tsize
215  v_limb等于up[0]
216  如果v_limb小于等于1则
217  如果v_limb恒等于1则Copy N limbs from S to D. (prodp, up, size)
219  否则Zero N limbs at D (prodp, size)
221  cy_limb等于0
222  否则cy_limb等于mpihelp_mul_1(prodp, up, size, v_limb)
225  prodp[size]等于cy_limb
226  prodp自加
230 i小于size循环
231  v_limb等于up[i]
232  如果v_limb小于等于1则
233  cy_limb等于0
234  如果v_limb恒等于1则cy_limb等于mpihelp_add_n(prodp, prodp, up, size)
236  否则cy_limb等于mpihelp_addmul_1(prodp, up, size, v_limb)
239  prodp[size]等于cy_limb
240  prodp自加
调用者
名称描述
mpi_powm异或取模