|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
函数 | |
| void | lmmp_inv_ (mp_ptr dst, mp_srcptr numa, mp_size_t na, mp_size_t nf) |
| 求逆操作 [dst,na+nf+1] = (B^(2*(na+nf)) - 1) / ([numa,na]*B^nf) + [0|-1] | |
| void | lmmp_inv_basecase_ (mp_ptr restrict dst, mp_srcptr restrict numa, mp_size_t na) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| void | lmmp_invappr_ (mp_ptr restrict dst, mp_srcptr restrict numa, mp_size_t na) |
| void | lmmp_invappr_newton_ (mp_ptr restrict dst, mp_srcptr restrict numa, mp_size_t na) |
求逆操作 [dst,na+nf+1] = (B^(2*(na+nf)) - 1) / ([numa,na]*B^nf) + [0|-1]
| dst | 逆元结果输出指针 |
| numa | 源操作数指针 |
| na | 操作数的 limb 长度 |
| nf | 精度因子 |
引用了 LIMB_BITS, lmmp_inv_(), lmmp_invappr_(), lmmp_leading_zeros_, lmmp_param_assert, lmmp_shl_(), lmmp_shr_c_(), lmmp_zero, restrict, TALLOC_TYPE, TEMP_DECL , 以及 TEMP_FREE.
被这些函数引用 lmmp_inv_().
Copyright (C) 2026 HJimmyK (Jericho Knox)
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
引用了 DIV_DIVIDE_THRESHOLD, LIMB_B_2, LIMB_MAX, lmmp_div_2_s_(), lmmp_div_basecase_(), lmmp_div_divide_(), lmmp_inv_1_(), lmmp_inv_2_1_(), lmmp_inv_basecase_(), lmmp_not_(), lmmp_param_assert, restrict, TALLOC_TYPE, TEMP_DECL, TEMP_FREE , 以及 xp.
引用了 INV_NEWTON_THRESHOLD, lmmp_inv_basecase_(), lmmp_invappr_(), lmmp_invappr_newton_(), lmmp_param_assert , 以及 restrict.
引用了 INV_MODM_THRESHOLD, INV_NEWTON_THRESHOLD, LIMB_B_2, LIMB_BITS, LIMB_MAX, lmmp_add_n_(), lmmp_add_nc_(), lmmp_assert, lmmp_cmp_(), lmmp_dec, lmmp_dec_1, lmmp_inc, lmmp_inv_basecase_(), lmmp_invappr_newton_(), lmmp_mersenne_next_size_(), lmmp_mul_(), lmmp_mul_mersenne_(), lmmp_mul_n_, lmmp_not_(), lmmp_param_assert, lmmp_sub_n_(), lmmp_sub_nc_(), restrict, TALLOC_TYPE, TEMP_DECL, TEMP_FREE , 以及 xp.