|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
#include <math.h>#include "numth/ele_mul.h"#include "impl/inlines.h"#include "mparam.h"#include "impl/prime_table.h"#include "impl/tmp_alloc.h"#include "lmmp/lmmpn.h"#include "lmmp/numth.h"宏定义 | |
| #define | MAX_T 0xffffffffffff |
| #define | MUL(dst, ap, an, bp, bn) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| #define | mul_1(dst, rn, v) |
函数 | |
| static void | count_factors (fac_ptr fac, uint nfactors, uint n, uint p) |
| mp_size_t | lmmp_factorial_ (mp_ptr restrict dst, mp_bitcnt_t bits, mp_size_t rn, uint n) |
| mp_size_t | lmmp_factorial_size_ (uint n, mp_bitcnt_t *restrict bits) |
| mp_size_t | lmmp_factors_mul_ (mp_ptr restrict dst, mp_size_t rn, fac_ptr restrict fac, uint nfactors) |
| mp_size_t | lmmp_odd_factorial_uint_ (mp_ptr restrict dst, mp_size_t rn, uint n) |
| #define MAX_T 0xffffffffffff |
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
在文件 factorial.c 第 34 行定义.
被这些函数引用 lmmp_factors_mul_() , 以及 lmmp_factors_mul_ushort_().
| #define mul_1 | ( | dst, | |
| rn, | |||
| v ) |
在文件 factorial.c 第 41 行定义.
被这些函数引用 lmmp_factors_mul_(), lmmp_factors_mul_ushort_(), lmmp_odd_nCr_uint_(), lmmp_odd_nCr_ushort_(), lmmp_odd_nPr_uint_(), lmmp_odd_nPr_ulong_() , 以及 lmmp_odd_nPr_ushort_().
在文件 factorial.c 第 163 行定义.
引用了 count_factors(), fac_t::f, fac_t::j , 以及 n.
被这些函数引用 count_factors(), count_factors(), count_factors(), count_factors(), lmmp_odd_factorial_uint_(), lmmp_odd_multinomial_uint_(), lmmp_odd_multinomial_ushort_(), lmmp_odd_nCr_uint_(), lmmp_odd_nCr_ushort_(), lmmp_odd_nPr_uint_() , 以及 lmmp_odd_nPr_ushort_().
在文件 factorial.c 第 202 行定义.
引用了 LIMB_BITS, lmmp_factorial_(), lmmp_odd_factorial_uint_(), lmmp_odd_nPr_ushort_(), lmmp_param_assert, lmmp_shl_(), lmmp_zero, n, NPR_SHORT_LIMIT , 以及 restrict.
| mp_size_t lmmp_factorial_size_ | ( | uint | n, |
| mp_bitcnt_t *restrict | bits ) |
在文件 factorial.c 第 48 行定义.
引用了 LIMB_BITS, lmmp_factorial_size_(), lmmp_limb_popcnt_, n , 以及 restrict.
| mp_size_t lmmp_factors_mul_ | ( | mp_ptr restrict | dst, |
| mp_size_t | rn, | ||
| fac_ptr restrict | fac, | ||
| uint | nfactors ) |
在文件 factorial.c 第 70 行定义.
引用了 BALLOC_TYPE, FACTORS_MUL_N_THRESHOLD, lmmp_copy, lmmp_debug_assert, lmmp_elem_mul_ulong_(), lmmp_factors_mul_(), lmmp_param_assert, lmmp_sqr_, MAX_T, MP_UINT_MAX, MP_USHORT_MAX, MUL, mul_1, restrict, t, TALLOC_TYPE, TEMP_DECL, TEMP_FREE , 以及 tp.
在文件 factorial.c 第 174 行定义.
引用了 BALLOC_TYPE, count_factors(), prime_cache_t::is_end, lmmp_factors_mul_(), lmmp_odd_factorial_uint_(), lmmp_param_assert, lmmp_prime_cache_free_(), lmmp_prime_cache_init_(), lmmp_prime_cache_next_(), lmmp_prime_int_table_init_(), lmmp_prime_size_(), MP_USHORT_MAX, n, prime_cache_t::pp, restrict, prime_cache_t::size, TEMP_B_DECL , 以及 TEMP_B_FREE.