libsimdpp  0.9.3
simdpp::int16x8 Class Reference

Class representing 8x 16-bit signed integer vector. More...

Inheritance diagram for simdpp::int16x8:

Public Types

typedef int16_t element_type
 
- Public Types inherited from simdpp::basic_int16x8
typedef uint16_t element_type
 
typedef uint16_t uint_element_type
 
typedef basic_int16x8 int_vector_type
 
typedef uint16x8 uint_vector_type
 
typedef mask_int16x8 mask_type
 
- Public Types inherited from simdpp::int128
typedef uint64_t element_type
 
typedef uint64_t uint_element_type
 
typedef int128 int_vector_type
 

Public Member Functions

 int16x8 ()
 
 int16x8 (const int16x8 &d)
 
int16x8operator= (const int16x8 &d)
 
 int16x8 (const int128 &d)
 
 int16x8 (basic_int16x8 d)
 
int16x8operator= (int128 d)
 
int16x8operator= (basic_int16x8 d)
 
- Public Member Functions inherited from simdpp::basic_int16x8
 basic_int16x8 ()
 
 basic_int16x8 (const basic_int16x8 &d)
 
basic_int16x8operator= (const basic_int16x8 &d)
 
 basic_int16x8 (const int128 &d)
 
basic_int16x8operator= (int128 d)
 
- Public Member Functions inherited from simdpp::int128
 int128 ()
 
 int128 (const int128 &d)
 
int128operator= (const int128 &d)
 

Static Public Member Functions

static int16x8 zero ()
 Creates a signed int16x8 vector with the contents set to zero. More...
 
static int16x8 load_broadcast (const int16_t *v0)
 Creates a signed int16x8 vector from a value loaded from memory. More...
 
static int16x8 set_broadcast (int16_t v0)
 Creates a signed int16x8 vector from a value stored in a core register. More...
 
static int16x8 make_const (int16_t v0)
 Creates a signed int16x8 vector from a value known at compile-time. More...
 
static int16x8 make_const (int16_t v0, int16_t v1)
 Creates a signed int16x8 vector from two values known at compile-time. More...
 
static int16x8 make_const (int16_t v0, int16_t v1, int16_t v2, int16_t v3)
 Creates a signed int16x8 vector from four values known at compile-time. More...
 
static int16x8 make_const (int16_t v0, int16_t v1, int16_t v2, int16_t v3, int16_t v4, int16_t v5, int16_t v6, int16_t v7)
 Creates a signed int16x8 vector from eight values known at compile-time. More...
 

Additional Inherited Members

- Static Public Attributes inherited from simdpp::basic_int16x8
static const unsigned length = 8
 
static const unsigned num_bits = 16
 
static const uint_element_type all_bits = 0xffff
 

Detailed Description

Class representing 8x 16-bit signed integer vector.

Member Typedef Documentation

Constructor & Destructor Documentation

simdpp::int16x8::int16x8 ( )
inline
simdpp::int16x8::int16x8 ( const int16x8 d)
inline
simdpp::int16x8::int16x8 ( const int128 d)
inline

Construct from the underlying vector type Construct from the base type

simdpp::int16x8::int16x8 ( basic_int16x8  d)
inline

Construct from the underlying vector type Construct from the base type

Member Function Documentation

static int16x8 simdpp::int16x8::load_broadcast ( const int16_t *  v0)
static

Creates a signed int16x8 vector from a value loaded from memory.

| 0 1 2 3 4 5 6 7 |
r = [ v0 v0 v0 v0 v0 v0 v0 v0 ]
  • In SSE2-SSE4.1 this intrinsic results in at least 3 instructions.
  • In NEON this intrinsic results in at least 1 instructions.
static int16x8 simdpp::int16x8::make_const ( int16_t  v0)
static

Creates a signed int16x8 vector from a value known at compile-time.

| 0 1 2 3 4 5 6 7 |
r = [ v0 v0 v0 v0 v0 v0 v0 v0 ]
static int16x8 simdpp::int16x8::make_const ( int16_t  v0,
int16_t  v1 
)
static

Creates a signed int16x8 vector from two values known at compile-time.

| 0 1 2 3 4 5 6 7 |
r = [ v0 v1 v0 v1 v0 v1 v0 v1 ]
static int16x8 simdpp::int16x8::make_const ( int16_t  v0,
int16_t  v1,
int16_t  v2,
int16_t  v3 
)
static

Creates a signed int16x8 vector from four values known at compile-time.

| 0 1 2 3 4 5 6 7 |
r = [ v0 v1 v2 v3 v0 v1 v2 v3 ]
static int16x8 simdpp::int16x8::make_const ( int16_t  v0,
int16_t  v1,
int16_t  v2,
int16_t  v3,
int16_t  v4,
int16_t  v5,
int16_t  v6,
int16_t  v7 
)
static

Creates a signed int16x8 vector from eight values known at compile-time.

| 0 1 2 3 4 5 6 7 |
r = [ v0 v1 v2 v3 v4 v5 v6 v7 ]
int16x8& simdpp::int16x8::operator= ( const int16x8 d)
inline
int16x8& simdpp::int16x8::operator= ( int128  d)
inline

Construct from the underlying vector type Construct from the base type

int16x8& simdpp::int16x8::operator= ( basic_int16x8  d)
inline

Construct from the underlying vector type Construct from the base type

static int16x8 simdpp::int16x8::set_broadcast ( int16_t  v0)
static

Creates a signed int16x8 vector from a value stored in a core register.

| 0 1 2 3 4 5 6 7 |
r = [ v0 v0 v0 v0 v0 v0 v0 v0 ]
  • In NEON, SSE2-SSE4.1 and NEON this intrinsic results in at least 2 instructions.
static int16x8 simdpp::int16x8::zero ( )
static

Creates a signed int16x8 vector with the contents set to zero.

r0 = 0
...
r7 = 0

The documentation for this class was generated from the following file: