|
LAMMP 4.2.0
Lamina High-Precision Arithmetic Library
|
#include "../../../../include/lammp/impl/longlong.h"#include "../../../../include/lammp/lmmpn.h"#include "../../../../include/lammp/numth.h"
tiny.c 的引用(Include)关系图:函数 | |
| int | lmmp_leading_zeros_ (mp_limb_t x) |
| 计算一个单精度数(limb)中前导零的个数 | |
| int | lmmp_limb_bits_ (mp_limb_t x) |
| Copyright (C) 2026 HJimmyK(Jericho Knox) | |
| int | lmmp_limb_popcnt_ (mp_limb_t x) |
| 计算一个64位无符号整数中1的个数 | |
| mp_limb_t | lmmp_mulh_ (mp_limb_t a, mp_limb_t b) |
| 计算两个64位无符号整数相乘的高位结果 (a*b)/B | |
| void | lmmp_mullh_ (mp_limb_t a, mp_limb_t b, mp_ptr restrict dst) |
| ulong | lmmp_mulmod_ulong_ (ulong a, ulong b, ulong mod, ulongp restrict q) |
| int | lmmp_tailing_zeros_ (mp_limb_t x) |
| 计算一个单精度数(limb)中末尾零的个数 | |
| int lmmp_leading_zeros_ | ( | mp_limb_t | x | ) |
计算一个单精度数(limb)中前导零的个数
| x | 输入的64位无符号整数 |
引用了 n.
| int lmmp_limb_bits_ | ( | mp_limb_t | x | ) |
Copyright (C) 2026 HJimmyK(Jericho Knox)
计算满足 2^k > x 的最小自然数k
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.
| int lmmp_limb_popcnt_ | ( | mp_limb_t | x | ) |
计算一个64位无符号整数中1的个数
| x | 输入的64位无符号整数 |
计算两个64位无符号整数相乘的高位结果 (a*b)/B
| a | 第一个64位无符号整数 |
| b | 第二个64位无符号整数 |
引用了 _u128lshl, _udiv_qrnnd_preinv, _umul64to128_(), lmmp_inv_1_(), lmmp_leading_zeros_ , 以及 n.
函数调用图:| int lmmp_tailing_zeros_ | ( | mp_limb_t | x | ) |
计算一个单精度数(limb)中末尾零的个数
| x | 输入的64位无符号整数 |
引用了 n.