Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Compare OP1_PTR/OP1_SIZE with OP2_PTR/OP2_SIZE.* There are no restrictions on the relative sizes of* the two arguments.* Return 1 if OP1 > OP2, 0 if they are equal, and -1 if OP1 < OP2.

Proto:int mpihelp_cmp(mpi_ptr_t op1_ptr, mpi_ptr_t op2_ptr, mpi_size_t size)

Type:int

Parameter:

TypeParameterName
mpi_ptr_top1_ptr
mpi_ptr_top2_ptr
mpi_size_tsize
30  When i >= 0 cycle
31  op1_word = op1_ptr[i]
32  op2_word = op2_ptr[i]
33  If op1_word != op2_word Then Go to diff
36  Return 0
38  diff :
42  Return If op1_word > op2_word Then 1 Else -1
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