|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
#include "impl/tmp_alloc.h"#include "impl/longlong.h"#include "numth/powmod.h"#include "lmmp/lmmpn.h"#include "lmmp/numth.h"宏定义 | |
| #define | getbit(p, bi) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
函数 | |
| static mp_bitcnt_t | count_bits (mp_srcptr p, mp_size_t n) |
| static mp_limb_t | getbits (const mp_limb_t *p, mp_bitcnt_t bi, mp_bitcnt_t nbits) |
| void | lmmp_powmod_1_ (mp_ptr restrict dst, mp_srcptr restrict bp, mp_srcptr restrict ep, mp_size_t en, mp_limb_t mod) |
| static mp_limb_t | powmod1_redc_ (u128 t, mp_limb_t m, mp_limb_t ninv) |
| #define getbit | ( | p, | |
| bi ) |
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
在文件 powmod_1.c 第 29 行定义.
|
inlinestatic |
在文件 powmod_1.c 第 50 行定义.
引用了 count_bits(), LIMB_BITS, lmmp_limb_bits_ , 以及 n.
|
inlinestatic |
在文件 powmod_1.c 第 31 行定义.
| void lmmp_powmod_1_ | ( | mp_ptr restrict | dst, |
| mp_srcptr restrict | bp, | ||
| mp_srcptr restrict | ep, | ||
| mp_size_t | en, | ||
| mp_limb_t | mod ) |
在文件 powmod_1.c 第 68 行定义.
引用了 _udiv128by64to64_(), b2, count_bits(), ctz_shr_u64, getbit, getbits(), lmmp_binvert_ulong_(), lmmp_debug_assert, LMMP_MIN, lmmp_param_assert, lmmp_powmod_1_(), powmod1_redc_(), restrict, TALLOC_TYPE, TEMP_DECL , 以及 TEMP_FREE.
在文件 powmod_1.c 第 57 行定义.
引用了 k, powmod1_redc_() , 以及 t.
被这些函数引用 lmmp_powmod_1_() , 以及 powmod1_redc_().