|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
#include "lmmp/lmmpn.h"#include "lmmp/numth.h"#include "support/test.h"#include "support/lmmp_test_utils.h"函数 | |
| static int | expect2 (u64 lo, u64 hi, bool prime) |
| static mp_size_t | k2t_limbs (mp_ptr dst, int t, mp_limb_t k, mp_limb_t c) |
| static bool | less_sw (u64 lo, u64 hi) |
| static mp_size_t | limbs_norm (const mp_limb_t *p, mp_size_t n) |
| static mp_size_t | mersenne_limbs (mp_ptr dst, int p) |
| static u64 | mod_pow64 (u64 a, u64 e, u64 mod) |
| static u64 | mulmod64 (u64 a, u64 b, u64 m) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| static bool | proth_cert_g (uint k, int t, int nbase) |
| static bool | proth_certified (const mp_limb_t *np, mp_size_t nn, int t) |
| static u64 | random_u64_prime (u64 *seed) |
| static bool | ref_is_prime32 (u32 n) |
| static bool | ref_is_prime64 (u64 n) |
变量 | |
| static const int | MC_EXP [] = {131, 137, 149, 163} |
| static const int | MP_EXP [] = {521, 607, 1279, 4423} |
| static const int | MP_FOLD_EXP = 19937 |
在文件 prime_ref.h 第 91 行定义.
引用了 expect2(), less_sw() , 以及 lo.
被这些函数引用 expect2() , 以及 TEST_CASE().
在文件 prime_ref.h 第 111 行定义.
引用了 k, k2t_limbs(), lmmp_zero, n , 以及 t.
被这些函数引用 k2t_limbs(), proth_cert_g(), proth_certified(), TEST_CASE(), TEST_CASE(), TEST_CASE() , 以及 TEST_CASE().
在文件 prime_ref.h 第 130 行定义.
引用了 limbs_norm() , 以及 n.
被这些函数引用 limbs_norm(), TEST_CASE(), TEST_CASE(), TEST_CASE() , 以及 TEST_CASE().
在文件 prime_ref.h 第 103 行定义.
引用了 mersenne_limbs() , 以及 n.
被这些函数引用 mersenne_limbs(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE() , 以及 TEST_CASE().
在文件 prime_ref.h 第 46 行定义.
引用了 mod_pow64() , 以及 mulmod64().
被这些函数引用 mod_pow64(), ref_is_prime64() , 以及 TEST_CASE().
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
在文件 prime_ref.h 第 40 行定义.
引用了 lmmp_mod_1_(), lmmp_mullh_, mulmod64() , 以及 t.
被这些函数引用 mod_pow64(), mulmod64() , 以及 ref_is_prime64().
|
inlinestatic |
在文件 prime_ref.h 第 140 行定义.
引用了 k, k2t_limbs(), lmmp_cmp_(), lmmp_copy, lmmp_dec, lmmp_powmod_(), lmmp_zero, proth_cert_g() , 以及 t.
被这些函数引用 proth_cert_g(), TEST_CASE() , 以及 TEST_CASE().
在文件 prime_ref.h 第 162 行定义.
引用了 ARRAY_SIZE, k2t_limbs(), lmmp_cmp_(), lmmp_copy, lmmp_dec, lmmp_powmod_(), lmmp_zero, proth_certified() , 以及 t.
被这些函数引用 proth_certified() , 以及 TEST_CASE().
在文件 prime_ref.h 第 123 行定义.
引用了 random_u64_prime() , 以及 ref_is_prime64().
被这些函数引用 random_u64_prime() , 以及 TEST_CASE().
|
inlinestatic |
在文件 prime_ref.h 第 85 行定义.
引用了 n, ref_is_prime32() , 以及 ref_is_prime64().
被这些函数引用 ref_is_prime32(), TEST_CASE() , 以及 TEST_CASE().
|
inlinestatic |
在文件 prime_ref.h 第 57 行定义.
引用了 ARRAY_SIZE, mod_pow64(), mulmod64(), n, ref_is_prime64() , 以及 s.
被这些函数引用 random_u64_prime(), ref_is_prime32(), ref_is_prime64(), TEST_CASE(), TEST_CASE(), TEST_CASE() , 以及 TEST_CASE().
|
static |
在文件 prime_ref.h 第 100 行定义.
被这些函数引用 TEST_CASE().
|
static |
在文件 prime_ref.h 第 98 行定义.
被这些函数引用 TEST_CASE() , 以及 TEST_CASE().
|
static |
在文件 prime_ref.h 第 99 行定义.
被这些函数引用 TEST_CASE().