|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
#include <math.h>#include "numth/ele_mul.h"#include "impl/inlines.h"#include "impl/longlong.h"#include "mparam.h"#include "impl/prime_table.h"宏定义 | |
| #define | MULTINOMIAL_INT_LIMIT (0xffffffff) |
| #define | MULTINOMIAL_SHORT_LIMIT (0xffff) |
函数 | |
| static uint | count_factors (fac_ptr fac, uint nfactors, uint n, const uintp r, uint m, uint p) |
| static mp_size_t | fac_size_bigger (uint n) |
| static mp_size_t | fac_size_lower (uint n) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| static uint | factor_size_int (mp_size_t rn, uint n) |
| static ushort | factor_size_short (mp_size_t rn) |
| mp_size_t | lmmp_multinomial_ (mp_ptr restrict dst, mp_size_t rn, uint n, const uintp restrict r, uint m) |
| mp_size_t | lmmp_multinomial_size_ (const uintp r, uint m, ulong *restrict n) |
| static mp_size_t | lmmp_odd_multinomial_uint_ (mp_ptr restrict dst, mp_size_t rn, uint n, const uintp restrict r, uint m) |
| static mp_size_t | lmmp_odd_multinomial_ushort_ (mp_ptr restrict dst, mp_size_t rn, uint n, const uintp restrict r, uint m) |
| #define MULTINOMIAL_INT_LIMIT (0xffffffff) |
在文件 multinomial.c 第 165 行定义.
| #define MULTINOMIAL_SHORT_LIMIT (0xffff) |
在文件 multinomial.c 第 164 行定义.
被这些函数引用 lmmp_multinomial_().
|
inlinestatic |
在文件 multinomial.c 第 69 行定义.
引用了 _udiv32by32_q_preinv, count_factors(), fac_t::f, fac_t::j, MP_ULONG_MAX , 以及 n.
在文件 multinomial.c 第 42 行定义.
引用了 fac_size_bigger() , 以及 n.
被这些函数引用 fac_size_bigger() , 以及 lmmp_multinomial_size_().
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
在文件 multinomial.c 第 32 行定义.
引用了 fac_size_lower() , 以及 n.
被这些函数引用 fac_size_lower() , 以及 lmmp_multinomial_size_().
在文件 multinomial.c 第 91 行定义.
引用了 factor_size_int(), lmmp_debug_assert, lmmp_prime_size_(), MP_UINT_MAX , 以及 n.
被这些函数引用 factor_size_int(), factor_size_int(), lmmp_odd_multinomial_uint_() , 以及 lmmp_odd_nCr_uint_().
在文件 multinomial.c 第 101 行定义.
引用了 factor_size_short(), lmmp_debug_assert , 以及 MP_USHORT_MAX.
被这些函数引用 factor_size_short(), factor_size_short(), lmmp_odd_multinomial_ushort_() , 以及 lmmp_odd_nCr_ushort_().
| mp_size_t lmmp_multinomial_ | ( | mp_ptr restrict | dst, |
| mp_size_t | rn, | ||
| uint | n, | ||
| const uintp restrict | r, | ||
| uint | m ) |
在文件 multinomial.c 第 167 行定义.
引用了 LIMB_BITS, lmmp_limb_popcnt_, lmmp_multinomial_(), lmmp_odd_multinomial_uint_(), lmmp_odd_multinomial_ushort_(), lmmp_shl_(), lmmp_zero, MULTINOMIAL_SHORT_LIMIT, n , 以及 restrict.
在文件 multinomial.c 第 52 行定义.
引用了 fac_size_bigger(), fac_size_lower(), LIMB_BITS, lmmp_multinomial_size_(), lmmp_param_assert, MP_UINT_MAX, n , 以及 restrict.
|
static |
在文件 multinomial.c 第 141 行定义.
引用了 BALLOC_TYPE, count_factors(), factor_size_int(), prime_cache_t::is_end, lmmp_factors_mul_(), lmmp_odd_multinomial_uint_(), lmmp_prime_cache_free_(), lmmp_prime_cache_init_(), lmmp_prime_cache_next_(), lmmp_prime_int_table_init_(), n, prime_cache_t::pp, restrict, prime_cache_t::size, TEMP_B_DECL , 以及 TEMP_B_FREE.
被这些函数引用 lmmp_multinomial_() , 以及 lmmp_odd_multinomial_uint_().
|
static |
在文件 multinomial.c 第 107 行定义.
引用了 count_factors(), factor_size_short(), lmmp_factors_mul_ushort_(), lmmp_odd_multinomial_ushort_(), lmmp_odd_nPr_ushort_(), lmmp_prime_cnt16_(), n, ODD_FACTORIAL_SIZE, prime_short_table, restrict, t, TALLOC_TYPE, TEMP_DECL , 以及 TEMP_FREE.
被这些函数引用 lmmp_multinomial_() , 以及 lmmp_odd_multinomial_ushort_().