KFR

Bitwise functions

bitwisenot

template<typename T1>
T1 bitwisenot(const T1 &x)

Bitwise Not

Source:

template <typename T1>
CMT_INLINE T1 bitwisenot(const T1& x)

bitwiseand

template<typename T1, typename T2>
common_type<T1, T2> bitwiseand(const T1 &x, const T2 &y)

Bitwise And

Source:

template <typename T1, typename T2>
CMT_INLINE common_type<T1, T2> bitwiseand(const T1& x, const T2& y)

bitwiseandnot

template<typename T1, typename T2>
common_type<T1, T2> bitwiseandnot(const T1 &x, const T2 &y)

Bitwise And-Not

Source:

template <typename T1, typename T2>
CMT_INLINE common_type<T1, T2> bitwiseandnot(const T1& x, const T2& y)

bitwiseor

template<typename T1, typename T2>
common_type<T1, T2> bitwiseor(const T1 &x, const T2 &y)

Bitwise Or

Source:

template <typename T1, typename T2>
CMT_INLINE common_type<T1, T2> bitwiseor(const T1& x, const T2& y)

bitwisexor

template<typename T1, typename T2>
common_type<T1, T2> bitwisexor(const T1 &x, const T2 &y)

Bitwise Xor (Exclusive Or)

Source:

template <typename T1, typename T2>
CMT_INLINE common_type<T1, T2> bitwisexor(const T1& x, const T2& y)

shl

template<typename T1, typename T2>
common_type<T1, T2> shl(const T1 &left, const T2 &right)

Bitwise Left shift

Source:

template <typename T1, typename T2>
CMT_INLINE common_type<T1, T2> shl(const T1& left, const T2& right)

shr

template<typename T1, typename T2>
common_type<T1, T2> shr(const T1 &left, const T2 &right)

Bitwise Right shift

Source:

template <typename T1, typename T2>
CMT_INLINE common_type<T1, T2> shr(const T1& left, const T2& right)

rol

template<typename T1, typename T2>
common_type<T1, T2> rol(const T1 &left, const T2 &right)

Bitwise Left Rotate

Source:

template <typename T1, typename T2>
CMT_INLINE common_type<T1, T2> rol(const T1& left, const T2& right)

ror

template<typename T1, typename T2>
common_type<T1, T2> ror(const T1 &left, const T2 &right)

Bitwise Right Rotate

Source:

template <typename T1, typename T2>
CMT_INLINE common_type<T1, T2> ror(const T1& left, const T2& right)