TLFloat
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
tlfloat_uint128_t Struct Reference

#include <tlfloat/tlfloat.h>

Collaboration diagram for tlfloat_uint128_t:
Collaboration graph
[legend]

Public Member Functions

 tlfloat_uint128_t ()
 
 tlfloat_uint128_t (const tlfloat_uint128_t_ &v)
 
 operator tlfloat_uint128_t_ () const
 
 tlfloat_uint128_t (const double &d)
 
 operator double () const
 
 tlfloat_uint128_t (const tlfloat_int128_t &d)
 
 operator tlfloat_int128_t () const
 
template<typename T , typename std::enable_if<(std::is_integral< T >::value &&!std::is_unsigned< T >::value &&sizeof(T)<=8), int >::type = 0>
 tlfloat_uint128_t (const T &i)
 
template<typename T , typename std::enable_if<(std::is_integral< T >::value &&std::is_unsigned< T >::value &&sizeof(T)<=8), int >::type = 0>
 tlfloat_uint128_t (const T &u)
 
template<typename T , typename std::enable_if<(std::is_integral< T >::value &&!std::is_unsigned< T >::value &&sizeof(T)<=8), int >::type = 0>
 operator T () const
 
template<typename T , typename std::enable_if<(std::is_integral< T >::value &&std::is_unsigned< T >::value &&sizeof(T)<=8), int >::type = 0>
 operator T () const
 
 tlfloat_uint128_t (const tlfloat_quad_ &f)
 
 operator tlfloat_quad_ () const
 
 tlfloat_uint128_t (const tlfloat_octuple_ &f)
 
 operator tlfloat_octuple_ () const
 
tlfloat_uint128_t operator+ (const tlfloat_uint128_t &rhs) const
 
tlfloat_uint128_t operator- (const tlfloat_uint128_t &rhs) const
 
tlfloat_uint128_t operator* (const tlfloat_uint128_t &rhs) const
 
tlfloat_uint128_t operator/ (const tlfloat_uint128_t &rhs) const
 
tlfloat_uint128_t operator% (const tlfloat_uint128_t &rhs) const
 
tlfloat_uint128_t operator- () const
 
tlfloat_uint128_t operator+ () const
 
tlfloat_uint128_t operator& (const tlfloat_uint128_t &rhs) const
 
tlfloat_uint128_t operator| (const tlfloat_uint128_t &rhs) const
 
tlfloat_uint128_t operator^ (const tlfloat_uint128_t &rhs) const
 
tlfloat_uint128_t operator~ () const
 
tlfloat_uint128_t operator<< (const int &rhs) const
 
tlfloat_uint128_t operator>> (const int &rhs) const
 
tlfloat_uint128_toperator<<= (int n)
 
tlfloat_uint128_toperator>>= (int n)
 
bool operator== (const tlfloat_uint128_t &rhs) const
 
bool operator!= (const tlfloat_uint128_t &rhs) const
 
bool operator< (const tlfloat_uint128_t &rhs) const
 
bool operator<= (const tlfloat_uint128_t &rhs) const
 
bool operator> (const tlfloat_uint128_t &rhs) const
 
bool operator>= (const tlfloat_uint128_t &rhs) const
 
tlfloat_uint128_toperator++ ()
 
tlfloat_uint128_toperator-- ()
 
tlfloat_uint128_t operator++ (int)
 
tlfloat_uint128_t operator-- (int)
 

Public Attributes

tlfloat_uint128_t_ value
 

Detailed Description

tlfloat_uint128_t is a trivially copyable type for handling 128-bit unsigned integer in C and C++11. The data size and data structure of this type are the same as ordinary integer types. When compling C code, this type is an alias for tlfloat_uint128_t_. When compling C++ code without __uint128_t support, this is a struct encapsulating a tlfloat_int128_t variable with operators overloaded.

Constructor & Destructor Documentation

◆ tlfloat_uint128_t() [1/8]

tlfloat_uint128_t::tlfloat_uint128_t ( )
inline

◆ tlfloat_uint128_t() [2/8]

tlfloat_uint128_t::tlfloat_uint128_t ( const tlfloat_uint128_t_ v)
inline

◆ tlfloat_uint128_t() [3/8]

tlfloat_uint128_t::tlfloat_uint128_t ( const double &  d)
inlineexplicit

◆ tlfloat_uint128_t() [4/8]

tlfloat_uint128_t::tlfloat_uint128_t ( const tlfloat_int128_t d)
inlineexplicit

◆ tlfloat_uint128_t() [5/8]

template<typename T , typename std::enable_if<(std::is_integral< T >::value &&!std::is_unsigned< T >::value &&sizeof(T)<=8), int >::type = 0>
tlfloat_uint128_t::tlfloat_uint128_t ( const T &  i)
inlineexplicit

◆ tlfloat_uint128_t() [6/8]

template<typename T , typename std::enable_if<(std::is_integral< T >::value &&std::is_unsigned< T >::value &&sizeof(T)<=8), int >::type = 0>
tlfloat_uint128_t::tlfloat_uint128_t ( const T &  u)
inline

◆ tlfloat_uint128_t() [7/8]

tlfloat_uint128_t::tlfloat_uint128_t ( const tlfloat_quad_ f)
inlineexplicit

◆ tlfloat_uint128_t() [8/8]

tlfloat_uint128_t::tlfloat_uint128_t ( const tlfloat_octuple_ f)
inlineexplicit

Member Function Documentation

◆ operator double()

tlfloat_uint128_t::operator double ( ) const
inlineexplicit

◆ operator T() [1/2]

template<typename T , typename std::enable_if<(std::is_integral< T >::value &&!std::is_unsigned< T >::value &&sizeof(T)<=8), int >::type = 0>
tlfloat_uint128_t::operator T ( ) const
inlineexplicit

◆ operator T() [2/2]

template<typename T , typename std::enable_if<(std::is_integral< T >::value &&std::is_unsigned< T >::value &&sizeof(T)<=8), int >::type = 0>
tlfloat_uint128_t::operator T ( ) const
inlineexplicit

◆ operator tlfloat_int128_t()

tlfloat_uint128_t::operator tlfloat_int128_t ( ) const
inlineexplicit

◆ operator tlfloat_octuple_()

tlfloat_uint128_t::operator tlfloat_octuple_ ( ) const
inlineexplicit

◆ operator tlfloat_quad_()

tlfloat_uint128_t::operator tlfloat_quad_ ( ) const
inlineexplicit

◆ operator tlfloat_uint128_t_()

tlfloat_uint128_t::operator tlfloat_uint128_t_ ( ) const
inline

◆ operator!=()

bool tlfloat_uint128_t::operator!= ( const tlfloat_uint128_t rhs) const
inline

◆ operator%()

tlfloat_uint128_t tlfloat_uint128_t::operator% ( const tlfloat_uint128_t rhs) const
inline

◆ operator&()

tlfloat_uint128_t tlfloat_uint128_t::operator& ( const tlfloat_uint128_t rhs) const
inline

◆ operator*()

tlfloat_uint128_t tlfloat_uint128_t::operator* ( const tlfloat_uint128_t rhs) const
inline

◆ operator+() [1/2]

tlfloat_uint128_t tlfloat_uint128_t::operator+ ( ) const
inline

◆ operator+() [2/2]

tlfloat_uint128_t tlfloat_uint128_t::operator+ ( const tlfloat_uint128_t rhs) const
inline

◆ operator++() [1/2]

tlfloat_uint128_t & tlfloat_uint128_t::operator++ ( )
inline

◆ operator++() [2/2]

tlfloat_uint128_t tlfloat_uint128_t::operator++ ( int  )
inline

◆ operator-() [1/2]

tlfloat_uint128_t tlfloat_uint128_t::operator- ( ) const
inline

◆ operator-() [2/2]

tlfloat_uint128_t tlfloat_uint128_t::operator- ( const tlfloat_uint128_t rhs) const
inline

◆ operator--() [1/2]

tlfloat_uint128_t & tlfloat_uint128_t::operator-- ( )
inline

◆ operator--() [2/2]

tlfloat_uint128_t tlfloat_uint128_t::operator-- ( int  )
inline

◆ operator/()

tlfloat_uint128_t tlfloat_uint128_t::operator/ ( const tlfloat_uint128_t rhs) const
inline

◆ operator<()

bool tlfloat_uint128_t::operator< ( const tlfloat_uint128_t rhs) const
inline

◆ operator<<()

tlfloat_uint128_t tlfloat_uint128_t::operator<< ( const int &  rhs) const
inline

◆ operator<<=()

tlfloat_uint128_t & tlfloat_uint128_t::operator<<= ( int  n)
inline

◆ operator<=()

bool tlfloat_uint128_t::operator<= ( const tlfloat_uint128_t rhs) const
inline

◆ operator==()

bool tlfloat_uint128_t::operator== ( const tlfloat_uint128_t rhs) const
inline

◆ operator>()

bool tlfloat_uint128_t::operator> ( const tlfloat_uint128_t rhs) const
inline

◆ operator>=()

bool tlfloat_uint128_t::operator>= ( const tlfloat_uint128_t rhs) const
inline

◆ operator>>()

tlfloat_uint128_t tlfloat_uint128_t::operator>> ( const int &  rhs) const
inline

◆ operator>>=()

tlfloat_uint128_t & tlfloat_uint128_t::operator>>= ( int  n)
inline

◆ operator^()

tlfloat_uint128_t tlfloat_uint128_t::operator^ ( const tlfloat_uint128_t rhs) const
inline

◆ operator|()

tlfloat_uint128_t tlfloat_uint128_t::operator| ( const tlfloat_uint128_t rhs) const
inline

◆ operator~()

tlfloat_uint128_t tlfloat_uint128_t::operator~ ( ) const
inline

Member Data Documentation

◆ value

tlfloat_uint128_t_ tlfloat_uint128_t::value

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