|
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 void | check_floor (const mp_limb_t *A, mp_size_t an, const mp_limb_t *r, mp_size_t rn, ulong root, const mp_limb_t *rem, mp_ptr pw, mp_ptr pw1, mp_ptr rp1, mp_ptr sum) |
| static mp_ptr | pad_add_value (const mp_limb_t *a, mp_size_t la, const mp_limb_t *b, mp_size_t lb, mp_size_t mx, mp_ptr sum) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| static u64 | pow_u64_ovf (u64 r, ulong k, bool *ovf) |
| TEST_CASE ("numth/nthroot", nthroot_top_probe_construction) | |
| TEST_CASE ("numth/nthroot", nthroot_top_random_and_powers) | |
| TEST_CASE ("numth/nthroot", nthroot_ulong_scalar) | |
| void | test_nthroot (void) |
|
static |
在文件 test_nthroot.c 第 57 行定义.
引用了 A, an, check_floor(), lmmp_pow_(), lmmp_zero, pad_add_value() , 以及 TEST_CHECK_MSG.
被这些函数引用 check_floor(), TEST_CASE() , 以及 TEST_CASE().
|
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_nthroot.c 第 43 行定义.
引用了 lmmp_add_n_(), lmmp_free(), lmmp_zero , 以及 pad_add_value().
被这些函数引用 check_floor() , 以及 pad_add_value().
在文件 test_nthroot.c 第 87 行定义.
引用了 k , 以及 pow_u64_ovf().
被这些函数引用 pow_u64_ovf() , 以及 TEST_CASE().
| TEST_CASE | ( | "numth/nthroot" | , |
| nthroot_top_probe_construction | ) |
在文件 test_nthroot.c 第 169 行定义.
引用了 ARRAY_SIZE, check_floor(), lmmp_add_n_(), lmmp_free(), lmmp_mul_1_(), lmmp_nthroot_(), lmmp_nthroot_size_(), lmmp_pow_(), lmmp_zero, t, TEST_CASE , 以及 tp.
| TEST_CASE | ( | "numth/nthroot" | , |
| nthroot_top_random_and_powers | ) |
在文件 test_nthroot.c 第 101 行定义.
引用了 ARRAY_SIZE, check_floor(), lmmp_free(), LMMP_MAX, lmmp_nthroot_(), lmmp_nthroot_size_(), lmmp_pow_(), lmmp_zero, t, TEST_CASE , 以及 tp.
| TEST_CASE | ( | "numth/nthroot" | , |
| nthroot_ulong_scalar | ) |
在文件 test_nthroot.c 第 248 行定义.
引用了 ARRAY_SIZE, k, lmmp_cbrt_ulong_(), lmmp_nthroot_ulong_(), lmmp_sqrt_ulong_(), lo, pow_u64_ovf(), TEST_CASE, TEST_CHECK_EQ , 以及 TEST_CHECK_MSG.
| void test_nthroot | ( | void | ) |
在文件 test_nthroot.c 第 276 行定义.
引用了 test_nthroot() , 以及 TEST_RUN.
被这些函数引用 main() , 以及 test_nthroot().