MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
big_add< High1, Low1, High2, Low2 > 模板结构体 参考

无符号大整数加法 更多...

#include <static_numeric.hpp>

静态 Public 属性

static constexpr uintmax_t result_low = Low1 + Low2
 加法结果的低位
static constexpr uintmax_t result_high = (High1 + High2 + (Low1 + Low2 < Low1))
 加法结果的高位,包含进位

详细描述

template<uintmax_t High1, uintmax_t Low1, uintmax_t High2, uintmax_t Low2>
struct big_add< High1, Low1, High2, Low2 >

无符号大整数加法

模板参数
High1第一个加数的高位
Low1第一个加数的低位
High2第二个加数的高位
Low2第二个加数的低位

计算两个大整数的和,考虑低位相加产生的进位。

在文件 static_numeric.hpp114 行定义.


该结构体的文档由以下文件生成: