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:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mpi_cmp_ui

Proto:int mpi_cmp_ui(MPI u, unsigned long v)

Type:int

Parameter:

TypeParameterName
MPIu
unsigned longv
25  limb = v
27  Sometimes we have MSL (most significant limbs) which are 0;* this is for some reasons not good, so this function removes them.
28  If Not number of valid limbs && Not limb Then Return 0
30  If indicates a negative number Then Return -1
32  If number of valid limbs > 1 Then Return 1
35  If array with the limbs [0] == limb Then Return 0
37  Else if array with the limbs [0] > limb Then Return 1
39  Else Return -1