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

Int2 type padded to int8.

Constructors

constexpr Int2Padded();

Zero initialization.

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

Int2Paddedoperator=(bool v);

Bool assignment.

Int2Paddedoperator=(T v);

Possibly lossy conversion from any integer type.

Arithmetic operators

friend Int2Padded operator+(Int2Padded aInt2Padded b);

Addition operator.

friend Int2Paddedoperator+=(Int2PaddedaInt2Padded b);

Addition assignment operator.

friend Int2Padded operator-(Int2Padded aInt2Padded b);

Subtraction operator.

friend Int2Paddedoperator-=(Int2PaddedaInt2Padded b);

Subtraction assignment operator.

friend Int2Padded operator*(Int2Padded aInt2Padded b);

Multiplication operator.

friend Int2Paddedoperator*=(Int2PaddedaInt2Padded b);

Multiplication assignment operator.

friend Int2Padded operator/(Int2Padded aInt2Padded b);

Division operator.

friend Int2Paddedoperator/=(Int2PaddedaInt2Padded b);

Division assignment operator.

friend Int2Padded operator%(Int2Padded aInt2Padded b);

Modulo operator.

friend Int2Paddedoperator%=(Int2PaddedaInt2Padded b);

Modulo assignment operator.

friend Int2Padded operator-(Int2Padded a);

Unary negation.

friend Int2Padded operator+(Int2Padded a);

Unary plus.

friend Int2Padded operator++(Int2Paddeda);

Pre-increment.

friend Int2Padded operator--(Int2Paddeda);

Pre-decrement.

friend Int2Padded operator++(Int2Paddedaint);

Post-increment.

friend Int2Padded operator--(Int2Paddedaint);

Post-decrement.

Bitwise operators

friend Int2Padded operator&(Int2Padded aInt2Padded b);

Bitwise and operator.

friend Int2Paddedoperator&=(Int2PaddedaInt2Padded b);

Bitwise and assignment operator.

friend Int2Padded operator|(Int2Padded aInt2Padded b);

Bitwise or operator.

friend Int2Paddedoperator|=(Int2PaddedaInt2Padded b);

Bitwise or assignment operator.

friend Int2Padded operator^(Int2Padded aInt2Padded b);

Bitwise xor operator.

friend Int2Paddedoperator^=(Int2PaddedaInt2Padded b);

Bitwise xor assignment operator.

friend Int2Padded operator<<(Int2Padded aInt2Padded b);

Bitwise left shift operator.

friend Int2Paddedoperator<<=(Int2PaddedaInt2Padded b);

Bitwise left shift assignment operator.

friend Int2Padded operator>>(Int2Padded aInt2Padded b);

Bitwise right shift operator.

friend Int2Paddedoperator>>=(Int2PaddedaInt2Padded 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 xInt2Padded y);

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