|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
128位有符号和无符号整数类型的完整实现 更多...
类 | |
| struct | neforce::uint128_t |
| 128位无符号整数类型 更多... | |
| struct | neforce::int128_t |
| 128位有符号整数类型 更多... | |
函数 | |
| constexpr uint128_t & | neforce::uint128_t::operator*= (const uint128_t &other) noexcept |
| 乘法赋值 | |
| constexpr uint128_t & | neforce::uint128_t::operator/= (const uint128_t &other) |
| 除法赋值 | |
| constexpr uint128_t & | neforce::uint128_t::operator%= (const uint128_t &other) |
| 取模赋值 | |
| static constexpr void | neforce::uint128_t::divmod128 (const uint128_t ÷nd, const uint128_t &divisor, uint128_t "ient, uint128_t &remainder) |
| 128位除法辅助函数 | |
| constexpr int128_t & | neforce::int128_t::operator/= (const int128_t &other) |
| 除法赋值 | |
| constexpr int128_t & | neforce::int128_t::operator%= (const int128_t &other) |
| 取模赋值 | |
| constexpr int128_t | neforce::uint128_t::to_int128 () const noexcept |
| 转换为有符号128位整数 | |
128位有符号和无符号整数类型的完整实现
|
staticconstexpr |
128位除法辅助函数
| dividend | 被除数 |
| divisor | 除数 |
| quotient | 输出商 |
| remainder | 输出余数 |
| math_exception | 除数为0时抛出 |
在文件 int128.hpp 第 704 行定义.
引用了 neforce::clz64(), divmod128(), hi, lo , 以及 neforce::remainder().
被这些函数引用 divmod128(), operator%=() , 以及 operator/=().
|
constexpr |
取模赋值
| other | 右侧操作数 |
| math_exception | 除数为0时抛出 |
在文件 int128.hpp 第 763 行定义.
引用了 neforce::uint128_t::hi, is_negative(), neforce::uint128_t::lo, negation(), operator%=() , 以及 to_uint128().
被这些函数引用 operator%=().
|
constexpr |
取模赋值
| other | 右侧操作数 |
| math_exception | 除数为0时抛出 |
在文件 int128.hpp 第 697 行定义.
引用了 neforce::copy(), divmod128() , 以及 operator%=().
被这些函数引用 operator%=().
|
constexprnoexcept |
乘法赋值
| other | 右侧操作数 |
在文件 int128.hpp 第 685 行定义.
引用了 mul128() , 以及 operator*=().
被这些函数引用 operator*=().
|
constexpr |
除法赋值
| other | 右侧操作数 |
| math_exception | 除数为0时抛出 |
在文件 int128.hpp 第 749 行定义.
引用了 neforce::uint128_t::hi, is_negative(), neforce::uint128_t::lo, negation(), operator/=() , 以及 to_uint128().
被这些函数引用 operator/=().
|
constexpr |
除法赋值
| other | 右侧操作数 |
| math_exception | 除数为0时抛出 |
在文件 int128.hpp 第 690 行定义.
引用了 neforce::copy(), divmod128() , 以及 operator/=().
被这些函数引用 operator/=().
|
nodiscardconstexprnoexcept |
转换为有符号128位整数
在文件 int128.hpp 第 777 行定义.
引用了 hi, lo , 以及 to_int128().
被这些函数引用 to_int128().