函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\mpi\generic_mpih-lshift.c Create Date:2022-07-27 08:16:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Shift U (pointed to by UP and USIZE digits long) CNT bits to the left* and store the USIZE least significant digits of the result at WP.* Return the bits shifted out from the most significant digit.* Argument constraints:* 1. 0 < CNT < BITS_PER_MP_LIMB* 2

函数原型:mpi_limb_t mpihelp_lshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned int cnt)

返回类型:mpi_limb_t

参数:

类型参数名称
mpi_ptr_twp
mpi_ptr_tup
mpi_size_tusize
unsigned intcnt
35  sh_1等于cnt
36  wp加等于1
37  sh_2等于BITS_PER_MPI_LIMBsh_1
38  i等于usize减1
39  low_limb等于up[i]
40  retval等于low_limb右移sh_2
41  high_limb等于low_limb
42 i先自减大于等于0循环
43  low_limb等于up[i]
44  wp[i]等于high_limb左移sh_1位按位或low_limb右移sh_2
45  high_limb等于low_limb
47  wp[i]等于high_limb左移sh_1
49  返回:retval
调用者
名称描述
mpi_powm异或取模