#include "tensorstore/util/int4.h"
class tensorstore::Int4Padded;

Int4 type padded to int8.

Constructors

constexpr Int4Padded();

Zero initialization.

explicit constexpr Int4Padded(T x);

Possibly lossy conversion from any type convertible to int8_t.

Conversion operators

constexpr operator int8_t() const;

Lossless conversion to int8_t.

Assignment operators

Int4Paddedoperator=(bool v);

Bool assignment.

Int4Paddedoperator=(T v);

Possibly lossy conversion from any integer type.

Arithmetic operators

friend Int4Padded operator+(Int4Padded aInt4Padded b);

Addition operator.

friend Int4Paddedoperator+=(Int4PaddedaInt4Padded b);

Addition assignment operator.

friend Int4Padded operator-(Int4Padded aInt4Padded b);

Subtraction operator.

friend Int4Paddedoperator-=(Int4PaddedaInt4Padded b);

Subtraction assignment operator.

friend Int4Padded operator*(Int4Padded aInt4Padded b);

Multiplication operator.

friend Int4Paddedoperator*=(Int4PaddedaInt4Padded b);

Multiplication assignment operator.

friend Int4Padded operator/(Int4Padded aInt4Padded b);

Division operator.

friend Int4Paddedoperator/=(Int4PaddedaInt4Padded b);

Division assignment operator.

friend Int4Padded operator%(Int4Padded aInt4Padded b);

Modulo operator.

friend Int4Paddedoperator%=(Int4PaddedaInt4Padded b);

Modulo assignment operator.

friend Int4Padded operator-(Int4Padded a);

Unary negation.

friend Int4Padded operator+(Int4Padded a);

Unary plus.

friend Int4Padded operator++(Int4Paddeda);

Pre-increment.

friend Int4Padded operator--(Int4Paddeda);

Pre-decrement.

friend Int4Padded operator++(Int4Paddedaint);

Post-increment.

friend Int4Padded operator--(Int4Paddedaint);

Post-decrement.

Bitwise operators

friend Int4Padded operator&(Int4Padded aInt4Padded b);

Bitwise and operator.

friend Int4Paddedoperator&=(Int4PaddedaInt4Padded b);

Bitwise and assignment operator.

friend Int4Padded operator|(Int4Padded aInt4Padded b);

Bitwise or operator.

friend Int4Paddedoperator|=(Int4PaddedaInt4Padded b);

Bitwise or assignment operator.

friend Int4Padded operator^(Int4Padded aInt4Padded b);

Bitwise xor operator.

friend Int4Paddedoperator^=(Int4PaddedaInt4Padded b);

Bitwise xor assignment operator.

friend Int4Padded operator<<(Int4Padded aInt4Padded b);

Bitwise left shift operator.

friend Int4Paddedoperator<<=(Int4PaddedaInt4Padded b);

Bitwise left shift assignment operator.

friend Int4Padded operator>>(Int4Padded aInt4Padded b);

Bitwise right shift operator.

friend Int4Paddedoperator>>=(Int4PaddedaInt4Padded b);

Bitwise right shift assignment operator.

friend Int4Padded operator~(Int4Padded a);

Unary inverse.

Power functions

Int4Padded tensorstore::pow(Int4Padded xInt4Padded y);

Raises a number to the given power (\(x^y\)).