|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
函数 | |
| mp_size_t | lmmp_from_decimal_ (mp_ptr dst, const char *src, mp_size_t len) |
| 十进制字符串转limb数组 [src,len,10] to [dst,return value,B] | |
| mp_size_t | lmmp_from_decimal_len_ (const char *src, mp_size_t len) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
十进制字符串转limb数组 [src,len,10] to [dst,return value,B]
| dst | 结果输出指针 |
| src | 字符串源指针 |
| len | 字符串长度 |
在文件 from_decimal.c 第 43 行定义.
引用了 BALLOC_TYPE, DEC_BASE, FROM_STR_BASEPOW_THRESHOLD, LIMB_BITS, lmmp_bases_table, lmmp_copy, lmmp_dec_pow_table_(), lmmp_from_decimal_(), lmmp_from_str_basecase_(), lmmp_from_str_divide_(), lmmp_from_str_len_(), lmmp_param_assert, lmmp_shr_(), mp_basepow_t::np, mp_basepow_t::p, TEMP_B_DECL, TEMP_B_FREE , 以及 tp.
被这些函数引用 check_decimal_one(), lmmp_from_decimal_() , 以及 TEST_CASE().
Copyright (C) 2026 HJimmyK (Jericho Knox)
计算十进制字符串转limb数组所需的 limb 缓冲区长度
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
Copyright (C) 2026 HJimmyK (Jericho Knox)
| src | 输入字符串指针 |
| len | 字符串长度 |
在文件 from_decimal.c 第 31 行定义.
引用了 DEC_BASE, lmmp_bases_table, lmmp_from_decimal_len_() , 以及 lmmp_mulh_.
被这些函数引用 check_decimal_one(), lmmp_from_decimal_len_() , 以及 TEST_CASE().