|
LAMMP 4.2.0
Lamina High-Precision Arithmetic Library
|
#include <stdint.h>
log2_exp2.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:函数 | |
| 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) | |
| 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 第 409 行定义.
引用了 _u192add, coeff, exp2_coeffs, EXP2_COEFFS_SIZE, n , 以及 umul192x128_tohi192().
被这些函数引用 lmmp_cbrtapprox_6_().
函数调用图:
这是这个函数的调用关系图:| uint64_t exp2_fixed_64 | ( | uint64_t | x | ) |
floor(exp2(x/B)*B-B), B=2^64
| x | 输入的小数部分 |
在文件 log2_exp2.c 第 485 行定义.
引用了 _u128add, coeff, exp2_coeffs_64bit, EXP2_COEFFS_SIZE_64BIT, n , 以及 umul128x64_tohi128().
被这些函数引用 lmmp_cbrtapprox_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 第 292 行定义.
引用了 _u192add, _u192sub, coeff, leq_192(), log2_coeffs_1, log2_coeffs_2, log2_coeffs_3, log2_coeffs_4, log2_coeffs_bool_1, log2_coeffs_bool_2, log2_coeffs_bool_3, log2_coeffs_bool_4, LOG2_COEFFS_SIZE_1, LOG2_COEFFS_SIZE_2, LOG2_COEFFS_SIZE_3, LOG2_COEFFS_SIZE_4, n , 以及 umul192x128_tohi192().
被这些函数引用 lmmp_cbrtapprox_6_().
函数调用图:
这是这个函数的调用关系图:| uint64_t log2_fixed_64 | ( | uint64_t | x | ) |
Copyright (C) 2026 HJimmyK(Jericho Knox)
This file is part of LAMMP.
LAMMP is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed WITHOUT ANY WARRANTY.
See https://www.gnu.org/licenses/.
floor(log2(1+x/B)*B), B=2^64
| x | 输入的小数部分 |
在文件 log2_exp2.c 第 458 行定义.
引用了 _u128add, _u128cmp, _u128sub, coeff, log2_coeffs_64bit, log2_coeffs_bool_64bit, LOG2_COEFFS_SIZE_64BIT, n , 以及 umul128x64_tohi128().
被这些函数引用 lmmp_cbrtapprox_3_().
函数调用图:
这是这个函数的调用关系图: