CbmRoot
L1/vectors/PSEUDO_F32vec1.h File Reference
#include <cmath>
#include <iostream>
Include dependency graph for L1/vectors/PSEUDO_F32vec1.h:

Go to the source code of this file.

Classes

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

Namespaces

 nsL1
 

Macros

#define _op(A, B, O)
 
#define NotEmpty(a)   bool((a)[0])
 
#define Empty(a)   !(bool((a)[0]))
 
#define _fvecalignment
 

Typedefs

typedef F32vec1 fvec
 
typedef nsL1::vector< fvec >::TSimd nsL1::vector_fvec
 

Functions

class F32vec1 __attribute__ ((aligned(4)))
 
float & operator[] (int i)
 
 F32vec1 ()
 
 F32vec1 (const float &v0)
 
 operator float () const
 
F32vec1 rcp (const F32vec1 &a)
 
void operator+= (F32vec1 &a, const F32vec1 &b)
 
void operator-= (F32vec1 &a, const F32vec1 &b)
 
void operator*= (F32vec1 &a, const F32vec1 &b)
 
void operator/= (F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator< (const F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator<= (const F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator> (const F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator>= (const F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator& (const F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator| (const F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator|| (const F32vec1 &a, const F32vec1 &b)
 
F32vec1 operator! (const F32vec1 &a)
 
F32vec1 if3 (const F32vec1 &a, const F32vec1 &b, const F32vec1 &c)
 
F32vec1 bool2int (const F32vec1 &a)
 
ostream & operator<< (ostream &strm, const F32vec1 &a)
 
istream & operator>> (istream &strm, F32vec1 &a)
 

Variables

float v
 
const int fvecLen = 1
 
nsL1vector __attribute__
 

Macro Definition Documentation

◆ _fvecalignment

#define _fvecalignment

Definition at line 142 of file L1/vectors/PSEUDO_F32vec1.h.

◆ _op

#define _op (   A,
  B,
 
)
Value:
F32vec1 z; \
z.v = A.v O B.v; \
return z;

Definition at line 58 of file L1/vectors/PSEUDO_F32vec1.h.

◆ Empty

#define Empty (   a)    !(bool((a)[0]))

Definition at line 96 of file L1/vectors/PSEUDO_F32vec1.h.

◆ NotEmpty

#define NotEmpty (   a)    bool((a)[0])

Definition at line 95 of file L1/vectors/PSEUDO_F32vec1.h.

Typedef Documentation

◆ fvec

typedef F32vec1 fvec

Definition at line 137 of file L1/vectors/PSEUDO_F32vec1.h.

Function Documentation

◆ __attribute__()

class F32vec1 __attribute__ ( (aligned(4))  )

◆ bool2int()

friend F32vec1 __attribute__::bool2int ( const F32vec1 a)

Definition at line 96 of file L1/vectors/PSEUDO_F32vec1.h.

◆ F32vec1() [1/2]

__attribute__::F32vec1 ( )

Definition at line 10 of file L1/vectors/PSEUDO_F32vec1.h.

◆ F32vec1() [2/2]

__attribute__::F32vec1 ( const float &  v0)

Definition at line 11 of file L1/vectors/PSEUDO_F32vec1.h.

◆ if3()

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

Definition at line 87 of file L1/vectors/PSEUDO_F32vec1.h.

◆ operator float()

__attribute__::operator float ( ) const

Definition at line 14 of file L1/vectors/PSEUDO_F32vec1.h.

◆ operator!()

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

Definition at line 80 of file L1/vectors/PSEUDO_F32vec1.h.

References _op.

◆ operator&()

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

Definition at line 73 of file L1/vectors/PSEUDO_F32vec1.h.

◆ operator*=()

friend void __attribute__::operator*= ( F32vec1 a,
const F32vec1 b 
)

Definition at line 54 of file L1/vectors/PSEUDO_F32vec1.h.

◆ operator+=()

friend void __attribute__::operator+= ( F32vec1 a,
const F32vec1 b 
)

Definition at line 52 of file L1/vectors/PSEUDO_F32vec1.h.

◆ operator-=()

friend void __attribute__::operator-= ( F32vec1 a,
const F32vec1 b 
)

Definition at line 53 of file L1/vectors/PSEUDO_F32vec1.h.

◆ operator/=()

friend void __attribute__::operator/= ( F32vec1 a,
const F32vec1 b 
)

Definition at line 55 of file L1/vectors/PSEUDO_F32vec1.h.

◆ operator<()

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

Definition at line 63 of file L1/vectors/PSEUDO_F32vec1.h.

◆ operator<<()

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

Definition at line 101 of file L1/vectors/PSEUDO_F32vec1.h.

◆ operator<=()

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

Definition at line 64 of file L1/vectors/PSEUDO_F32vec1.h.

◆ operator>()

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

Definition at line 67 of file L1/vectors/PSEUDO_F32vec1.h.

◆ operator>=()

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

Definition at line 68 of file L1/vectors/PSEUDO_F32vec1.h.

◆ operator>>()

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

Definition at line 106 of file L1/vectors/PSEUDO_F32vec1.h.

◆ operator[]()

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

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

◆ operator|()

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

Definition at line 74 of file L1/vectors/PSEUDO_F32vec1.h.

◆ operator||()

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

Definition at line 75 of file L1/vectors/PSEUDO_F32vec1.h.

◆ rcp()

friend F32vec1 __attribute__::rcp ( const F32vec1 a)

Definition at line 28 of file L1/vectors/PSEUDO_F32vec1.h.

References F32vec1::v.

Variable Documentation

◆ __attribute__

nsL1vector __attribute__

◆ fvecLen

const int fvecLen = 1

Definition at line 138 of file L1/vectors/PSEUDO_F32vec1.h.

◆ v

float v

Definition at line 5 of file L1/vectors/PSEUDO_F32vec1.h.

F32vec1::v
float v
Definition: L1/vectors/PSEUDO_F32vec1.h:30
F32vec1
Definition: L1/vectors/PSEUDO_F32vec1.h:24