函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Multiply the natural numbers u (pointed to by UP) and v (pointed to by VP),* both with SIZE limbs, and store the result at PRODP. 2 * SIZE limbs are* always stored. Return the most significant limb.* Argument constraints:* 1

函数原型:static mpi_limb_t mul_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size)

返回类型:mpi_limb_t

参数:

类型参数名称
mpi_ptr_tprodp
mpi_ptr_tup
mpi_ptr_tvp
mpi_size_tsize
63  v_limb等于vp[0]
64  如果v_limb小于等于1则
65  如果v_limb恒等于1则Copy N limbs from S to D. (prodp, up, size)
67  否则Zero N limbs at D (prodp, size)
69  cy等于0
70  否则cy等于mpihelp_mul_1(prodp, up, size, v_limb)
73  prodp[size]等于cy
74  prodp自加
78 i小于size循环
79  v_limb等于vp[i]
80  如果v_limb小于等于1则
81  cy等于0
82  如果v_limb恒等于1则cy等于mpihelp_add_n(prodp, prodp, up, size)
84  否则cy等于mpihelp_addmul_1(prodp, up, size, v_limb)
87  prodp[size]等于cy
88  prodp自加
91  返回:cy