函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mpihelp_add_n

函数原型:mpi_limb_t mpihelp_add_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_ptr_t s2_ptr, mpi_size_t size)

返回类型:mpi_limb_t

参数:

类型参数名称
mpi_ptr_tres_ptr
mpi_ptr_ts1_ptr
mpi_ptr_ts2_ptr
mpi_size_tsize
29  j等于负size
32  s1_ptr减等于j
33  s2_ptr减等于j
34  res_ptr减等于j
36  cy等于0
37  循环
38  y等于s2_ptr[j]
39  x等于s1_ptr[j]
40  y加等于cy
41  cy等于y小于cy
42  y加等于x
43  cy加等于y小于x
44  res_ptr[j]等于y
45 j先自加循环
47  返回:cy
调用者
名称描述
mpihelp_divremDivide num (NP/NSIZE) by den (DP/DSIZE) and write* the NSIZE-DSIZE least significant quotient limbs at QP* and the DSIZE long remainder at NP. If QEXTRA_LIMBS is* non-zero, generate that many fraction bits and append them after the* other quotient limbs.
mul_n_basecaseMultiply 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
mul_n
mpih_sqr_n_basecase
mpih_sqr_n
mpihelp_mul_karatsuba_case
mpihelp_mulMultiply the natural numbers u (pointed to by UP, with USIZE limbs)* and v (pointed to by VP, with VSIZE limbs), and store the result at* PRODP. USIZE + VSIZE limbs are always stored, but if the input* operands are normalized