|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
宏定义 | |
| #define | add_u128(r, x, y) |
| #define | add_u192(i, j) |
| #define | sub_u128(r, x, y) |
| #define | sub_u192(i, j) |
函数 | |
| void | exp2_fixed_128 (uint64_t *dst, uint64_t high, uint64_t low) |
| 计算 floor(exp2(x/B)*B-B), B=2^128 | |
| uint64_t | exp2_fixed_64 (uint64_t x) |
| 计算 floor(exp2(x/B)*B-B), B=2^64 | |
| void | log2_fixed_128 (uint64_t *dst, uint64_t high, uint64_t low) |
| 计算 floor(log2(1+x/B)*B), B=2^128 | |
| uint64_t | log2_fixed_64 (uint64_t x) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| static __uint128_t | umul128_tohi128 (__uint128_t a, __uint128_t b) |
| static __uint128_t | umul128_tohi128_r (__uint128_t a, __uint128_t b) |
变量 | |
| static const uint64_t | lg2_c27 [27][2] |
| static const uint64_t | lg2_L32 [32][3] |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| static const uint64_t | lg2_R32 [32][2] |
| static const uint64_t | xp2_c [13][2] |
| static const uint64_t | xp2_T16 [16][2] |
| static const uint64_t | xp2_T8 [8][3] |
| #define add_u128 | ( | r, | |
| x, | |||
| y ) |
在文件 log2_exp2.c 第 242 行定义.
被这些函数引用 exp2_fixed_128() , 以及 log2_fixed_64().
| #define add_u192 | ( | i, | |
| j ) |
在文件 log2_exp2.c 第 257 行定义.
被这些函数引用 exp2_fixed_128() , 以及 log2_fixed_128().
| #define sub_u128 | ( | r, | |
| x, | |||
| y ) |
在文件 log2_exp2.c 第 249 行定义.
被这些函数引用 log2_fixed_64().
| #define sub_u192 | ( | i, | |
| j ) |
在文件 log2_exp2.c 第 269 行定义.
被这些函数引用 log2_fixed_128().
| void exp2_fixed_128 | ( | uint64_t * | dst, |
| uint64_t | high, | ||
| uint64_t | low ) |
计算 floor(exp2(x/B)*B-B), B=2^128
| high | 输入的小数部分高64位 |
| low | 输入的小数部分低64位 |
| dst | 输出数组(2个元素):dst[0] 为低64位,dst[1] 为高64位 |
在文件 log2_exp2.c 第 461 行定义.
引用了 _umul128to256_(), _usqr128to256_(), A, add_u128, add_u192, B, exp2_fixed_128(), k, r0, r1, umul128_tohi128(), umul128_tohi128_r(), xp2_c, xp2_T16 , 以及 xp2_T8.
被这些函数引用 exp2_fixed_128(), lmmp_cbrt_6_est_() , 以及 lmmp_nthroot_().
| uint64_t exp2_fixed_64 | ( | uint64_t | x | ) |
计算 floor(exp2(x/B)*B-B), B=2^64
| x | 输入的小数部分 |
在文件 log2_exp2.c 第 345 行定义.
引用了 _umul64to128_(), _umul64to64hi_(), A, B, exp2_fixed_64(), k, t, umul128_tohi128_r(), xp2_c, xp2_T16 , 以及 xp2_T8.
被这些函数引用 exp2_fixed_64() , 以及 lmmp_cbrt_3_().
| void log2_fixed_128 | ( | uint64_t * | dst, |
| uint64_t | high, | ||
| uint64_t | low ) |
计算 floor(log2(1+x/B)*B), B=2^128
| high | 输入的小数部分高64位 |
| low | 输入的小数部分低64位 |
| dst | 输出数组(2个元素):dst[0] 为低64位,dst[1] 为高64位 |
在文件 log2_exp2.c 第 392 行定义.
引用了 _umul128to256_(), _usqr128to256_(), A, add_u192, B, k, lg2_c27, lg2_L32, lg2_R32, log2_fixed_128(), sub_u192, umul128_tohi128() , 以及 umul128_tohi128_r().
被这些函数引用 lmmp_cbrt_6_est_(), lmmp_nthroot_() , 以及 log2_fixed_128().
| uint64_t log2_fixed_64 | ( | uint64_t | x | ) |
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
计算 floor(log2(1+x/B)*B), B=2^64
| x | 输入的小数部分 |
在文件 log2_exp2.c 第 281 行定义.
引用了 _umul64to128_(), _umul64to64hi_(), _usqr128to256_(), A, add_u128, B, lg2_c27, lg2_L32, lg2_R32, log2_fixed_64(), sub_u128 , 以及 w2.
被这些函数引用 lmmp_cbrt_3_() , 以及 log2_fixed_64().
|
inlinestatic |
在文件 log2_exp2.c 第 213 行定义.
引用了 a0, a1, b0, b1, umul128_tohi128() , 以及 w2.
被这些函数引用 exp2_fixed_128(), log2_fixed_128() , 以及 umul128_tohi128().
|
inlinestatic |
在文件 log2_exp2.c 第 231 行定义.
引用了 a0, a1, b0, b1 , 以及 umul128_tohi128_r().
被这些函数引用 exp2_fixed_128(), exp2_fixed_64(), log2_fixed_128() , 以及 umul128_tohi128_r().
|
static |
在文件 log2_exp2.c 第 165 行定义.
被这些函数引用 log2_fixed_128() , 以及 log2_fixed_64().
|
static |
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
在文件 log2_exp2.c 第 65 行定义.
被这些函数引用 log2_fixed_128() , 以及 log2_fixed_64().
|
static |
在文件 log2_exp2.c 第 100 行定义.
被这些函数引用 log2_fixed_128() , 以及 log2_fixed_64().
|
static |
在文件 log2_exp2.c 第 195 行定义.
被这些函数引用 exp2_fixed_128() , 以及 exp2_fixed_64().
|
static |
在文件 log2_exp2.c 第 135 行定义.
被这些函数引用 exp2_fixed_128() , 以及 exp2_fixed_64().
|
static |
在文件 log2_exp2.c 第 154 行定义.
被这些函数引用 exp2_fixed_128() , 以及 exp2_fixed_64().