LMMP 4.3.0
Lamina High-Precision Arithmetic Library
载入中...
搜索中...
未找到
mparam.h 文件参考

浏览该文件的源代码.

宏定义

#define LIMB_B_2   (0x8000000000000000ull)
#define LIMB_B_4   (0x4000000000000000ull)
#define LIMB_B_8   (0x2000000000000000ull)
#define LMMP_DEFAULT_STACK_SIZE   (320 * 1024)
 Copyright (C) 2026 HJimmyK (Jericho Knox)
#define LMMP_POOL_SIZE   (512 * 1024)
#define MP_CHAR_BITS   (8)
#define MP_CHAR_BYTES   (1)
#define MP_INT_BITS   (32)
#define MP_INT_BYTES   (4)
#define MP_LONG_BITS   (64)
#define MP_LONG_BYTES   (8)
#define MP_SHORT_BITS   (16)
#define MP_SHORT_BYTES   (2)
#define MP_SIZE_MAX   ((mp_size_t)0xffffffffffffffffULL)
#define MP_UCHAR_MAX   (0xff)
#define MP_UINT_MAX   (0xffffffff)
#define MP_ULONG_MAX   (0xffffffffffffffffull)
#define MP_USHORT_MAX   (0xffff)

宏定义说明

◆ LIMB_B_2

#define LIMB_B_2   (0x8000000000000000ull)

在文件 mparam.h 第 40 行定义.

◆ LIMB_B_4

#define LIMB_B_4   (0x4000000000000000ull)

在文件 mparam.h 第 42 行定义.

◆ LIMB_B_8

#define LIMB_B_8   (0x2000000000000000ull)

在文件 mparam.h 第 44 行定义.

◆ LMMP_DEFAULT_STACK_SIZE

#define LMMP_DEFAULT_STACK_SIZE   (320 * 1024)

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

在文件 mparam.h 第 24 行定义.

◆ LMMP_POOL_SIZE

#define LMMP_POOL_SIZE   (512 * 1024)

在文件 mparam.h 第 25 行定义.

◆ MP_CHAR_BITS

#define MP_CHAR_BITS   (8)

在文件 mparam.h 第 31 行定义.

◆ MP_CHAR_BYTES

#define MP_CHAR_BYTES   (1)

在文件 mparam.h 第 35 行定义.

◆ MP_INT_BITS

#define MP_INT_BITS   (32)

在文件 mparam.h 第 33 行定义.

◆ MP_INT_BYTES

#define MP_INT_BYTES   (4)

在文件 mparam.h 第 37 行定义.

◆ MP_LONG_BITS

#define MP_LONG_BITS   (64)

在文件 mparam.h 第 34 行定义.

◆ MP_LONG_BYTES

#define MP_LONG_BYTES   (8)

在文件 mparam.h 第 38 行定义.

◆ MP_SHORT_BITS

#define MP_SHORT_BITS   (16)

在文件 mparam.h 第 32 行定义.

◆ MP_SHORT_BYTES

#define MP_SHORT_BYTES   (2)

在文件 mparam.h 第 36 行定义.

◆ MP_SIZE_MAX

#define MP_SIZE_MAX   ((mp_size_t)0xffffffffffffffffULL)

在文件 mparam.h 第 30 行定义.

◆ MP_UCHAR_MAX

#define MP_UCHAR_MAX   (0xff)

在文件 mparam.h 第 26 行定义.

◆ MP_UINT_MAX

#define MP_UINT_MAX   (0xffffffff)

在文件 mparam.h 第 28 行定义.

◆ MP_ULONG_MAX

#define MP_ULONG_MAX   (0xffffffffffffffffull)

在文件 mparam.h 第 29 行定义.

◆ MP_USHORT_MAX

#define MP_USHORT_MAX   (0xffff)

在文件 mparam.h 第 27 行定义.