|
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_addmul_2 (mp_srcptr a, mp_srcptr rp, mp_size_t n, mp_limb_t v0, mp_limb_t v1) |
| void | test_asm_functions (void) |
| TEST_CASE ("asm/addmul2", addmul_2_vs_composition_and_fullmul) | |
| TEST_CASE ("asm/addsub", add_nc_sub_nc_random) | |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| TEST_CASE ("asm/div", div_1_mod_1_random_extra) | |
| TEST_CASE ("asm/div", div_2_mod_2_random_extra) | |
| TEST_CASE ("asm/div", div_3_2_random) | |
| TEST_CASE ("asm/inv", inv_1_inv_2_1_random) | |
| TEST_CASE ("asm/mul1", mul_1_addmul_submul_random_inplace) | |
| TEST_CASE ("asm/rsh1", shr1add_shr1sub_random) | |
| TEST_CASE ("asm/shift", shl_shr_carry_random) | |
| TEST_CASE ("asm/shift", shlnot_not_addshl1_subshl1_random) | |
在文件 test_asm_functions.c 第 139 行定义.
引用了 a2, check_addmul_2(), lmmp_add_n_(), lmmp_addmul_1_(), lmmp_addmul_2_(), lmmp_free(), lmmp_mul_(), n, r1, r2, r3, r4, rp, t, TEST_CHECK_EQ, v0 , 以及 v1.
被这些函数引用 check_addmul_2() , 以及 TEST_CASE().
| void test_asm_functions | ( | void | ) |
在文件 test_asm_functions.c 第 483 行定义.
引用了 test_asm_functions() , 以及 TEST_RUN.
被这些函数引用 main() , 以及 test_asm_functions().
| TEST_CASE | ( | "asm/addmul2" | , |
| addmul_2_vs_composition_and_fullmul | ) |
在文件 test_asm_functions.c 第 188 行定义.
引用了 check_addmul_2(), lmmp_free(), n, rp , 以及 TEST_CASE.
| TEST_CASE | ( | "asm/addsub" | , |
| add_nc_sub_nc_random | ) |
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_functions.c 第 35 行定义.
引用了 ARRAY_SIZE, lmmp_add_n_(), lmmp_add_nc_(), lmmp_free(), lmmp_sub_n_(), lmmp_sub_nc_(), n, t, TEST_CASE , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "asm/div" | , |
| div_1_mod_1_random_extra | ) |
在文件 test_asm_functions.c 第 365 行定义.
引用了 a2, LIMB_B_2, lmmp_div_1_(), lmmp_div_1_s_(), lmmp_free(), lmmp_mod_1_(), lmmp_mul_1_(), n, t, TEST_CASE, TEST_CHECK , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "asm/div" | , |
| div_2_mod_2_random_extra | ) |
在文件 test_asm_functions.c 第 406 行定义.
引用了 a2, b2, LIMB_B_2, lmmp_div_2_(), lmmp_div_2_s_(), lmmp_free(), lmmp_mod_2_(), lmmp_mul_(), lmmp_mul_1_(), n, t, TEST_CASE, TEST_CHECK , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "asm/div" | , |
| div_3_2_random | ) |
在文件 test_asm_functions.c 第 334 行定义.
引用了 LIMB_B_2, lmmp_div_3_2_(), lmmp_free(), lmmp_inv_2_1_(), lmmp_mul_1_(), TEST_CASE , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "asm/inv" | , |
| inv_1_inv_2_1_random | ) |
在文件 test_asm_functions.c 第 462 行定义.
引用了 LIMB_B_2, lmmp_inv_1_(), lmmp_inv_2_1_(), lmmp_mul_1_(), prod, TEST_CASE, TEST_CHECK, TEST_CHECK_EQ , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "asm/mul1" | , |
| mul_1_addmul_submul_random_inplace | ) |
在文件 test_asm_functions.c 第 70 行定义.
引用了 a2, c1, lmmp_add_n_(), lmmp_addmul_1_(), lmmp_div_1_(), lmmp_free(), lmmp_mul_1_(), lmmp_sub_n_(), lmmp_submul_1_(), n, t, TEST_CASE, TEST_CHECK, TEST_CHECK_EQ , 以及 w2.
| TEST_CASE | ( | "asm/rsh1" | , |
| shr1add_shr1sub_random | ) |
在文件 test_asm_functions.c 第 301 行定义.
引用了 ARRAY_SIZE, lmmp_add_nc_(), lmmp_free(), lmmp_shr1add_nc_(), lmmp_shr1sub_nc_(), lmmp_sub_nc_(), n, t, TEST_CASE , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "asm/shift" | , |
| shl_shr_carry_random | ) |
在文件 test_asm_functions.c 第 216 行定义.
引用了 lmmp_free(), lmmp_shl_(), lmmp_shl_c_(), lmmp_shr_(), lmmp_shr_c_(), n, r1, r2, r3, r4, s, TEST_CASE , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "asm/shift" | , |
| shlnot_not_addshl1_subshl1_random | ) |
在文件 test_asm_functions.c 第 259 行定义.
引用了 b2, c1, lmmp_add_n_(), lmmp_addshl1_n_(), lmmp_free(), lmmp_not_(), lmmp_shl_(), lmmp_shlnot_(), lmmp_sub_n_(), lmmp_subshl1_n_(), n, r1, s, t, TEST_CASE , 以及 TEST_CHECK_EQ.