函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Shift U (pointed to by UP and USIZE limbs long) CNT bits to the right* and store the USIZE least significant limbs of the result at WP.* The bits shifted out to the right are returned.* Argument constraints:* 1. 0 < CNT < BITS_PER_MP_LIMB* 2

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

返回类型:mpi_limb_t

参数:

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