42 int get()
const {
return data.highmid | (data.low << 16); }
43 void set(
int value ) { data.highmid = value & 0xFFFF; data.low = value >> 16; }
46 operator int(
void )
const {
return get(); }
49 short3(
int value ) { set( value ); }
51 short3 operator-(
void )
const;
52 short3 operator~(
void )
const;
54 short3 operator+(
int b )
const;
55 short3 operator-(
int b )
const;
56 short3 operator*(
int b )
const;
57 short3 operator/(
int b )
const;
58 short3 operator%(
int b )
const;
59 short3 operator|(
int b )
const;
60 short3 operator&(
int b )
const;
61 short3 operator^(
int b )
const;
62 short3 operator<<(
int b )
const;
63 short3 operator>>(
int b )
const;
65 short3 operator++(
int );
66 short3 operator--(
int );
68 short3& operator++( );
69 short3& operator--( );
71 short3& operator=(
int b );
72 short3& operator+=(
int b );
73 short3& operator-=(
int b );
74 short3& operator*=(
int b );
75 short3& operator/=(
int b );
76 short3& operator%=(
int b );
78 short3& operator|=(
int b );
79 short3& operator&=(
int b );
80 short3& operator^=(
int b );
82 short3& operator<<=(
int b );
83 short3& operator>>=(
int b );
85 bool operator!(
void ) {
return !get(); };
87 bool operator==(
int b ) {
return get() == b; };
88 bool operator!=(
int b ) {
return get() != b; };
89 bool operator<=(
int b ) {
return get() <= b; };
90 bool operator>=(
int b ) {
return get() >= b; };
91 bool operator<(
int b ) {
return get() < b; };
92 bool operator>(
int b ) {
return get() > b; };
94 bool operator==( short3 &b ) {
return get() == b.get(); };
95 bool operator!=( short3 &b ) {
return get() != b.get(); };
96 bool operator<=( short3 &b ) {
return get() <= b.get(); };
97 bool operator>=( short3 &b ) {
return get() >= b.get(); };
98 bool operator<( short3 &b ) {
return get() < b.get(); };
99 bool operator>( short3 &b ) {
return get() > b.get(); };