|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
#include "impl/inlines.h"#include "impl/tmp_alloc.h"#include "lmmp/lmmpn.h"#include "lmmp/numth.h"宏定义 | |
| #define | MAX_EXP 48 |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
函数 | |
| mp_size_t | lmmp_remove_ (mp_ptr np, mp_size_t *restrict nn, mp_srcptr dp, mp_size_t dn) |
| static mp_size_t | try_div_ (mp_ptr qp, mp_ptr rp, mp_srcptr divp, mp_size_t divn, mp_srcptr numb, mp_size_t nb) |
| qp 为商,rp 为余数,divp 为被除数,divn 为被除数长度,numb 为除数,nb 为除数长度 如果无法整除,则返回0,否则返回除数 qp 的长度 | |
| #define MAX_EXP 48 |
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
被这些函数引用 lmmp_remove_().
引用了 lmmp_copy, lmmp_param_assert, lmmp_remove_(), lmmp_sqr_, LMMP_SWAP, MAX_EXP, prod, restrict, rp, TALLOC_TYPE, TEMP_DECL, TEMP_FREE , 以及 try_div_().
|
inlinestatic |
qp 为商,rp 为余数,divp 为被除数,divn 为被除数长度,numb 为除数,nb 为除数长度 如果无法整除,则返回0,否则返回除数 qp 的长度
引用了 lmmp_cmp_(), lmmp_div_(), lmmp_zero_q_(), numb, rp , 以及 try_div_().
被这些函数引用 lmmp_remove_() , 以及 try_div_().