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

Int4 type padded to int8.

Constructors

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

Int4Padded& operator=(bool v);

Bool assignment.

Int4Padded& operator=(T v);

Possibly lossy conversion from any integer type.

Arithmetic operators

friend Int4Padded operator+(Int4Padded a, Int4Padded b);

Addition operator.

friend Int4Padded& operator+=(Int4Padded& a, Int4Padded b);

Addition assignment operator.

friend Int4Padded operator-(Int4Padded a, Int4Padded b);

Subtraction operator.

friend Int4Padded& operator-=(Int4Padded& a, Int4Padded b);

Subtraction assignment operator.

friend Int4Padded operator*(Int4Padded a, Int4Padded b);

Multiplication operator.

friend Int4Padded& operator*=(Int4Padded& a, Int4Padded b);

Multiplication assignment operator.

friend Int4Padded operator/(Int4Padded a, Int4Padded b);

Division operator.

friend Int4Padded& operator/=(Int4Padded& a, Int4Padded b);

Division assignment operator.

friend Int4Padded operator%(Int4Padded a, Int4Padded b);

Modulo operator.

friend Int4Padded& operator%=(Int4Padded& a, Int4Padded b);

Modulo assignment operator.

friend Int4Padded operator-(Int4Padded a);

Unary negation.

friend Int4Padded operator+(Int4Padded a);

Unary plus.

friend Int4Padded operator++(Int4Padded& a);

Pre-increment.

friend Int4Padded operator--(Int4Padded& a);

Pre-decrement.

friend Int4Padded operator++(Int4Padded& a, int);

Post-increment.

friend Int4Padded operator--(Int4Padded& a, int);

Post-decrement.

Bitwise operators

friend Int4Padded operator&(Int4Padded a, Int4Padded b);

Bitwise and operator.

friend Int4Padded& operator&=(Int4Padded& a, Int4Padded b);

Bitwise and assignment operator.

friend Int4Padded operator|(Int4Padded a, Int4Padded b);

Bitwise or operator.

friend Int4Padded& operator|=(Int4Padded& a, Int4Padded b);

Bitwise or assignment operator.

friend Int4Padded operator^(Int4Padded a, Int4Padded b);

Bitwise xor operator.

friend Int4Padded& operator^=(Int4Padded& a, Int4Padded b);

Bitwise xor assignment operator.

friend Int4Padded operator<<(Int4Padded a, Int4Padded b);

Bitwise left shift operator.

friend Int4Padded& operator<<=(Int4Padded& a, Int4Padded b);

Bitwise left shift assignment operator.

friend Int4Padded operator>>(Int4Padded a, Int4Padded b);

Bitwise right shift operator.

friend Int4Padded& operator>>=(Int4Padded& a, Int4Padded b);

Bitwise right shift assignment operator.

friend Int4Padded operator~(Int4Padded a);

Unary inverse.

Power functions

Int4Padded tensorstore::pow(Int4Padded x, Int4Padded y);

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