|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
#include "mparam.h"#include "lmmp/lmmpn.h"#include "lmmp/numth.h"#include "cases.h"#include "support/lmmp_test_utils.h"#include <string.h>函数 | |
| static void | check_mul_n (mp_size_t n, u64 seed) |
| static void | fill_deterministic (mp_ptr p, mp_size_t n, u64 seed) |
| static u64 | modpow32 (u64 base, u64 exp, u32 p) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| TEST_CASE ("threshold/div", divide_threshold_boundary) | |
| TEST_CASE ("threshold/divexact", divexact_two_threshold_boundaries) | |
| TEST_CASE ("threshold/mul", mul_n_toom_boundaries) | |
| TEST_CASE ("threshold/mullo", mullo_dc_boundary) | |
| TEST_CASE ("threshold/pow", pow_1_exp_boundary) | |
| void | test_threshold_boundaries (void) |
在文件 test_threshold_boundaries.c 第 62 行定义.
引用了 check_mul_n(), fill_deterministic(), lmmp_free(), lmmp_mul_basecase_(), lmmp_mul_n_, n , 以及 TEST_CHECK_MSG.
被这些函数引用 check_mul_n() , 以及 TEST_CASE().
在文件 test_threshold_boundaries.c 第 56 行定义.
引用了 fill_deterministic() , 以及 n.
被这些函数引用 check_mul_n(), fill_deterministic(), TEST_CASE(), TEST_CASE() , 以及 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
在文件 test_threshold_boundaries.c 第 46 行定义.
引用了 modpow32().
被这些函数引用 check_pow1_agree(), modpow32(), modpow32(), TEST_CASE() , 以及 TEST_CASE().
| TEST_CASE | ( | "threshold/div" | , |
| divide_threshold_boundary | ) |
在文件 test_threshold_boundaries.c 第 116 行定义.
引用了 ARRAY_SIZE, DIV_DIVIDE_THRESHOLD, fill_deterministic(), lmmp_add_n_(), lmmp_div_(), lmmp_free(), lmmp_mul_(), lmmp_zero, n, t, TEST_CASE , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "threshold/divexact" | , |
| divexact_two_threshold_boundaries | ) |
在文件 test_threshold_boundaries.c 第 152 行定义.
引用了 ARRAY_SIZE, DIVEXACT_BASECASE_THRESHOLD, DIVEXACT_NN_THRESHOLD, fill_deterministic(), lmmp_divexact_(), lmmp_free(), lmmp_mul_(), TEST_CASE , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "threshold/mul" | , |
| mul_n_toom_boundaries | ) |
在文件 test_threshold_boundaries.c 第 79 行定义.
引用了 check_mul_n(), MUL_TOOM22_THRESHOLD, MUL_TOOM33_THRESHOLD, MUL_TOOM44_THRESHOLD , 以及 TEST_CASE.
| TEST_CASE | ( | "threshold/mullo" | , |
| mullo_dc_boundary | ) |
在文件 test_threshold_boundaries.c 第 93 行定义.
引用了 ARRAY_SIZE, fill_deterministic(), lmmp_free(), lmmp_mul_(), lmmp_mullo_(), lo, MULLO_DC_THRESHOLD, n, TEST_CASE , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "threshold/pow" | , |
| pow_1_exp_boundary | ) |
在文件 test_threshold_boundaries.c 第 192 行定义.
引用了 ARRAY_SIZE, lmmp_free(), lmmp_pow_(), lmmp_pow_1_(), lmmp_pow_size_(), modpow32(), POW_1_EXP_THRESHOLD, TEST_CASE , 以及 TEST_CHECK_MSG.
| void test_threshold_boundaries | ( | void | ) |
在文件 test_threshold_boundaries.c 第 219 行定义.
引用了 TEST_RUN , 以及 test_threshold_boundaries().
被这些函数引用 main() , 以及 test_threshold_boundaries().