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