MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
big_div< NumHigh, NumLow, Den > 模板结构体 参考

大整数除法 更多...

#include <static_numeric.hpp>

静态 Public 属性

static constexpr uintmax_t quotient_high = NumHigh / Den
 商的高位
static constexpr uintmax_t quotient_low = division_result::quotient
 商的低位
static constexpr uintmax_t remainder = division_result::remainder / shift_factor1
 余数

详细描述

template<uintmax_t NumHigh, uintmax_t NumLow, uintmax_t Den>
struct big_div< NumHigh, NumLow, Den >

大整数除法

模板参数
NumHigh被除数的高位
NumLow被除数的低位
Den除数

使用位移优化的大整数除法,提高计算效率。

在文件 static_numeric.hpp221 行定义.


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