Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mpi_cmp

Proto:int mpi_cmp(MPI u, MPI v)

Type:int

Parameter:

TypeParameterName
MPIu
MPIv
49  Sometimes we have MSL (most significant limbs) which are 0;* this is for some reasons not good, so this function removes them.
50  Sometimes we have MSL (most significant limbs) which are 0;* this is for some reasons not good, so this function removes them.
51  usize = number of valid limbs
52  vsize = number of valid limbs
53  If Not indicates a negative number && indicates a negative number Then Return 1
55  If indicates a negative number && Not indicates a negative number Then Return -1
57  If usize != vsize && Not indicates a negative number && Not indicates a negative number Then Return usize - vsize
59  If usize != vsize && indicates a negative number && indicates a negative number Then Return vsize - usize
61  If Not usize Then Return 0
63  cmp = -- mpih-cmp.c --
64  If indicates a negative number Then Return -cmp
66  Return cmp