|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
#include "lmmp/lmmpn.h"#include "mparam.h"#include "cases.h"#include "support/lmmp_test_utils.h"#include <string.h>函数 | |
| static void | check_vs_dispatch (const char *tag, mp_ptr a, mp_size_t na, mp_ptr b, mp_size_t nb, void(*kfn)(mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t)) |
| static void | check_vs_oracle (const char *tag, mp_ptr a, mp_size_t na, mp_ptr b, mp_size_t nb, void(*fn)(mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t)) |
| static void | fill_pattern (mp_ptr p, size_t n, mp_limb_t pat) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| static bool | in_6h_range (mp_size_t na, mp_size_t nb) |
| TEST_CASE ("mul/toom68", extended_unbalanced_window_via_dispatch) | |
| TEST_CASE ("mul/toom68", extreme_patterns) | |
| TEST_CASE ("mul/toom68", sqr_toom6_kernel) | |
| TEST_CASE ("mul/toom68", sqr_toom8_kernel) | |
| TEST_CASE ("mul/toom68", thresholds_boundary_via_dispatch) | |
| TEST_CASE ("mul/toom68", toom6h_kernel_full_range) | |
| TEST_CASE ("mul/toom68", toom6h_oracle_balanced_and_unbalanced) | |
| TEST_CASE ("mul/toom68", toom8h_kernel_full_range) | |
| TEST_CASE ("mul/toom68", toom8h_oracle_balanced_and_unbalanced) | |
| void | test_mul_toom68 (void) |
变量 | |
| const double | kRatios6 [] = {1.0, 1.05, 1.15, 1.3, 1.32, 1.45, 1.48, 1.8, 1.88, 2.0, 2.11, 2.4, 2.6, 2.82} |
| const double | kRatios8 [] = {1.0, 1.1, 1.22, 1.35, 1.5, 1.64, 1.8, 2.0, 2.24, 2.5, 2.85, 3.1, 3.5, 3.99} |
|
static |
在文件 test_mul_toom68.c 第 54 行定义.
引用了 check_vs_dispatch(), lmmp_free(), lmmp_mul_(), r1, r2, TEST_CHECK , 以及 TEST_CHECK_MSG.
被这些函数引用 check_vs_dispatch(), TEST_CASE() , 以及 TEST_CASE().
|
static |
在文件 test_mul_toom68.c 第 41 行定义.
引用了 check_vs_oracle(), lmmp_free(), lmmp_mul_basecase_(), TEST_CHECK , 以及 TEST_CHECK_MSG.
被这些函数引用 check_vs_oracle(), TEST_CASE(), 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_mul_toom68.c 第 36 行定义.
引用了 fill_pattern() , 以及 n.
被这些函数引用 fill_pattern(), fill_pattern(), lmmp_prime_int_table_init_() , 以及 TEST_CASE().
在文件 test_mul_toom68.c 第 71 行定义.
引用了 in_6h_range().
被这些函数引用 in_6h_range(), TEST_CASE(), TEST_CASE() , 以及 TEST_CASE().
| TEST_CASE | ( | "mul/toom68" | , |
| extended_unbalanced_window_via_dispatch | ) |
在文件 test_mul_toom68.c 第 241 行定义.
引用了 ARRAY_SIZE, check_vs_oracle(), lmmp_free(), lmmp_mul_(), MUL_TOOM6H_THRESHOLD , 以及 TEST_CASE.
| TEST_CASE | ( | "mul/toom68" | , |
| extreme_patterns | ) |
在文件 test_mul_toom68.c 第 260 行定义.
引用了 ARRAY_SIZE, check_vs_oracle(), fill_pattern(), in_6h_range(), LIMB_MAX, lmmp_free(), lmmp_mul_toom6h_(), lmmp_mul_toom8h_(), lmmp_sqr_, lmmp_sqr_toom6_(), n, r1, r2, TEST_CASE, TEST_CHECK , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "mul/toom68" | , |
| sqr_toom6_kernel | ) |
在文件 test_mul_toom68.c 第 117 行定义.
引用了 lmmp_free(), lmmp_sqr_, lmmp_sqr_toom6_(), n, r1, r2, TEST_CASE, TEST_CHECK , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "mul/toom68" | , |
| sqr_toom8_kernel | ) |
在文件 test_mul_toom68.c 第 133 行定义.
引用了 lmmp_free(), lmmp_sqr_, lmmp_sqr_toom8_(), n, r1, r2, TEST_CASE, TEST_CHECK , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "mul/toom68" | , |
| thresholds_boundary_via_dispatch | ) |
在文件 test_mul_toom68.c 第 191 行定义.
引用了 ARRAY_SIZE, lmmp_free(), lmmp_mul_basecase_(), lmmp_mul_n_, lmmp_sqr_, MUL_TOOM6H_THRESHOLD, MUL_TOOM8H_THRESHOLD, n, SQR_TOOM6_THRESHOLD, SQR_TOOM8_THRESHOLD, TEST_CASE, TEST_CHECK , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "mul/toom68" | , |
| toom6h_kernel_full_range | ) |
在文件 test_mul_toom68.c 第 77 行定义.
引用了 ARRAY_SIZE, check_vs_dispatch(), in_6h_range(), kRatios6, lmmp_free(), lmmp_mul_toom6h_(), TEST_CASE , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "mul/toom68" | , |
| toom6h_oracle_balanced_and_unbalanced | ) |
在文件 test_mul_toom68.c 第 150 行定义.
引用了 ARRAY_SIZE, check_vs_oracle(), in_6h_range(), lmmp_free(), lmmp_mul_toom6h_() , 以及 TEST_CASE.
| TEST_CASE | ( | "mul/toom68" | , |
| toom8h_kernel_full_range | ) |
在文件 test_mul_toom68.c 第 97 行定义.
引用了 ARRAY_SIZE, check_vs_dispatch(), kRatios8, lmmp_free(), lmmp_mul_toom8h_(), TEST_CASE , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "mul/toom68" | , |
| toom8h_oracle_balanced_and_unbalanced | ) |
在文件 test_mul_toom68.c 第 171 行定义.
引用了 ARRAY_SIZE, check_vs_oracle(), lmmp_free(), lmmp_mul_toom8h_() , 以及 TEST_CASE.
| void test_mul_toom68 | ( | void | ) |
在文件 test_mul_toom68.c 第 318 行定义.
引用了 test_mul_toom68() , 以及 TEST_RUN.
被这些函数引用 main() , 以及 test_mul_toom68().
| const double kRatios6[] = {1.0, 1.05, 1.15, 1.3, 1.32, 1.45, 1.48, 1.8, 1.88, 2.0, 2.11, 2.4, 2.6, 2.82} |
在文件 test_mul_toom68.c 第 67 行定义.
被这些函数引用 TEST_CASE().
| const double kRatios8[] = {1.0, 1.1, 1.22, 1.35, 1.5, 1.64, 1.8, 2.0, 2.24, 2.5, 2.85, 3.1, 3.5, 3.99} |
在文件 test_mul_toom68.c 第 69 行定义.
被这些函数引用 TEST_CASE().