|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
#include "lmmp/lmmpn.h"#include "impl/mul_hard.h"#include "cases.h"#include "support/lmmp_test_utils.h"#include <string.h>函数 | |
| static void | check_prod_mod (const mp_limb_t *a, mp_size_t na, const mp_limb_t *b, mp_size_t nb, const mp_limb_t *dst) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| static bool | limbs_same (const mp_limb_t *x, const mp_limb_t *y, mp_size_t n) |
| TEST_CASE ("mul/basecase", mul_basecase_mod_and_n1_exact) | |
| TEST_CASE ("mul/basecase", sqr_basecase_vs_mul) | |
| TEST_CASE ("mul/dispatch", mul_dispatch_vs_basecase_cross) | |
| TEST_CASE ("mul/fft", mul_fft_vs_toom8h) | |
| TEST_CASE ("mul/fft", sqr_fft_vs_toom8) | |
| TEST_CASE ("mul/hard_direct_all_sizes", mul_hard_direct_n1_to_n19) | |
| TEST_CASE ("mul/hard_threshold_boundary", mul_hard_boundary_vs_basecase) | |
| TEST_CASE ("mul/mullo", mullo_vs_mul_truncation) | |
| TEST_CASE ("mul/sqr_dispatch", sqr_dispatch_vs_mul) | |
| TEST_CASE ("mul/sqr_toom_small", sqr_toom_small_direct) | |
| TEST_CASE ("mul/toom_splits", toom53_toom62_integer_splits) | |
| TEST_CASE ("mul/unbalanced", mul_unbalanced_cross) | |
| void | test_mul (void) |
|
static |
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_mul.c 第 45 行定义.
引用了 check_prod_mod(), TEST_CHECK , 以及 TEST_CHECK_MSG.
被这些函数引用 check_prod_mod(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE() , 以及 TEST_CASE().
在文件 test_mul.c 第 53 行定义.
引用了 limbs_same() , 以及 n.
被这些函数引用 limbs_same(), limbs_same(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE() , 以及 TEST_CASE().
| TEST_CASE | ( | "mul/basecase" | , |
| mul_basecase_mod_and_n1_exact | ) |
在文件 test_mul.c 第 57 行定义.
引用了 check_prod_mod(), lmmp_free(), lmmp_mul_basecase_(), lmmp_mullh_, TEST_CASE , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "mul/basecase" | , |
| sqr_basecase_vs_mul | ) |
在文件 test_mul.c 第 91 行定义.
引用了 check_prod_mod(), limbs_same(), lmmp_free(), lmmp_mul_(), lmmp_sqr_basecase_(), TEST_CASE , 以及 TEST_CHECK.
| TEST_CASE | ( | "mul/dispatch" | , |
| mul_dispatch_vs_basecase_cross | ) |
在文件 test_mul.c 第 104 行定义.
引用了 ARRAY_SIZE, check_prod_mod(), limbs_same(), lmmp_free(), lmmp_mul_(), lmmp_mul_basecase_(), t, TEST_CASE , 以及 TEST_CHECK.
| TEST_CASE | ( | "mul/fft" | , |
| mul_fft_vs_toom8h | ) |
在文件 test_mul.c 第 133 行定义.
引用了 ARRAY_SIZE, check_prod_mod(), limbs_same(), lmmp_free(), lmmp_mul_(), lmmp_mul_toom8h_(), s, TEST_CASE , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "mul/fft" | , |
| sqr_fft_vs_toom8 | ) |
在文件 test_mul.c 第 156 行定义.
引用了 ARRAY_SIZE, check_prod_mod(), limbs_same(), lmmp_free(), lmmp_sqr_, lmmp_sqr_toom8_(), n, TEST_CASE , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "mul/hard_direct_all_sizes" | , |
| mul_hard_direct_n1_to_n19 | ) |
在文件 test_mul.c 第 202 行定义.
引用了 limbs_same(), lmmp_free(), lmmp_mul_basecase_(), LMMP_MUL_HARD_MAX_N, lmmp_mul_n_, lmmp_sqr_, n, TEST_CASE , 以及 TEST_CHECK.
| TEST_CASE | ( | "mul/hard_threshold_boundary" | , |
| mul_hard_boundary_vs_basecase | ) |
在文件 test_mul.c 第 174 行定义.
引用了 ARRAY_SIZE, check_prod_mod(), limbs_same(), lmmp_free(), lmmp_mul_(), lmmp_mul_basecase_(), lmmp_mul_n_, lmmp_sqr_, n, t, TEST_CASE , 以及 TEST_CHECK.
| TEST_CASE | ( | "mul/mullo" | , |
| mullo_vs_mul_truncation | ) |
在文件 test_mul.c 第 275 行定义.
引用了 ARRAY_SIZE, limbs_same(), lmmp_free(), lmmp_mul_(), lmmp_mullo_(), n, TEST_CASE , 以及 TEST_CHECK.
| TEST_CASE | ( | "mul/sqr_dispatch" | , |
| sqr_dispatch_vs_mul | ) |
在文件 test_mul.c 第 290 行定义.
引用了 ARRAY_SIZE, limbs_same(), lmmp_free(), lmmp_mul_(), lmmp_mul_basecase_(), lmmp_sqr_, n, TEST_CASE , 以及 TEST_CHECK.
| TEST_CASE | ( | "mul/sqr_toom_small" | , |
| sqr_toom_small_direct | ) |
在文件 test_mul.c 第 331 行定义.
引用了 ARRAY_SIZE, LIMB_MAX, limbs_same(), lmmp_sqr_basecase_(), lmmp_sqr_toom2_(), lmmp_sqr_toom3_(), lmmp_sqr_toom4_(), TEST_CASE , 以及 TEST_CHECK.
| TEST_CASE | ( | "mul/toom_splits" | , |
| toom53_toom62_integer_splits | ) |
在文件 test_mul.c 第 309 行定义.
引用了 ARRAY_SIZE, LIMB_MAX, limbs_same(), lmmp_mul_basecase_(), lmmp_mul_toom53_(), lmmp_mul_toom62_(), TEST_CASE , 以及 TEST_CHECK.
| TEST_CASE | ( | "mul/unbalanced" | , |
| mul_unbalanced_cross | ) |
在文件 test_mul.c 第 236 行定义.
引用了 ARRAY_SIZE, check_prod_mod(), limbs_same(), lmmp_free(), lmmp_mul_(), lmmp_mul_basecase_(), lmmp_mul_toom8h_(), TEST_CASE, TEST_CHECK , 以及 TEST_CHECK_MSG.
| void test_mul | ( | void | ) |
在文件 test_mul.c 第 350 行定义.
引用了 test_mul() , 以及 TEST_RUN.
被这些函数引用 main() , 以及 test_mul().