libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
int128_compatibility.hpp File Reference
#include <cassert>
#include <cstdint>
Include dependency graph for int128_compatibility.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  jmmcg::LIBJMMCG_VER_NAMESPACE::int128_t
 
struct  jmmcg::LIBJMMCG_VER_NAMESPACE::uint128_t
 

Namespaces

namespace  jmmcg
 Link with -lrt to include these functions.
 
namespace  jmmcg::LIBJMMCG_VER_NAMESPACE
 

Functions

template<class BFSM , std::size_t BFSz = sizeof(typename std::underlying_type<typename boost::mpl::deref<typename boost::mpl::begin<BFSM>::type>::type::first::value_type>::type)>
class jmmcg::LIBJMMCG_VER_NAMESPACE::bitfield_map jmmcg::LIBJMMCG_VER_NAMESPACE::__attribute__ ((packed))
 
constexpr bool operator== (std::uint64_t rhs) const noexcept(true)
 
constexpr bool operator!= (std::uint64_t rhs) const noexcept(true)
 
constexpr bool operator< (uint128_t const &rhs) const noexcept(true)
 
constexpr uint128_t & operator~ () noexcept(true)
 
constexpr uint128_t & operator&= (uint128_t const &rhs) noexcept(true)
 
constexpr uint128_t operator>> (std::size_t const shift) const noexcept(true)
 
unsigned jmmcg::LIBJMMCG_VER_NAMESPACE::count_trailing_zeroes_compat (const uint128_t value) noexcept(true)
 
unsigned jmmcg::LIBJMMCG_VER_NAMESPACE::count_leading_zeroes_compat (const uint128_t value) noexcept(true)
 

Variables

std::uint64_t low
 
std::int64_t high
 

Function Documentation

◆ operator!=()

constexpr bool __attribute__::operator!= ( std::uint64_t  rhs) const
constexprnoexcept

Definition at line 8 of file int128_compatibility.hpp.

◆ operator&=()

constexpr uint128_t& __attribute__::operator&= ( uint128_t const &  rhs)
constexprnoexcept

Definition at line 26 of file int128_compatibility.hpp.

◆ operator<()

constexpr bool __attribute__::operator< ( uint128_t const &  rhs) const
constexprnoexcept

Definition at line 11 of file int128_compatibility.hpp.

◆ operator==()

constexpr bool __attribute__::operator== ( std::uint64_t  rhs) const
constexprnoexcept

Definition at line 4 of file int128_compatibility.hpp.

◆ operator>>()

constexpr uint128_t __attribute__::operator>> ( std::size_t const  shift) const
constexprnoexcept

Definition at line 32 of file int128_compatibility.hpp.

◆ operator~()

constexpr uint128_t& __attribute__::operator~ ( )
constexprnoexcept

Definition at line 20 of file int128_compatibility.hpp.

Variable Documentation

◆ high

std::uint64_t high

Definition at line 1 of file int128_compatibility.hpp.

◆ low

std::uint64_t low

Definition at line 0 of file int128_compatibility.hpp.