|
MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
无符号大整数加法 更多...
#include <static_numeric.hpp>
静态 Public 属性 | |
| static constexpr uintmax_t | result_low = Low1 + Low2 |
| 加法结果的低位 | |
| static constexpr uintmax_t | result_high = (High1 + High2 + (Low1 + Low2 < Low1)) |
| 加法结果的高位,包含进位 | |
无符号大整数加法
| High1 | 第一个加数的高位 |
| Low1 | 第一个加数的低位 |
| High2 | 第二个加数的高位 |
| Low2 | 第二个加数的低位 |
计算两个大整数的和,考虑低位相加产生的进位。
在文件 static_numeric.hpp 第 114 行定义.