LMMP
4.3.0
Lamina High-Precision Arithmetic Library
Toggle main menu visibility
载入中...
搜索中...
未找到
mparam.h
浏览该文件的文档.
1
/**
2
* Copyright (C) 2026 HJimmyK (Jericho Knox)
3
*
4
* This file is part of LMMP.
5
*
6
* LMMP is free software: you can redistribute it and/or modify it
7
* under the terms of the GNU Lesser General Public License as
8
* published by the Free Software Foundation; either version 3 of
9
* the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library. If not, see
18
* <https://www.gnu.org/licenses/>.
19
*
20
* SPDX-License-Identifier: LGPL-3.0-or-later
21
*/
22
23
// 线程局部栈与内存池的大小,单位为字节。
24
#define LMMP_DEFAULT_STACK_SIZE (320 * 1024)
25
#define LMMP_POOL_SIZE (512 * 1024)
26
#define MP_UCHAR_MAX (0xff)
27
#define MP_USHORT_MAX (0xffff)
28
#define MP_UINT_MAX (0xffffffff)
29
#define MP_ULONG_MAX (0xffffffffffffffffull)
30
#define MP_SIZE_MAX ((mp_size_t)0xffffffffffffffffULL)
31
#define MP_CHAR_BITS (8)
32
#define MP_SHORT_BITS (16)
33
#define MP_INT_BITS (32)
34
#define MP_LONG_BITS (64)
35
#define MP_CHAR_BYTES (1)
36
#define MP_SHORT_BYTES (2)
37
#define MP_INT_BYTES (4)
38
#define MP_LONG_BYTES (8)
39
// B / 2
40
#define LIMB_B_2 (0x8000000000000000ull)
41
// B / 4
42
#define LIMB_B_4 (0x4000000000000000ull)
43
// B / 8
44
#define LIMB_B_8 (0x2000000000000000ull)
src
lmmp
lmmp
arch
arm64
mparam.h
生成于
, 为 LMMP使用
1.18.0