|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
#include "lmmp/lmmpn.h"#include "mparam.h"#include "cases.h"#include "support/lmmp_test_utils.h"#include <string.h>函数 | |
| TEST_CASE ("div/basecase_divide", div_basecase_vs_divide) | |
| TEST_CASE ("div/general", div_general_relation) | |
| TEST_CASE ("div/inv", inv_1_inv_2_1) | |
| TEST_CASE ("div/normalized", div_s_normalized_relation) | |
| TEST_CASE ("div/single", div_1_mod_1) | |
| TEST_CASE ("div/single", mod_preinv_1_boundary) | |
| void | test_div (void) |
| static void | verify_div_relation (const mp_limb_t *n, mp_size_t na, const mp_limb_t *d, mp_size_t nb, const mp_limb_t *q, mp_size_t qn, const mp_limb_t *r, mp_size_t rn) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| TEST_CASE | ( | "div/basecase_divide" | , |
| div_basecase_vs_divide | ) |
在文件 test_div.c 第 170 行定义.
引用了 ARRAY_SIZE, lmmp_div_basecase_(), lmmp_div_divide_(), lmmp_free(), lmmp_inv_2_1_(), numb, TEST_CASE, TEST_CHECK_EQ , 以及 verify_div_relation().
| TEST_CASE | ( | "div/general" | , |
| div_general_relation | ) |
在文件 test_div.c 第 124 行定义.
引用了 ARRAY_SIZE, lmmp_div_(), lmmp_free(), n, TEST_CASE , 以及 verify_div_relation().
| TEST_CASE | ( | "div/inv" | , |
| inv_1_inv_2_1 | ) |
在文件 test_div.c 第 213 行定义.
引用了 LIMB_B_2, lmmp_inv_1_(), lmmp_inv_2_1_(), lmmp_mul_1_(), prod, TEST_CASE, TEST_CHECK, TEST_CHECK_EQ , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "div/normalized" | , |
| div_s_normalized_relation | ) |
在文件 test_div.c 第 146 行定义.
引用了 ARRAY_SIZE, lmmp_div_s_(), lmmp_free(), numb, TEST_CASE , 以及 verify_div_relation().
| TEST_CASE | ( | "div/single" | , |
| div_1_mod_1 | ) |
在文件 test_div.c 第 47 行定义.
引用了 k, LIMB_B_2, lmmp_div_1_(), lmmp_div_1_s_(), lmmp_free(), lmmp_inv_1_(), lmmp_leading_zeros_, lmmp_mod_1_(), lmmp_mod_preinv_1_(), lmmp_mul_1_(), n, t, TEST_CASE, TEST_CHECK , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "div/single" | , |
| mod_preinv_1_boundary | ) |
在文件 test_div.c 第 91 行定义.
引用了 ARRAY_SIZE, k, lmmp_free(), lmmp_inv_1_(), lmmp_leading_zeros_, lmmp_mod_1_(), lmmp_mod_preinv_1_(), n, TEST_CASE, TEST_CHECK , 以及 TEST_CHECK_EQ.
| void test_div | ( | void | ) |
在文件 test_div.c 第 236 行定义.
引用了 test_div() , 以及 TEST_RUN.
被这些函数引用 main() , 以及 test_div().
|
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_div.c 第 31 行定义.
引用了 lmmp_add_n_(), lmmp_free(), lmmp_mul_(), n, t, TEST_CHECK_MSG , 以及 verify_div_relation().
被这些函数引用 TEST_CASE(), TEST_CASE(), TEST_CASE() , 以及 verify_div_relation().