CbmRoot
PSEUDO_F32vec4.h File Reference
#include "vec_arithmetic.h"
#include <cmath>
#include <iostream>
Include dependency graph for PSEUDO_F32vec4.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  F32vec4
 
struct  nsL1::vector< T >
 
struct  nsL1vector< T >
 

Namespaces

 nsL1
 

Macros

#define _f2(A, B, F)
 
#define _f1(A, F)
 
#define _op(A, B, O)
 
#define NotEmpty(a)   bool((a)[0]) | bool((a)[1]) | bool((a)[2]) | bool((a)[3])
 
#define Empty(a)   !(bool((a)[0]) | bool((a)[1]) | bool((a)[2]) | bool((a)[3]))
 
#define _fvecalignment
 

Typedefs

typedef F32vec4 fvec
 
typedef float fscal
 

Functions

float min (float x, float y)
 
float max (float x, float y)
 
float asgnb (float x, float y)
 
float rsqrt (float x)
 
float rcp (float x)
 
float sgn (float x)
 
class F32vec4 __attribute__ ((aligned(16)))
 
float & operator[] (int i)
 
 F32vec4 ()
 
 F32vec4 (const F32vec4 &a)
 
 F32vec4 (const float &a)
 
 F32vec4 (const float &f0, const float &f1, const float &f2, const float &f3)
 
F32vec4 operator+ (const F32vec4 &a, const F32vec4 &b)
 
F32vec4 operator- (const F32vec4 &a, const F32vec4 &b)
 
F32vec4 operator* (const F32vec4 &a, const F32vec4 &b)
 
F32vec4 operator/ (const F32vec4 &a, const F32vec4 &b)
 
F32vec4 operator< (const F32vec4 &a, const F32vec4 &b)
 
F32vec4 operator<= (const F32vec4 &a, const F32vec4 &b)
 
F32vec4 operator> (const F32vec4 &a, const F32vec4 &b)
 
F32vec4 operator>= (const F32vec4 &a, const F32vec4 &b)
 
F32vec4 operator& (const F32vec4 &a, const F32vec4 &b)
 
F32vec4 operator| (const F32vec4 &a, const F32vec4 &b)
 
F32vec4 operator|| (const F32vec4 &a, const F32vec4 &b)
 
F32vec4 operator! (const F32vec4 &a)
 
F32vec4 if3 (const F32vec4 &a, const F32vec4 &b, const F32vec4 &c)
 
F32vec4 bool2int (const F32vec4 &a)
 
F32vec4 min (const F32vec4 &a, const F32vec4 &b)
 
F32vec4 max (const F32vec4 &a, const F32vec4 &b)
 
F32vec4 asgnb (const F32vec4 &a, const F32vec4 &b)
 
F32vec4 sqrt (const F32vec4 &a)
 
F32vec4 rsqrt (const F32vec4 &a)
 
F32vec4 rcp (const F32vec4 &a)
 
F32vec4 fabs (const F32vec4 &a)
 
F32vec4 sgn (const F32vec4 &a)
 
F32vec4 exp (const F32vec4 &a)
 
F32vec4 log (const F32vec4 &a)
 
F32vec4 sin (const F32vec4 &a)
 
F32vec4 cos (const F32vec4 &a)
 
 vec_arithmetic (F32vec4, float)
 
ostream & operator<< (ostream &strm, const F32vec4 &a)
 
istream & operator>> (istream &strm, F32vec4 &a)
 

Variables

float v [4]
 
const int fvecLen = 4
 
nsL1vector __attribute__
 

Macro Definition Documentation

◆ _f1

#define _f1 (   A,
 
)
Value:
F32vec4 z; \
z.v[0] = F(A.v[0]); \
z.v[1] = F(A.v[1]); \
z.v[2] = F(A.v[2]); \
z.v[3] = F(A.v[3]); \
return z;

Definition at line 38 of file PSEUDO_F32vec4.h.

◆ _f2

#define _f2 (   A,
  B,
 
)
Value:
F32vec4 z; \
z.v[0] = F(A.v[0], B.v[0]); \
z.v[1] = F(A.v[1], B.v[1]); \
z.v[2] = F(A.v[2], B.v[2]); \
z.v[3] = F(A.v[3], B.v[3]); \
return z;

Definition at line 31 of file PSEUDO_F32vec4.h.

◆ _fvecalignment

#define _fvecalignment

Definition at line 176 of file PSEUDO_F32vec4.h.

◆ _op

#define _op (   A,
  B,
 
)
Value:
F32vec4 z; \
z.v[0] = A.v[0] O B.v[0]; \
z.v[1] = A.v[1] O B.v[1]; \
z.v[2] = A.v[2] O B.v[2]; \
z.v[3] = A.v[3] O B.v[3]; \
return z;

Definition at line 45 of file PSEUDO_F32vec4.h.

◆ Empty

#define Empty (   a)    !(bool((a)[0]) | bool((a)[1]) | bool((a)[2]) | bool((a)[3]))

Definition at line 97 of file PSEUDO_F32vec4.h.

◆ NotEmpty

#define NotEmpty (   a)    bool((a)[0]) | bool((a)[1]) | bool((a)[2]) | bool((a)[3])

Definition at line 96 of file PSEUDO_F32vec4.h.

Typedef Documentation

◆ fscal

typedef float fscal

Definition at line 171 of file PSEUDO_F32vec4.h.

◆ fvec

typedef F32vec4 fvec

Definition at line 170 of file PSEUDO_F32vec4.h.

Function Documentation

◆ __attribute__()

class F32vec4 __attribute__ ( (aligned(16))  )

◆ asgnb() [1/2]

friend F32vec4 __attribute__::asgnb ( const F32vec4 a,
const F32vec4 b 
)

Definition at line 114 of file PSEUDO_F32vec4.h.

◆ asgnb() [2/2]

float asgnb ( float  x,
float  y 
)

Definition at line 107 of file PSEUDO_F32vec4.h.

◆ bool2int()

friend F32vec4 __attribute__::bool2int ( const F32vec4 a)

Definition at line 99 of file PSEUDO_F32vec4.h.

◆ cos()

friend F32vec4 __attribute__::cos ( const F32vec4 a)

Definition at line 123 of file PSEUDO_F32vec4.h.

◆ exp()

friend F32vec4 __attribute__::exp ( const F32vec4 a)

Definition at line 120 of file PSEUDO_F32vec4.h.

◆ F32vec4() [1/4]

__attribute__::F32vec4 ( )

Definition at line 8 of file PSEUDO_F32vec4.h.

◆ F32vec4() [2/4]

__attribute__::F32vec4 ( const F32vec4 a)

Definition at line 9 of file PSEUDO_F32vec4.h.

◆ F32vec4() [3/4]

__attribute__::F32vec4 ( const float &  a)

Definition at line 15 of file PSEUDO_F32vec4.h.

◆ F32vec4() [4/4]

__attribute__::F32vec4 ( const float &  f0,
const float &  f1,
const float &  f2,
const float &  f3 
)

Definition at line 22 of file PSEUDO_F32vec4.h.

◆ fabs()

friend F32vec4 __attribute__::fabs ( const F32vec4 a)

Definition at line 118 of file PSEUDO_F32vec4.h.

◆ if3()

friend F32vec4 __attribute__::if3 ( const F32vec4 a,
const F32vec4 b,
const F32vec4 c 
)

Definition at line 85 of file PSEUDO_F32vec4.h.

◆ log()

friend F32vec4 __attribute__::log ( const F32vec4 a)

Definition at line 121 of file PSEUDO_F32vec4.h.

◆ max() [1/2]

friend F32vec4 __attribute__::max ( const F32vec4 a,
const F32vec4 b 
)

Definition at line 113 of file PSEUDO_F32vec4.h.

◆ max() [2/2]

float max ( float  x,
float  y 
)

Definition at line 106 of file PSEUDO_F32vec4.h.

◆ min() [1/2]

friend F32vec4 __attribute__::min ( const F32vec4 a,
const F32vec4 b 
)

Definition at line 112 of file PSEUDO_F32vec4.h.

◆ min() [2/2]

float min ( float  x,
float  y 
)

Definition at line 105 of file PSEUDO_F32vec4.h.

◆ operator!()

friend F32vec4 __attribute__::operator! ( const F32vec4 a)

Definition at line 75 of file PSEUDO_F32vec4.h.

◆ operator&()

friend F32vec4 __attribute__::operator& ( const F32vec4 a,
const F32vec4 b 
)

Definition at line 69 of file PSEUDO_F32vec4.h.

◆ operator*()

friend F32vec4 __attribute__::operator* ( const F32vec4 a,
const F32vec4 b 
)

Definition at line 55 of file PSEUDO_F32vec4.h.

◆ operator+()

friend F32vec4 __attribute__::operator+ ( const F32vec4 a,
const F32vec4 b 
)

Definition at line 53 of file PSEUDO_F32vec4.h.

◆ operator-()

friend F32vec4 __attribute__::operator- ( const F32vec4 a,
const F32vec4 b 
)

Definition at line 54 of file PSEUDO_F32vec4.h.

◆ operator/()

friend F32vec4 __attribute__::operator/ ( const F32vec4 a,
const F32vec4 b 
)

Definition at line 56 of file PSEUDO_F32vec4.h.

◆ operator<()

friend F32vec4 __attribute__::operator< ( const F32vec4 a,
const F32vec4 b 
)

Definition at line 59 of file PSEUDO_F32vec4.h.

◆ operator<<()

friend ostream& __attribute__::operator<< ( ostream &  strm,
const F32vec4 a 
)

Definition at line 132 of file PSEUDO_F32vec4.h.

References x.

◆ operator<=()

friend F32vec4 __attribute__::operator<= ( const F32vec4 a,
const F32vec4 b 
)

Definition at line 60 of file PSEUDO_F32vec4.h.

◆ operator>()

friend F32vec4 __attribute__::operator> ( const F32vec4 a,
const F32vec4 b 
)

Definition at line 63 of file PSEUDO_F32vec4.h.

◆ operator>=()

friend F32vec4 __attribute__::operator>= ( const F32vec4 a,
const F32vec4 b 
)

Definition at line 64 of file PSEUDO_F32vec4.h.

◆ operator>>()

friend istream& __attribute__::operator>> ( istream &  strm,
F32vec4 a 
)

Definition at line 137 of file PSEUDO_F32vec4.h.

References _f2, and F32vec4::asgnb.

◆ operator[]()

float& __attribute__::operator[] ( int  i)

Definition at line 5 of file PSEUDO_F32vec4.h.

◆ operator|()

friend F32vec4 __attribute__::operator| ( const F32vec4 a,
const F32vec4 b 
)

Definition at line 70 of file PSEUDO_F32vec4.h.

◆ operator||()

friend F32vec4 __attribute__::operator|| ( const F32vec4 a,
const F32vec4 b 
)

Definition at line 71 of file PSEUDO_F32vec4.h.

◆ rcp() [1/2]

friend F32vec4 __attribute__::rcp ( const F32vec4 a)

Definition at line 117 of file PSEUDO_F32vec4.h.

◆ rcp() [2/2]

float rcp ( float  x)

Definition at line 109 of file PSEUDO_F32vec4.h.

◆ rsqrt() [1/2]

friend F32vec4 __attribute__::rsqrt ( const F32vec4 a)

Definition at line 116 of file PSEUDO_F32vec4.h.

◆ rsqrt() [2/2]

float rsqrt ( float  x)

Definition at line 108 of file PSEUDO_F32vec4.h.

◆ sgn() [1/2]

friend F32vec4 __attribute__::sgn ( const F32vec4 a)

Definition at line 119 of file PSEUDO_F32vec4.h.

◆ sgn() [2/2]

float sgn ( float  x)

Definition at line 110 of file PSEUDO_F32vec4.h.

◆ sin()

friend F32vec4 __attribute__::sin ( const F32vec4 a)

Definition at line 122 of file PSEUDO_F32vec4.h.

◆ sqrt()

friend F32vec4 __attribute__::sqrt ( const F32vec4 a)

Definition at line 115 of file PSEUDO_F32vec4.h.

◆ vec_arithmetic()

__attribute__::vec_arithmetic ( F32vec4  ,
float   
)

References F32vec4::fabs, x, and y.

Variable Documentation

◆ __attribute__

nsL1vector __attribute__

◆ fvecLen

const int fvecLen = 4

Definition at line 172 of file PSEUDO_F32vec4.h.

◆ v

float v[4]

Definition at line 3 of file PSEUDO_F32vec4.h.

F32vec4
Definition: L1/vectors/P4_F32vec4.h:47
F32vec4::v
__m128 v
Definition: L1/vectors/P4_F32vec4.h:49