|
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>函数 | |
| static u64 | gcd_u64 (u64 a, u64 b) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| static void | shifted_pair (u64 x, int s, mp_ptr out) |
| TEST_CASE ("numth/gcd", gcd_1) | |
| TEST_CASE ("numth/gcd", gcd_11) | |
| TEST_CASE ("numth/gcd", gcd_22_and_gcd_2) | |
| TEST_CASE ("numth/gcd", gcd_22_shapes) | |
| TEST_CASE ("numth/gcd", gcd_2_multiple_and_gcd_1_zero) | |
| TEST_CASE ("numth/gcd", gcd_empty) | |
| void | test_gcd (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_gcd.c 第 39 行定义.
被这些函数引用 gcd_u64(), gcd_u64(), gcd_u64(), gcd_u64(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE() , 以及 TEST_CASE().
在文件 test_gcd.c 第 49 行定义.
引用了 s , 以及 shifted_pair().
被这些函数引用 shifted_pair() , 以及 TEST_CASE().
| TEST_CASE | ( | "numth/gcd" | , |
| gcd_1 | ) |
在文件 test_gcd.c 第 73 行定义.
引用了 gcd_u64(), lmmp_free(), lmmp_gcd_1_(), lmmp_mod_1_(), TEST_CASE , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "numth/gcd" | , |
| gcd_11 | ) |
在文件 test_gcd.c 第 59 行定义.
引用了 gcd_u64(), lmmp_gcd_11_(), TEST_CASE , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "numth/gcd" | , |
| gcd_22_and_gcd_2 | ) |
在文件 test_gcd.c 第 90 行定义.
引用了 lmmp_free(), lmmp_gcd_22_(), lmmp_gcd_2_(), lmmp_gcd_lehmer_(), TEST_CASE, TEST_CHECK , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "numth/gcd" | , |
| gcd_22_shapes | ) |
在文件 test_gcd.c 第 118 行定义.
引用了 ARRAY_SIZE, gcd_u64(), lmmp_free(), lmmp_gcd_22_(), n, shifted_pair(), t, TEST_CASE, TEST_CHECK, TEST_CHECK_MSG, v0, v1 , 以及 w0.
| TEST_CASE | ( | "numth/gcd" | , |
| gcd_2_multiple_and_gcd_1_zero | ) |
在文件 test_gcd.c 第 163 行定义.
引用了 k, lmmp_free(), lmmp_gcd_1_(), lmmp_gcd_2_(), lmmp_mul_1_(), lmmp_zero, TEST_CASE, TEST_CHECK , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "numth/gcd" | , |
| gcd_empty | ) |
在文件 test_gcd.c 第 189 行定义.
引用了 ARRAY_SIZE, lmmp_free(), lmmp_gcd_hgcd_(), lmmp_gcd_lehmer_(), lmmp_zero, n, TEST_CASE , 以及 TEST_CHECK_MSG.
| void test_gcd | ( | void | ) |
在文件 test_gcd.c 第 218 行定义.
引用了 test_gcd() , 以及 TEST_RUN.
被这些函数引用 main() , 以及 test_gcd().