函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mpihelp_submul_1

函数原型:mpi_limb_t mpihelp_submul_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size, mpi_limb_t s2_limb)

返回类型:mpi_limb_t

参数:

类型参数名称
mpi_ptr_tres_ptr
mpi_ptr_ts1_ptr
mpi_size_ts1_size
mpi_limb_ts2_limb
30  j等于负s1_size
31  res_ptr减等于j
32  s1_ptr减等于j
34  cy_limb等于0
35  循环
36  umul_ppmm(prod_high, prod_low, s1_ptr[j], s2_limb)
38  prod_low加等于cy_limb
39  cy_limb等于如果prod_low小于cy_limb则1否则0加prod_high
41  x等于res_ptr[j]
42  prod_low等于xprod_low
43  cy_limb加等于如果prod_low大于x则1否则0
44  res_ptr[j]等于prod_low
45 j先自加循环
47  返回:cy_limb
调用者
名称描述
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.