|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
#include <math.h>#include "numth/ele_mul.h"#include "mparam.h"#include "impl/tmp_alloc.h"#include "impl/longlong.h"#include "lmmp/lmmpn.h"#include "lmmp/numth.h"函数 | |
| static mp_size_t | _odd_nPr_ (mp_ptr restrict dst, mp_size_t rn, ulong n, ulong r) |
| static mp_size_t | _odd_pow_ (mp_ptr restrict dst, mp_size_t rn, uint base, ulong exp) |
| mp_size_t | lmmp_arith_seqprod_ (mp_ptr restrict dst, mp_size_t rn, uint x, uint n, uint m) |
| mp_size_t | lmmp_arith_seqprod_size_ (uint x, uint n, uint m) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| static mp_size_t | pow_nPr_ (mp_ptr restrict dst, mp_size_t rn, uint x, uint n, uint m) |
在文件 arith_seqprod.c 第 64 行定义.
引用了 _odd_nPr_(), lmmp_odd_nPr_uint_(), lmmp_odd_nPr_ushort_(), n, NPR_SHORT_LIMIT , 以及 restrict.
被这些函数引用 _odd_nPr_() , 以及 pow_nPr_().
在文件 arith_seqprod.c 第 53 行定义.
引用了 _odd_pow_(), lmmp_u16_pow_1_(), lmmp_u32_pow_1_(), lmmp_u4_pow_1_(), lmmp_u8_pow_1_(), MP_UCHAR_MAX, MP_USHORT_MAX , 以及 restrict.
被这些函数引用 _odd_pow_() , 以及 pow_nPr_().
在文件 arith_seqprod.c 第 117 行定义.
引用了 bn, ctz_shr_u64, LIMB_BITS, lmmp_arith_seqprod_(), lmmp_elem_mul_ulong_(), lmmp_param_assert, lmmp_shl_(), lmmp_zero, MP_UINT_MAX, n, pow_nPr_(), restrict, s, t, TALLOC_TYPE, TEMP_DECL , 以及 TEMP_FREE.
Copyright (C) 2026 HJimmyK (Jericho Knox)
计算等差数列乘积 x(x+m)...(x+n*m)的 limb 缓冲区长度
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)
| x | 首项 |
| n | 等差数列共n+1项 |
| m | 公差 |
在文件 arith_seqprod.c 第 33 行定义.
引用了 LIMB_BITS, lmmp_arith_seqprod_size_(), LMMP_MIN, lmmp_param_assert , 以及 n.
被这些函数引用 lmmp_arith_seqprod_size_(), lmmp_multinomial_() , 以及 TEST_CASE().
在文件 arith_seqprod.c 第 78 行定义.
引用了 _odd_nPr_(), _odd_pow_(), LIMB_BITS, lmmp_mul_(), lmmp_nPr_size_(), lmmp_pow_1_size_(), lmmp_shl_(), lmmp_tailing_zeros_, lmmp_zero, n, pow_nPr_(), restrict, TALLOC_TYPE, TEMP_DECL, TEMP_FREE , 以及 tp.
被这些函数引用 lmmp_arith_seqprod_() , 以及 pow_nPr_().