Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mul_n

Proto:static void mul_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size, mpi_ptr_t tspace)

Type:void

Parameter:

TypeParameterName
mpi_ptr_tprodp
mpi_ptr_tup
mpi_ptr_tvp
mpi_size_tsize
mpi_ptr_ttspace
98  If size & 1 Then
109  esize = size - 1
113  cy_limb = mpihelp_addmul_1(prodp + esize, up, esize, vp[esize])
114  prodp[esize + esize] = cy_limb
115  cy_limb = mpihelp_addmul_1(prodp + esize, vp, size, up[esize])
116  prodp[esize + size] = cy_limb
117  Else
133  hsize = size >> 1
150  negflg = 0
151  Else
153  negflg = 1
157  negflg ^= 1
158  Else
175  If negflg Then cy -= mpihelp_sub_n(prodp + hsize, prodp + hsize, tspace, size)
179  Else cy += mpihelp_add_n(prodp + hsize, prodp + hsize, tspace, size)
195  If cy Then mpihelp_add_1(prodp + hsize + size, prodp + hsize + size, hsize, cy)
202  If cy Then mpihelp_add_1(prodp + size, prodp + size, size, 1)