Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\mpi\generic_mpih-sub1.c Create Date:2022-07-28 07:18:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mpihelp_sub_n

Proto:mpi_limb_t mpihelp_sub_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_ptr_t s2_ptr, mpi_size_t size)

Type:mpi_limb_t

Parameter:

TypeParameterName
mpi_ptr_tres_ptr
mpi_ptr_ts1_ptr
mpi_ptr_ts2_ptr
mpi_size_tsize
28  j = -size
31  s1_ptr -= j
32  s2_ptr -= j
33  res_ptr -= j
35  cy = 0
36  Do
37  y = s2_ptr[j]
38  x = s1_ptr[j]
39  y += cy
40  cy = y < cy
41  y = x - y
42  cy += y > x
43  res_ptr[j] = y
44  When ++j cycle
46  Return cy
Caller
NameDescribe
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
mpih_sqr_n