|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
静态数值计算 更多...
#include "NeForce/core/memory/bit.hpp"#include "NeForce/core/numeric/numeric_traits.hpp"#include "NeForce/core/typeinfo/type_traits.hpp"类 | |
| struct | neforce::static_sign< Numerator > |
| 计算整数的符号 更多... | |
| struct | neforce::static_abs< Value > |
| 计算整数的绝对值 更多... | |
| struct | neforce::static_gcd< A, B > |
| 计算两个整数的最大公约数 更多... | |
| struct | neforce::safe_multiply< A, B > |
| 安全的编译期乘法,检查溢出 更多... | |
| struct | neforce::big_less< High1, Low1, High2, Low2 > |
| 比较两个由高位和低位部分组成的无符号大整数 更多... | |
| struct | neforce::big_add< High1, Low1, High2, Low2 > |
| 无符号大整数加法 更多... | |
| struct | neforce::big_sub< High1, Low1, High2, Low2 > |
| 无符号大整数减法 更多... | |
| struct | neforce::big_mul< X, Y > |
| 无符号大整数乘法 更多... | |
| struct | neforce::big_div< NumHigh, NumLow, Den > |
| 大整数除法 更多... | |
| struct | neforce::static_power< Base, Digits > |
| 计算字符串表示的数值的幂 更多... | |
| struct | neforce::static_number< Base, Digits > |
| 将字符串表示的数值转换为编译期数值 更多... | |
| struct | neforce::static_parse_int< Digits > |
| 根据前缀自动识别进制并解析整数 更多... | |
类型定义 | |
| template<char... Digits> | |
| using | neforce::static_select_int_t |
| 根据数值选择最合适整数类型的类型别名 | |