MeshLib C++ Docs
Loading...
Searching...
No Matches

#include <MRMesh/MRFastInt.h>

Public Member Functions

 Int128Mul256 () noexcept=default
template<typename T>
requires detail::cFitsFastInt128<T>
constexpr Int128Mul256 (T v) noexcept
constexpr operator FastInt128 () const noexcept

Friends

constexpr FastInt128 operator+ (Int128Mul256 a) noexcept
constexpr FastInt128 operator- (Int128Mul256 a) noexcept
constexpr FastInt128 operator+ (Int128Mul256 a, Int128Mul256 b) noexcept
constexpr FastInt128 operator- (Int128Mul256 a, Int128Mul256 b) noexcept
constexpr FastInt128 operator/ (Int128Mul256 a, Int128Mul256 b) noexcept
constexpr FastInt256 operator* (Int128Mul256 a, Int128Mul256 b) noexcept
constexpr bool operator== (Int128Mul256 a, Int128Mul256 b) noexcept
constexpr auto operator<=> (Int128Mul256 a, Int128Mul256 b) noexcept

Detailed Description

a 128-bit integer, which product with another one is an exact 256-bit integer; addition, subtraction and division stay 128-bit and can overflow just like FastInt128

Constructor & Destructor Documentation

◆ Int128Mul256() [1/2]

MR::Int128Mul256::Int128Mul256 ( )
defaultnoexcept

◆ Int128Mul256() [2/2]

template<typename T>
requires detail::cFitsFastInt128<T>
MR::Int128Mul256::Int128Mul256 ( T v)
inlineconstexprnoexcept

Member Function Documentation

◆ operator FastInt128()

MR::Int128Mul256::operator FastInt128 ( ) const
inlineexplicitnodiscardconstexprnoexcept

◆ operator*

FastInt256 operator* ( Int128Mul256 a,
Int128Mul256 b )
friend

◆ operator+ [1/2]

FastInt128 operator+ ( Int128Mul256 a)
friend

◆ operator+ [2/2]

FastInt128 operator+ ( Int128Mul256 a,
Int128Mul256 b )
friend

◆ operator- [1/2]

FastInt128 operator- ( Int128Mul256 a)
friend

◆ operator- [2/2]

FastInt128 operator- ( Int128Mul256 a,
Int128Mul256 b )
friend

◆ operator/

FastInt128 operator/ ( Int128Mul256 a,
Int128Mul256 b )
friend

◆ operator<=>

auto operator<=> ( Int128Mul256 a,
Int128Mul256 b )
friend

◆ operator==

bool operator== ( Int128Mul256 a,
Int128Mul256 b )
friend

The documentation for this class was generated from the following file: