|
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 | isqrt_u64 (u64 x) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| static bool | rem_sum_ok (const mp_limb_t *r, mp_size_t rn, const mp_limb_t *rem, mp_size_t remlen, const mp_limb_t *n, mp_size_t na, mp_size_t mx) |
| static bool | sqrt_floor_ok (const mp_limb_t *r, mp_size_t rn, const mp_limb_t *n, mp_size_t na) |
| TEST_CASE ("numth/perfsqr", perfsqr_filter_perfsqr) | |
| TEST_CASE ("numth/sqrt", invsqrt_newton_semantics) | |
| TEST_CASE ("numth/sqrt", sqrt_3_sqrt_4_and_divide) | |
| TEST_CASE ("numth/sqrt", sqrt_dispatcher_fractional) | |
| TEST_CASE ("numth/sqrt", sqrt_ulong_sqrt_1_sqrt_2) | |
| void | test_sqrt (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_sqrt.c 第 41 行定义.
引用了 isqrt_u64() , 以及 lo.
|
static |
在文件 test_sqrt.c 第 74 行定义.
引用了 lmmp_free(), lmmp_sqr_, n , 以及 rem_sum_ok().
被这些函数引用 rem_sum_ok() , 以及 TEST_CASE().
在文件 test_sqrt.c 第 55 行定义.
引用了 lmmp_free(), lmmp_sqr_, lmmp_zero, n, r2 , 以及 sqrt_floor_ok().
被这些函数引用 sqrt_floor_ok() , 以及 TEST_CASE().
| TEST_CASE | ( | "numth/perfsqr" | , |
| perfsqr_filter_perfsqr | ) |
在文件 test_sqrt.c 第 359 行定义.
引用了 ARRAY_SIZE, lmmp_free(), lmmp_perfsqr_(), lmmp_perfsqr_filter_(), lmmp_perfsqr_filter_1_(), lmmp_sqr_, lmmp_sqrt_(), n, TEST_CASE , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "numth/sqrt" | , |
| invsqrt_newton_semantics | ) |
在文件 test_sqrt.c 第 297 行定义.
引用了 ARRAY_SIZE, lmmp_div_(), lmmp_free(), lmmp_invsqrt_newton_(), lmmp_sqrt_(), lmmp_zero, TEST_CASE , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "numth/sqrt" | , |
| sqrt_3_sqrt_4_and_divide | ) |
在文件 test_sqrt.c 第 139 行定义.
引用了 ARRAY_SIZE, lmmp_free(), lmmp_sqr_, lmmp_sqrt_3_(), lmmp_sqrt_4_(), lmmp_sqrt_divide_(), rem_sum_ok(), sqrt_floor_ok(), TEST_CASE , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "numth/sqrt" | , |
| sqrt_dispatcher_fractional | ) |
在文件 test_sqrt.c 第 203 行定义.
引用了 ARRAY_SIZE, lmmp_add_n_(), lmmp_free(), lmmp_sqr_, lmmp_sqrt_(), lmmp_sqrt_newton_(), lmmp_zero, TEST_CASE , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "numth/sqrt" | , |
| sqrt_ulong_sqrt_1_sqrt_2 | ) |
在文件 test_sqrt.c 第 85 行定义.
引用了 isqrt_u64(), lmmp_cmp_(), lmmp_free(), lmmp_mullh_, lmmp_sqrt_1_(), lmmp_sqrt_2_(), lmmp_sqrt_ulong_(), lmmp_sub_n_(), r1, r2, s, TEST_CASE, TEST_CHECK_EQ , 以及 TEST_CHECK_MSG.
| void test_sqrt | ( | void | ) |
在文件 test_sqrt.c 第 411 行定义.
引用了 TEST_RUN , 以及 test_sqrt().
被这些函数引用 main() , 以及 test_sqrt().