|
LAMMP 4.2.0
Lamina High-Precision Arithmetic Library
|
#include "../../../include/lammp/impl/inlines.h"#include "../../../include/lammp/impl/longlong.h"#include "../../../include/lammp/impl/log2_exp2.h"#include "../../../include/lammp/numth.h"#include "../../../include/lammp/lmmpn.h"
cbrt.c 的引用(Include)关系图:函数 | |
| mp_limb_t | lmmp_cbrt_3_ (mp_limb_t a0, mp_limb_t a1, mp_limb_t a2) |
| 计算算数立方根 floor(cbrt(a0+a1*B+a2*B^2)) | |
| void | lmmp_cbrt_6_ (mp_ptr dst, mp_srcptr numa, mp_size_t na) |
| 计算算数立方根 floor(cbrt([numa,na])) | |
| mp_limb_t | lmmp_cbrtapprox_3_ (mp_limb_t a0, mp_limb_t a1, mp_limb_t a2) |
| 计算近似立方根 floor(cbrt(a0+a1*B+a2*B^2))-[0|1] | |
| void | lmmp_cbrtapprox_6_ (mp_ptr dst, mp_srcptr numa, mp_size_t na) |
| 计算近似立方根 floor(cbrt([numa,na]))-[0|1] | |
| static mp_size_t | lmmp_cube_ (mp_ptr restrict dst, mp_srcptr restrict numa, mp_size_t na, mp_ptr restrict tp) |
| 计算 [numa, na] 的立方 | |
| static void | lmmp_cube_3_ (mp_ptr restrict dst, mp_limb_t a) |
| Copyright (C) 2026 HJimmyK(Jericho Knox) | |
计算算数立方根 floor(cbrt(a0+a1*B+a2*B^2))
| a0 | 低位 limb |
| a1 | 中位 limb |
| a2 | 高位 limb |
引用了 a0, a1, a2, LIMB_MAX, lmmp_cbrtapprox_3_(), lmmp_cmp_(), lmmp_cube_3_(), lmmp_param_assert, n , 以及 t.
函数调用图:计算算数立方根 floor(cbrt([numa,na]))
| dst | 结果指针(长度为 2 个limb) |
| numa | 被开方数指针 |
| na | 被开方数的 limb 长度 |
引用了 LIMB_MAX, lmmp_cbrtapprox_6_(), lmmp_cmp_(), lmmp_cube_(), n , 以及 t.
函数调用图:计算近似立方根 floor(cbrt(a0+a1*B+a2*B^2))-[0|1]
| a0 | 低位 limb |
| a1 | 中位 limb |
| a2 | 高位 limb |
引用了 a0, a1, a2, exp2_fixed_64(), LIMB_BITS, LIMB_MAX, lmmp_debug_assert, lmmp_div_1_(), lmmp_inc, lmmp_limb_bits_, lmmp_param_assert, log2_fixed_64() , 以及 n.
被这些函数引用 lmmp_cbrt_3_().
函数调用图:
这是这个函数的调用关系图:计算近似立方根 floor(cbrt([numa,na]))-[0|1]
| dst | 结果指针(长度为 2 个limb) |
| numa | 被开方数指针 |
| na | 被开方数的 limb 长度 |
引用了 exp2_fixed_128(), LIMB_BITS, LIMB_MAX, lmmp_debug_assert, lmmp_div_1_(), lmmp_inc, lmmp_limb_bits_, lmmp_param_assert, log2_fixed_128(), n , 以及 t.
被这些函数引用 lmmp_cbrt_6_().
函数调用图:
这是这个函数的调用关系图:
|
inlinestatic |
计算 [numa, na] 的立方
| dst | 目标数组(3*na个limb) |
| numa | 源数组 |
| na | 源数组的长度 |
| tp | 临时数组(2*na个limb) |
引用了 lmmp_mul_(), lmmp_sqr_, n , 以及 tp.
被这些函数引用 lmmp_cbrt_6_().
函数调用图:
这是这个函数的调用关系图: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/.
引用了 lmmp_mullh_, n , 以及 t.
被这些函数引用 lmmp_cbrt_3_().
这是这个函数的调用关系图: