|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
#include "lmmp/lmmpn.h"#include "lmmp/numth.h"#include "cases.h"#include "support/lmmp_test_utils.h"#include <string.h>函数 | |
| void | test_binvert (void) |
| TEST_CASE ("numth/binvert", binvert_2_3_4) | |
| TEST_CASE ("numth/binvert", binvert_n_dc) | |
| TEST_CASE ("numth/binvert", binvert_near_balanced) | |
| TEST_CASE ("numth/binvert", binvert_uint_ulong) | |
| TEST_CASE ("numth/binvert", binvert_unbalanced_variants) | |
| TEST_CASE ("numth/binvert", bninv_power2_top_limb) | |
| static void | verify_inverse (const mp_limb_t *num, mp_size_t na, const mp_limb_t *dst, mp_size_t n) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| void test_binvert | ( | void | ) |
在文件 test_binvert.c 第 210 行定义.
引用了 test_binvert() , 以及 TEST_RUN.
被这些函数引用 main() , 以及 test_binvert().
| TEST_CASE | ( | "numth/binvert" | , |
| binvert_2_3_4 | ) |
在文件 test_binvert.c 第 58 行定义.
引用了 a2, a3, a4, lmmp_binvert_2_(), lmmp_binvert_3_(), lmmp_binvert_4_(), TEST_CASE , 以及 verify_inverse().
| TEST_CASE | ( | "numth/binvert" | , |
| binvert_n_dc | ) |
在文件 test_binvert.c 第 81 行定义.
引用了 ARRAY_SIZE, lmmp_binvert_n_dc_(), lmmp_free(), n, TEST_CASE, tp , 以及 verify_inverse().
| TEST_CASE | ( | "numth/binvert" | , |
| binvert_near_balanced | ) |
在文件 test_binvert.c 第 95 行定义.
引用了 ARRAY_SIZE, lmmp_binvert_(), lmmp_free(), n, TEST_CASE , 以及 verify_inverse().
| TEST_CASE | ( | "numth/binvert" | , |
| binvert_uint_ulong | ) |
在文件 test_binvert.c 第 43 行定义.
引用了 lmmp_binvert_uint_(), lmmp_binvert_ulong_(), lmmp_mullh_, TEST_CASE, TEST_CHECK_EQ , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "numth/binvert" | , |
| binvert_unbalanced_variants | ) |
在文件 test_binvert.c 第 164 行定义.
引用了 ARRAY_SIZE, lmmp_binvert_(), lmmp_binvert_unbalance_(), lmmp_binvert_unbalance_1_(), lmmp_binvert_unbalance_2_(), lmmp_free(), n, TEST_CASE, tp , 以及 verify_inverse().
| TEST_CASE | ( | "numth/binvert" | , |
| bninv_power2_top_limb | ) |
在文件 test_binvert.c 第 112 行定义.
引用了 ARRAY_SIZE, lmmp_bninv_(), lmmp_div_(), lmmp_free(), lmmp_sub_(), lmmp_zero, TEST_CASE , 以及 TEST_CHECK_MSG.
|
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_binvert.c 第 31 行定义.
引用了 lmmp_free(), lmmp_mul_(), lmmp_mul_1_(), n, t, TEST_CHECK_EQ , 以及 verify_inverse().
被这些函数引用 TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE() , 以及 verify_inverse().