|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
函数 | |
| mp_limb_t | lmmp_gcd_11_ (mp_limb_t u, mp_limb_t v) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| mp_limb_t | lmmp_gcd_1_ (mp_srcptr up, mp_size_t un, mp_limb_t v) |
| 计算两个无符号整数的最大公约数 | |
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
Copyright (C) 2026 HJimmyK (Jericho Knox)
| u | 第一个无符号整数 |
| v | 第二个无符号整数 |
引用了 k, lmmp_gcd_11_(), lmmp_param_assert, lmmp_tailing_zeros_ , 以及 t.
被这些函数引用 lmmp_divexact_(), lmmp_gcd_(), lmmp_gcd_11_(), lmmp_gcd_1_(), lmmp_gcd_22_(), lmmp_gcd_lehmer_() , 以及 TEST_CASE().
计算两个无符号整数的最大公约数
| up | 第一个无符号整数指针 |
| un | 第一个无符号整数的 limb 长度 |
| v | 第二个无符号整数 |
引用了 lmmp_gcd_11_(), lmmp_gcd_1_(), lmmp_mod_1_() , 以及 lmmp_param_assert.
被这些函数引用 lmmp_divexact_(), lmmp_gcd_(), lmmp_gcd_1_(), lmmp_gcd_lehmer_(), TEST_CASE() , 以及 TEST_CASE().