#include "tensorstore/util/int2.h"
class tensorstore::Int2Padded;

Int2 type padded to int8.

Constructors

explicit constexpr Int2Padded(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

Int2Padded& operator=(bool v);

Bool assignment.

Int2Padded& operator=(T v);

Possibly lossy conversion from any integer type.

Arithmetic operators

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

Addition operator.

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

Addition assignment operator.

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

Subtraction operator.

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

Subtraction assignment operator.

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

Multiplication operator.

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

Multiplication assignment operator.

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

Division operator.

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

Division assignment operator.

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

Modulo operator.

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

Modulo assignment operator.

friend Int2Padded operator-(Int2Padded a);

Unary negation.

friend Int2Padded operator+(Int2Padded a);

Unary plus.

friend Int2Padded operator++(Int2Padded& a);

Pre-increment.

friend Int2Padded operator--(Int2Padded& a);

Pre-decrement.

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

Post-increment.

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

Post-decrement.

Bitwise operators

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

Bitwise and operator.

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

Bitwise and assignment operator.

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

Bitwise or operator.

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

Bitwise or assignment operator.

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

Bitwise xor operator.

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

Bitwise xor assignment operator.

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

Bitwise left shift operator.

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

Bitwise left shift assignment operator.

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

Bitwise right shift operator.

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

Bitwise right shift assignment operator.

friend Int2Padded operator~(Int2Padded a);

Unary inverse.

Basic operations

Int2Padded tensorstore::abs(Int2Padded x);

Returns the absolute value of x.

Power functions

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

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