|
LAMMP 4.2.0
Lamina High-Precision Arithmetic Library
|
#include "../../../include/lammp/impl/inlines.h"#include "../../../include/lammp/impl/mparam.h"#include "../../../include/lammp/impl/tmp_alloc.h"#include "../../../include/lammp/lmmpn.h"
div_mulinv.c 的引用(Include)关系图:函数 | |
| mp_limb_t | lmmp_div_mulinv_ (mp_ptr restrict dstq, mp_ptr restrict numa, mp_size_t na, mp_srcptr restrict numb, mp_size_t nb, mp_srcptr restrict invappr, mp_size_t ni) |
| void | lmmp_inv_prediv_ (mp_ptr dst, mp_srcptr numa, mp_size_t na, mp_size_t ni) |
| Copyright (C) 2026 HJimmyK(Jericho Knox) | |
| mp_limb_t lmmp_div_mulinv_ | ( | mp_ptr restrict | dstq, |
| mp_ptr restrict | numa, | ||
| mp_size_t | na, | ||
| mp_srcptr restrict | numb, | ||
| mp_size_t | nb, | ||
| mp_srcptr restrict | invappr, | ||
| mp_size_t | ni | ||
| ) |
在文件 div_mulinv.c 第 47 行定义.
引用了 DIV_MULINV_MODM_THRESHOLD, LIMB_B_2, lmmp_add_n_(), lmmp_assert, lmmp_cmp_(), lmmp_fft_next_size_(), lmmp_inc, LMMP_MIN, lmmp_mul_(), lmmp_mul_mersenne_(), lmmp_mul_n_, lmmp_param_assert, lmmp_sub_1_(), lmmp_sub_n_(), lmmp_sub_nc_(), n, numb, TALLOC_TYPE, TEMP_DECL, TEMP_FREE , 以及 tp.
函数调用图:Copyright (C) 2026 HJimmyK(Jericho Knox)
除法前的逆元预计算,[dst,ni] = invappr( (ni+1 MSLs of numa) + 1 ) / B
This file is part of LAMMP.
LAMMP is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed WITHOUT ANY WARRANTY.
See https://www.gnu.org/licenses/.
在文件 div_mulinv.c 第 22 行定义.
引用了 LIMB_B_2, lmmp_add_1_(), lmmp_copy, lmmp_invappr_(), lmmp_param_assert, lmmp_zero, n, TALLOC_TYPE, TEMP_DECL, TEMP_FREE , 以及 tp.
被这些函数引用 lmmp_div_(), lmmp_div_s_() , 以及 lmmp_to_str_().
函数调用图:
这是这个函数的调用关系图: