LMMP 4.3.0
Lamina High-Precision Arithmetic Library
载入中...
搜索中...
未找到
cases.h 文件参考
#include "support/test.h"
cases.h 的引用(Include)关系图:
此图展示该文件被哪些文件直接或间接地引用了:

浏览该文件的源代码.

函数

void test_asm_boundary (void)
 Copyright (C) 2026 HJimmyK (Jericho Knox)
void test_asm_functions (void)
void test_deterministic_extra (void)
void test_div (void)
void test_low_limb (void)
void test_memory_layout (void)
void test_mul (void)
void test_mul_mersenne (void)
void test_mul_toom68 (void)
void test_str (void)
void test_threshold_boundaries (void)

函数说明

◆ test_asm_boundary()

void test_asm_boundary ( void )

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_asm_boundary.c 第 318 行定义.

318 {
319 TEST_RUN("asm/boundary", add_nc_sub_nc_all_ones);
320 TEST_RUN("asm/boundary", mul_1_addmul_submul_extremes);
321 TEST_RUN("asm/boundary", shl_shr_inplace);
322 TEST_RUN("asm/boundary", shl_shr_overlap_family);
323 TEST_RUN("asm/boundary", shl_shr_c_overlap_family);
324 TEST_RUN("asm/boundary", div_1_by_one_and_power_of_two);
325 TEST_RUN("asm/boundary", inv_and_mulmod_boundary);
326}
#define TEST_RUN(category, name)
定义 test.h:36

引用了 test_asm_boundary() , 以及 TEST_RUN.

被这些函数引用 main() , 以及 test_asm_boundary().

函数调用图:
这是这个函数的调用关系图:

◆ test_asm_functions()

void test_asm_functions ( void )

在文件 test_asm_functions.c 第 483 行定义.

483 {
484 TEST_RUN("asm/addsub", add_nc_sub_nc_random);
485 TEST_RUN("asm/mul1", mul_1_addmul_submul_random_inplace);
486 TEST_RUN("asm/addmul2", addmul_2_vs_composition_and_fullmul);
487 TEST_RUN("asm/shift", shl_shr_carry_random);
488 TEST_RUN("asm/shift", shlnot_not_addshl1_subshl1_random);
489 TEST_RUN("asm/rsh1", shr1add_shr1sub_random);
490 TEST_RUN("asm/div", div_3_2_random);
491 TEST_RUN("asm/div", div_1_mod_1_random_extra);
492 TEST_RUN("asm/div", div_2_mod_2_random_extra);
493 TEST_RUN("asm/inv", inv_1_inv_2_1_random);
494}

引用了 test_asm_functions() , 以及 TEST_RUN.

被这些函数引用 main() , 以及 test_asm_functions().

函数调用图:
这是这个函数的调用关系图:

◆ test_deterministic_extra()

void test_deterministic_extra ( void )

在文件 test_deterministic_extra.c 第 142 行定义.

142 {
143 TEST_RUN("low/addsub", add_sub_deterministic_inplace);
144 TEST_RUN("low/shift", shlnot_not_inplace_deterministic);
145 TEST_RUN("low/div", div_1_mod_1_boundary_deterministic);
146 TEST_RUN("low/addsub", addshl1_subshl1_boundary_deterministic);
147}

引用了 test_deterministic_extra() , 以及 TEST_RUN.

被这些函数引用 main() , 以及 test_deterministic_extra().

函数调用图:
这是这个函数的调用关系图:

◆ test_div()

void test_div ( void )

在文件 test_div.c 第 236 行定义.

236 {
237 TEST_RUN("div/single", div_1_mod_1);
238 TEST_RUN("div/single", mod_preinv_1_boundary);
239 TEST_RUN("div/general", div_general_relation);
240 TEST_RUN("div/normalized", div_s_normalized_relation);
241 TEST_RUN("div/basecase_divide", div_basecase_vs_divide);
242 TEST_RUN("div/inv", inv_1_inv_2_1);
243}

引用了 test_div() , 以及 TEST_RUN.

被这些函数引用 main() , 以及 test_div().

函数调用图:
这是这个函数的调用关系图:

◆ test_low_limb()

void test_low_limb ( void )

在文件 test_low_limb.c 第 379 行定义.

379 {
380 TEST_RUN("low/limb", endianness);
381 TEST_RUN("low/limb", limb_bits);
382 TEST_RUN("low/limb", popcnt_clz_ctz);
383 TEST_RUN("low/limb", mulh_mullh);
384 TEST_RUN("low/addsub", add_sub_n);
385 TEST_RUN("low/addsub", add_n_sub_n);
386 TEST_RUN("low/shift", shl_shr);
387 TEST_RUN("low/mul1", mul_1_addmul_submul);
388 TEST_RUN("low/misc", shlnot_not_addshl1_subshl1);
389}

引用了 test_low_limb() , 以及 TEST_RUN.

被这些函数引用 main() , 以及 test_low_limb().

函数调用图:
这是这个函数的调用关系图:

◆ test_memory_layout()

void test_memory_layout ( void )

在文件 test_memory_layout.c 第 250 行定义.

250 {
251 TEST_RUN("memory/addsub", add_n_sub_n_inplace_pair);
252 TEST_RUN("memory/addsub", addshl1_subshl1_inplace);
253 TEST_RUN("memory/shift", shr1add_shr1sub_inplace);
254 TEST_RUN("memory/mul1", mul_1_shifted_overlap);
255 TEST_RUN("memory/div1", div_1_shifted_overlap);
256 TEST_RUN("memory/muladd", addmul_submul_equal_sources);
257}

引用了 test_memory_layout() , 以及 TEST_RUN.

被这些函数引用 main() , 以及 test_memory_layout().

函数调用图:
这是这个函数的调用关系图:

◆ test_mul()

void test_mul ( void )

在文件 test_mul.c 第 350 行定义.

350 {
351 TEST_RUN("mul/basecase", mul_basecase_mod_and_n1_exact);
352 TEST_RUN("mul/basecase", sqr_basecase_vs_mul);
353 TEST_RUN("mul/dispatch", mul_dispatch_vs_basecase_cross);
354 TEST_RUN("mul/fft", mul_fft_vs_toom8h);
355 TEST_RUN("mul/fft", sqr_fft_vs_toom8);
356 TEST_RUN("mul/hard_threshold_boundary", mul_hard_boundary_vs_basecase);
357 TEST_RUN("mul/hard_direct_all_sizes", mul_hard_direct_n1_to_n19);
358 TEST_RUN("mul/unbalanced", mul_unbalanced_cross);
359 TEST_RUN("mul/mullo", mullo_vs_mul_truncation);
360 TEST_RUN("mul/sqr_dispatch", sqr_dispatch_vs_mul);
361 TEST_RUN("mul/toom_splits", toom53_toom62_integer_splits);
362 TEST_RUN("mul/sqr_toom_small", sqr_toom_small_direct);
363}

引用了 test_mul() , 以及 TEST_RUN.

被这些函数引用 main() , 以及 test_mul().

函数调用图:
这是这个函数的调用关系图:

◆ test_mul_mersenne()

void test_mul_mersenne ( void )

在文件 test_mul_mersenne.c 第 194 行定义.

194 {
195 TEST_RUN("mul/mersenne_dc", mersenne_dc_vs_oracle);
196 TEST_RUN("mul/mersenne_next_size", mersenne_next_size_props);
197 TEST_RUN("mul/mersenne_fft", mersenne_fft_single_limb);
198 TEST_RUN("mul/fermat_fft", fermat_cache_single_limb);
199}

引用了 test_mul_mersenne() , 以及 TEST_RUN.

被这些函数引用 main() , 以及 test_mul_mersenne().

函数调用图:
这是这个函数的调用关系图:

◆ test_mul_toom68()

void test_mul_toom68 ( void )

在文件 test_mul_toom68.c 第 318 行定义.

318 {
319 TEST_RUN("mul/toom68", toom6h_kernel_full_range);
320 TEST_RUN("mul/toom68", toom8h_kernel_full_range);
321 TEST_RUN("mul/toom68", sqr_toom6_kernel);
322 TEST_RUN("mul/toom68", sqr_toom8_kernel);
323 TEST_RUN("mul/toom68", toom6h_oracle_balanced_and_unbalanced);
324 TEST_RUN("mul/toom68", toom8h_oracle_balanced_and_unbalanced);
325 TEST_RUN("mul/toom68", thresholds_boundary_via_dispatch);
326 TEST_RUN("mul/toom68", extended_unbalanced_window_via_dispatch);
327 TEST_RUN("mul/toom68", extreme_patterns);
328}

引用了 test_mul_toom68() , 以及 TEST_RUN.

被这些函数引用 main() , 以及 test_mul_toom68().

函数调用图:
这是这个函数的调用关系图:

◆ test_str()

void test_str ( void )

在文件 test_str.c 第 381 行定义.

381 {
382 TEST_RUN("str/roundtrip", to_str_from_str_roundtrip);
383 TEST_RUN("str/known", known_values);
384 TEST_RUN("str/hex_spec", hex_specialized);
385 TEST_RUN("str/decimal_spec", decimal_specialized);
386 TEST_RUN("str/decimal_powcache", decimal_pow_cache_lifecycle);
387}

引用了 TEST_RUN , 以及 test_str().

被这些函数引用 main() , 以及 test_str().

函数调用图:
这是这个函数的调用关系图:

◆ test_threshold_boundaries()

void test_threshold_boundaries ( void )

在文件 test_threshold_boundaries.c 第 219 行定义.

219 {
220 TEST_RUN("threshold/mul", mul_n_toom_boundaries);
221 TEST_RUN("threshold/mullo", mullo_dc_boundary);
222 TEST_RUN("threshold/div", divide_threshold_boundary);
223 TEST_RUN("threshold/divexact", divexact_two_threshold_boundaries);
224 TEST_RUN("threshold/pow", pow_1_exp_boundary);
225}

引用了 TEST_RUN , 以及 test_threshold_boundaries().

被这些函数引用 main() , 以及 test_threshold_boundaries().

函数调用图:
这是这个函数的调用关系图: