ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros | Functions
sse_blend.cpp File Reference
#include "unittest.h"
#include <Vc/sse/intrinsics.h>
Include dependency graph for sse_blend.cpp:

Go to the source code of this file.

Macros

#define blend   Vc::SSE::mm_blend_pd
 
#define blend   Vc::SSE::mm_blend_ps
 
#define blend   Vc::SSE::mm_blend_epi16
 
#define CALL_2(_i, code)   { enum { i = _i }; code } { enum { i = _i + 1 }; code }
 
#define CALL_4(_i, code)   CALL_2(_i, code) CALL_2(_i + 2, code)
 
#define CALL_8(_i, code)   CALL_4(_i, code) CALL_4(_i + 4, code)
 
#define CALL_16(_i, code)   CALL_8(_i, code) CALL_8(_i + 8, code)
 
#define CALL_32(_i, code)   CALL_16(_i, code) CALL_16(_i + 16, code)
 
#define CALL_64(_i, code)   CALL_32(_i, code) CALL_32(_i + 32, code)
 
#define CALL_128(_i, code)   CALL_64(_i, code) CALL_64(_i + 64, code)
 
#define CALL_256(code)   CALL_128(0, code) CALL_128(128, code)
 
#define CALL_100(code)   CALL_64(0, code) CALL_32(64, code) CALL_4(96, code)
 

Functions

ostream & std::operator<< (ostream &out, const __m128i &v)
 
template<>
bool unittest_compareHelper< __m128i, __m128i > (const __m128i &a, const __m128i &b)
 
void blendpd ()
 
void blendps ()
 
void blendepi16 ()
 
int main ()
 

Macro Definition Documentation

#define blend   Vc::SSE::mm_blend_pd
#define blend   Vc::SSE::mm_blend_ps
#define blend   Vc::SSE::mm_blend_epi16
#define CALL_100 (   code)    CALL_64(0, code) CALL_32(64, code) CALL_4(96, code)
#define CALL_128 (   _i,
  code 
)    CALL_64(_i, code) CALL_64(_i + 64, code)
#define CALL_16 (   _i,
  code 
)    CALL_8(_i, code) CALL_8(_i + 8, code)
#define CALL_2 (   _i,
  code 
)    { enum { i = _i }; code } { enum { i = _i + 1 }; code }
#define CALL_256 (   code)    CALL_128(0, code) CALL_128(128, code)

Referenced by blendepi16().

#define CALL_32 (   _i,
  code 
)    CALL_16(_i, code) CALL_16(_i + 16, code)
#define CALL_4 (   _i,
  code 
)    CALL_2(_i, code) CALL_2(_i + 2, code)
#define CALL_64 (   _i,
  code 
)    CALL_32(_i, code) CALL_32(_i + 32, code)
#define CALL_8 (   _i,
  code 
)    CALL_4(_i, code) CALL_4(_i + 4, code)

Function Documentation

void blendepi16 ( )

Definition at line 89 of file sse_blend.cpp.

Referenced by main().

void blendpd ( )

Definition at line 45 of file sse_blend.cpp.

Referenced by main().

void blendps ( )

Definition at line 61 of file sse_blend.cpp.

Referenced by main().

int main ( )

Definition at line 120 of file sse_blend.cpp.

template<>
bool unittest_compareHelper< __m128i, __m128i > ( const __m128i &  a,
const __m128i &  b 
)
inline

Definition at line 40 of file sse_blend.cpp.