|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
函数 | |
| mp_limb_t | lmmp_inv_1_ (mp_limb_t x) |
| 1阶逆元计算 (inv1) | |
| mp_limb_t | lmmp_inv_2_1_ (mp_limb_t xh, mp_limb_t xl) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
1阶逆元计算 (inv1)
| x | 输入的64位无符号整数,最高位为1(MSB(x)=1) |
引用了 LIMB_BITS, LIMB_MAX, LLIMB_MASK , 以及 lmmp_inv_1_().
被这些函数引用 bench_inv_1(), lmmp_div_1_(), lmmp_div_1_s_(), lmmp_inv_1_(), lmmp_inv_basecase_(), lmmp_mod_1_(), lmmp_mulmod_ulong_(), lmmp_sqrlo_dc_(), mont_R2(), mont_R2(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), trialdiv_init_chunk_() , 以及 trialdiv_init_inv_().
Copyright (C) 2026 HJimmyK (Jericho Knox)
2-1阶逆元计算 (inv21)
This file is part of LMMP.
LMMP is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library. If not, see https://www.gnu.org/licenses/.
SPDX-License-Identifier: LGPL-3.0-or-later
Copyright (C) 2026 HJimmyK (Jericho Knox)
| xh | 输入数的高64位部分 |
| xl | 输入数的低64位部分 |
引用了 _umul64to128_(), LIMB_BITS, LIMB_MAX, LLIMB_MASK , 以及 lmmp_inv_2_1_().
被这些函数引用 bench_div_3_2(), bench_inv_2_1(), ipn_sdiv_init_(), lmmp_bninv_appr_newton_(), lmmp_div_(), lmmp_div_2_(), lmmp_div_2_s_(), lmmp_div_s_(), lmmp_inv_2_1_(), lmmp_inv_basecase_(), lmmp_mod_2_(), lmmp_sqrlo_dc_(), TEST_CASE(), TEST_CASE(), TEST_CASE() , 以及 TEST_CASE().