CbmRoot
L1/vectors/vec_arithmetic.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define vec_arithmetic(V, S)
 

Macro Definition Documentation

◆ vec_arithmetic

#define vec_arithmetic (   V,
 
)
Value:
friend V operator-(const V& a) { return V(0) - a; } \
friend V operator+(const V& a) { return a; } \
friend V operator+(const V& a, const S& b) { return a + V(b); } \
friend V operator-(const V& a, const S& b) { return a - V(b); } \
friend V operator*(const V& a, const S& b) { return a * V(b); } \
friend V operator/(const V& a, const S& b) { return a / V(b); } \
friend V operator+(const S& a, const V& b) { return V(a) + b; } \
friend V operator-(const S& a, const V& b) { return V(a) - b; } \
friend V operator*(const S& a, const V& b) { return V(a) * b; } \
friend V operator/(const S& a, const V& b) { return V(a) / b; } \
friend void operator+=(V& a, const V& b) { a = a + b; } \
friend void operator-=(V& a, const V& b) { a = a - b; } \
friend void operator*=(V& a, const V& b) { a = a * b; } \
friend void operator/=(V& a, const V& b) { a = a / b; } \
friend void operator+=(V& a, const S& b) { a = a + b; } \
friend void operator-=(V& a, const S& b) { a = a - b; } \
friend void operator*=(V& a, const S& b) { a = a * b; } \
friend void operator/=(V& a, const S& b) { a = a / b; }

Definition at line 7 of file L1/vectors/vec_arithmetic.h.

operator*=
friend void operator*=(F32vec1 &a, const F32vec1 &b)
Definition: L1/vectors/PSEUDO_F32vec1.h:54
operator-=
friend void operator-=(F32vec1 &a, const F32vec1 &b)
Definition: L1/vectors/PSEUDO_F32vec1.h:53
operator+
friend F32vec4 operator+(const F32vec4 &a, const F32vec4 &b)
Definition: L1/vectors/P4_F32vec4.h:19
operator/
friend F32vec4 operator/(const F32vec4 &a, const F32vec4 &b)
Definition: L1/vectors/P4_F32vec4.h:28
operator/=
friend void operator/=(F32vec1 &a, const F32vec1 &b)
Definition: L1/vectors/PSEUDO_F32vec1.h:55
operator+=
friend void operator+=(F32vec1 &a, const F32vec1 &b)
Definition: L1/vectors/PSEUDO_F32vec1.h:52
operator-
friend F32vec4 operator-(const F32vec4 &a, const F32vec4 &b)
Definition: L1/vectors/P4_F32vec4.h:22
operator*
friend F32vec4 operator*(const F32vec4 &a, const F32vec4 &b)
Definition: L1/vectors/P4_F32vec4.h:25