|
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"函数 | |
| static u64 | gcd_u64 (u64 a, u64 b) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| TEST_CASE ("numth/modinv", modinv_big) | |
| TEST_CASE ("numth/modinv", modinv_ulong) | |
| void | test_modinv (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_modinv.c 第 36 行定义.
| TEST_CASE | ( | "numth/modinv" | , |
| modinv_big | ) |
在文件 test_modinv.c 第 87 行定义.
引用了 ARRAY_SIZE, lmmp_copy, lmmp_div_(), lmmp_free(), lmmp_gcd_(), lmmp_modinv_(), lmmp_mul_(), lmmp_zero, prod, TEST_CASE , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "numth/modinv" | , |
| modinv_ulong | ) |
在文件 test_modinv.c 第 45 行定义.
引用了 gcd_u64(), lmmp_mod_1_(), lmmp_modinv_ulong_(), lmmp_mullh_, prod, TEST_CASE , 以及 TEST_CHECK_MSG.
| void test_modinv | ( | void | ) |
在文件 test_modinv.c 第 148 行定义.
引用了 test_modinv() , 以及 TEST_RUN.
被这些函数引用 main() , 以及 test_modinv().