|
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 bool | check_pow1_agree (ulong base, ulong exp, mp_size_t(*fn)(mp_ptr, mp_size_t, ulong, ulong)) |
| static void | check_pow1_laws (ulong base, ulong exp) |
| static u64 | modpow32 (u64 base, u64 exp, u32 p) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| TEST_CASE ("numth/pow", pow_1_variants_and_anchors) | |
| TEST_CASE ("numth/pow", pow_multi_variants) | |
| void | test_pow (void) |
| static int | top_bits (u64 x) |
|
static |
在文件 test_pow.c 第 54 行定义.
引用了 check_pow1_agree(), lmmp_free(), lmmp_pow_1_(), lmmp_pow_1_size_(), modpow32(), r1 , 以及 r2.
被这些函数引用 check_pow1_agree() , 以及 TEST_CASE().
在文件 test_pow.c 第 70 行定义.
引用了 check_pow1_laws(), lmmp_free(), lmmp_mul_1_(), lmmp_pow_1_(), lmmp_pow_1_size_(), lmmp_sqr_, rk , 以及 TEST_CHECK_MSG.
被这些函数引用 check_pow1_laws() , 以及 TEST_CASE().
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_pow.c 第 40 行定义.
引用了 modpow32().
| TEST_CASE | ( | "numth/pow" | , |
| pow_1_variants_and_anchors | ) |
在文件 test_pow.c 第 91 行定义.
引用了 ARRAY_SIZE, check_pow1_agree(), check_pow1_laws(), lmmp_free(), lmmp_mullh_, lmmp_pow_1_(), lmmp_u16_pow_1_(), lmmp_u32_pow_1_(), lmmp_u4_pow_1_(), lmmp_u64_pow_1_(), lmmp_u8_pow_1_(), n, prod, TEST_CASE , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "numth/pow" | , |
| pow_multi_variants | ) |
在文件 test_pow.c 第 161 行定义.
引用了 ARRAY_SIZE, c1, k, lmmp_copy, lmmp_free(), lmmp_mul_(), lmmp_pow_(), lmmp_pow_basecase_(), lmmp_pow_size_(), lmmp_pow_win2_(), lo, modpow32(), n, r2, r3, TEST_CASE, TEST_CHECK_MSG , 以及 top_bits().
| void test_pow | ( | void | ) |
在文件 test_pow.c 第 222 行定义.
引用了 test_pow() , 以及 TEST_RUN.
被这些函数引用 main() , 以及 test_pow().
|
static |
在文件 test_pow.c 第 51 行定义.
引用了 top_bits().
被这些函数引用 TEST_CASE(), TEST_CASE(), top_bits() , 以及 top_bits().