|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
#include "lmmp/lmmpn.h"#include "mparam.h"#include "lmmp/numth.h"#include "cases.h"#include "support/lmmp_test_utils.h"#include <string.h>结构体 | |
| struct | overlap_buf_t |
函数 | |
| static void | overlap_buf_check_guard (const overlap_buf_t *ob, int w, const char *tag) |
| static overlap_buf_t | overlap_buf_create (mp_size_t n, size_t g) |
| static mp_ptr | overlap_buf_dst_of (const overlap_buf_t *ob, int w) |
| static void | overlap_buf_free (overlap_buf_t *ob) |
| static void | overlap_buf_refill (overlap_buf_t *ob, int w) |
| static void | overlap_buf_set_src (overlap_buf_t *ob) |
| void | test_asm_boundary (void) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| TEST_CASE ("asm/boundary", add_nc_sub_nc_all_ones) | |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| TEST_CASE ("asm/boundary", div_1_by_one_and_power_of_two) | |
| TEST_CASE ("asm/boundary", inv_and_mulmod_boundary) | |
| TEST_CASE ("asm/boundary", mul_1_addmul_submul_extremes) | |
| TEST_CASE ("asm/boundary", shl_shr_c_overlap_family) | |
| TEST_CASE ("asm/boundary", shl_shr_inplace) | |
| TEST_CASE ("asm/boundary", shl_shr_overlap_family) | |
| struct overlap_buf_t |
|
static |
在文件 test_asm_boundary.c 第 160 行定义.
引用了 overlap_buf_t::buf, overlap_buf_t::cap, n, overlap_buf_check_guard(), overlap_buf_dst_of(), overlap_buf_t::snap , 以及 TEST_CHECK_MSG.
被这些函数引用 overlap_buf_check_guard(), TEST_CASE() , 以及 TEST_CASE().
|
static |
在文件 test_asm_boundary.c 第 127 行定义.
引用了 overlap_buf_t::buf, overlap_buf_t::cap, n, overlap_buf_t::numa, overlap_buf_create(), overlap_buf_t::sep, overlap_buf_t::snap , 以及 overlap_buf_t::src.
被这些函数引用 overlap_buf_create(), TEST_CASE() , 以及 TEST_CASE().
|
static |
在文件 test_asm_boundary.c 第 156 行定义.
引用了 overlap_buf_t::numa, overlap_buf_dst_of() , 以及 overlap_buf_t::sep.
被这些函数引用 overlap_buf_check_guard(), overlap_buf_dst_of(), TEST_CASE() , 以及 TEST_CASE().
|
static |
在文件 test_asm_boundary.c 第 137 行定义.
引用了 overlap_buf_t::buf, lmmp_free(), overlap_buf_free(), overlap_buf_t::sep, overlap_buf_t::snap , 以及 overlap_buf_t::src.
被这些函数引用 overlap_buf_free(), TEST_CASE() , 以及 TEST_CASE().
|
static |
在文件 test_asm_boundary.c 第 149 行定义.
引用了 overlap_buf_t::buf, overlap_buf_t::cap, lmmp_copy, overlap_buf_t::n, overlap_buf_t::numa, overlap_buf_refill(), overlap_buf_t::snap , 以及 overlap_buf_t::src.
被这些函数引用 overlap_buf_refill(), TEST_CASE() , 以及 TEST_CASE().
|
static |
在文件 test_asm_boundary.c 第 144 行定义.
引用了 overlap_buf_t::g, overlap_buf_t::n, overlap_buf_set_src() , 以及 overlap_buf_t::src.
被这些函数引用 overlap_buf_set_src(), TEST_CASE() , 以及 TEST_CASE().
| void test_asm_boundary | ( | 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_asm_boundary.c 第 318 行定义.
引用了 test_asm_boundary() , 以及 TEST_RUN.
被这些函数引用 main() , 以及 test_asm_boundary().
| TEST_CASE | ( | "asm/boundary" | , |
| add_nc_sub_nc_all_ones | ) |
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_asm_boundary.c 第 31 行定义.
引用了 lmmp_add_nc_(), lmmp_free(), lmmp_sub_nc_(), n, TEST_CASE , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "asm/boundary" | , |
| div_1_by_one_and_power_of_two | ) |
在文件 test_asm_boundary.c 第 258 行定义.
引用了 ARRAY_SIZE, lmmp_div_1_(), lmmp_free(), lmmp_mul_1_(), n, t, TEST_CASE, TEST_CHECK , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "asm/boundary" | , |
| inv_and_mulmod_boundary | ) |
在文件 test_asm_boundary.c 第 291 行定义.
引用了 LIMB_B_2, lmmp_div_1_(), lmmp_inv_1_(), lmmp_mul_1_(), lmmp_mullh_, lmmp_mulmod_ulong_(), prod, r2, TEST_CASE, TEST_CHECK , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "asm/boundary" | , |
| mul_1_addmul_submul_extremes | ) |
在文件 test_asm_boundary.c 第 59 行定义.
引用了 c1, lmmp_add_n_(), lmmp_addmul_1_(), lmmp_free(), lmmp_mul_1_(), lmmp_sub_n_(), lmmp_submul_1_(), n, t, TEST_CASE , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "asm/boundary" | , |
| shl_shr_c_overlap_family | ) |
在文件 test_asm_boundary.c 第 211 行定义.
引用了 ARRAY_SIZE, k, lmmp_free(), lmmp_shl_(), lmmp_shl_c_(), lmmp_shr_(), lmmp_shr_c_(), n, overlap_buf_t::numa, overlap_buf_check_guard(), overlap_buf_create(), overlap_buf_dst_of(), overlap_buf_free(), overlap_buf_refill(), overlap_buf_set_src(), overlap_buf_t::src, TEST_CASE , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "asm/boundary" | , |
| shl_shr_inplace | ) |
在文件 test_asm_boundary.c 第 92 行定义.
引用了 ARRAY_SIZE, lmmp_free(), lmmp_shl_(), lmmp_shr_(), n, r1, s, TEST_CASE , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "asm/boundary" | , |
| shl_shr_overlap_family | ) |
在文件 test_asm_boundary.c 第 172 行定义.
引用了 ARRAY_SIZE, k, lmmp_free(), lmmp_shl_(), lmmp_shr_(), n, overlap_buf_t::numa, overlap_buf_check_guard(), overlap_buf_create(), overlap_buf_dst_of(), overlap_buf_free(), overlap_buf_refill(), overlap_buf_set_src(), overlap_buf_t::src, TEST_CASE , 以及 TEST_CHECK_EQ.