libsimdpp  0.9.3
simdpp::int16x16 Class Reference

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

Inheritance diagram for simdpp::int16x16:

Public Types

typedef int16_t element_type
 
typedef int16x8 half_vector_type
 
- Public Types inherited from simdpp::basic_int16x16
typedef uint16_t element_type
 
typedef uint16_t uint_element_type
 
typedef basic_int16x16 int_vector_type
 
typedef uint16x16 uint_vector_type
 
typedef basic_int16x8 half_vector_type
 
typedef mask_int16x16 mask_type
 
- Public Types inherited from simdpp::int256
typedef uint64_t element_type
 
typedef uint64_t uint_element_type
 
typedef int256 int_vector_type
 

Public Member Functions

 int16x16 ()
 
 int16x16 (const int16x16 &d)
 
int16x16operator= (const int16x16 &d)
 
 int16x16 (int16x8 d0, int16x8 d1)
 
const int16x8operator[] (unsigned i) const
 
int16x8operator[] (unsigned i)
 
 int16x16 (const int256 &d)
 
 int16x16 (basic_int16x16 d)
 
int16x16operator= (int256 d)
 
int16x16operator= (basic_int16x16 d)
 
- Public Member Functions inherited from simdpp::basic_int16x16
 basic_int16x16 ()
 
 basic_int16x16 (const basic_int16x16 &d)
 
basic_int16x16operator= (const basic_int16x16 &d)
 
 basic_int16x16 (basic_int16x8 d0, basic_int16x8 d1)
 
const basic_int16x8operator[] (unsigned i) const
 
basic_int16x8operator[] (unsigned i)
 
 basic_int16x16 (const int256 &d)
 
basic_int16x16operator= (int256 d)
 
- Public Member Functions inherited from simdpp::int256
 int256 ()
 
 int256 (const int256 &d)
 
int256operator= (const int256 &d)
 
 int256 (int128 d0, int128 d1)
 
const int128operator[] (unsigned i) const
 
int128operator[] (unsigned i)
 

Static Public Member Functions

static int16x16 zero ()
 Creates a signed int16x16 vector with the contents set to zero. More...
 
static int16x16 load_broadcast (const int16_t *v0)
 Creates a signed int16x16 vector from a value loaded from memory. More...
 
static int16x16 set_broadcast (int16_t v0)
 Creates a signed int16x16 vector from a value stored in a core register. More...
 
static int16x16 make_const (int16_t v0)
 Creates a signed int16x16 vector from a value known at compile-time. More...
 
static int16x16 make_const (int16_t v0, int16_t v1)
 Creates a signed int16x16 vector from two values known at compile-time. More...
 
static int16x16 make_const (int16_t v0, int16_t v1, int16_t v2, int16_t v3)
 Creates a signed int16x16 vector from four values known at compile-time. More...
 
static int16x16 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 int16x16 vector from eight values known at compile-time. More...
 
static int16x16 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, int16_t v8, int16_t v9, int16_t v10, int16_t v11, int16_t v12, int16_t v13, int16_t v14, int16_t v15)
 Creates a signed int16x16 vector from eight values known at compile-time. More...
 

Additional Inherited Members

- Static Public Attributes inherited from simdpp::basic_int16x16
static const unsigned length = 16
 
static const unsigned num_bits = 16
 
static const uint_element_type all_bits = 0xffff
 
- Protected Member Functions inherited from simdpp::int256
const uint64x2u64 (unsigned i) const
 
uint64x2u64 (unsigned i)
 
const uint32x4u32 (unsigned i) const
 
uint32x4u32 (unsigned i)
 
const uint16x8u16 (unsigned i) const
 
uint16x8u16 (unsigned i)
 
const uint8x16u8 (unsigned i) const
 
uint8x16u8 (unsigned i)
 
const int64x2i64 (unsigned i) const
 
int64x2i64 (unsigned i)
 
const int32x4i32 (unsigned i) const
 
int32x4i32 (unsigned i)
 
const int16x8i16 (unsigned i) const
 
int16x8i16 (unsigned i)
 
const int8x16i8 (unsigned i) const
 
int8x16i8 (unsigned i)
 

Detailed Description

Class representing 16x 16-bit signed integer vector.

Member Typedef Documentation

Constructor & Destructor Documentation

simdpp::int16x16::int16x16 ( )
inline
simdpp::int16x16::int16x16 ( const int16x16 d)
inline
simdpp::int16x16::int16x16 ( const int256 d)
inline

Construct from the underlying vector type Construct from the base type

simdpp::int16x16::int16x16 ( basic_int16x16  d)
inline

Construct from the underlying vector type Construct from the base type

simdpp::int16x16::int16x16 ( int16x8  d0,
int16x8  d1 
)
inline

Member Function Documentation

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

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

| 0 1 ... 15 |
r = [ 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 int16x16 simdpp::int16x16::make_const ( int16_t  v0)
static

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

| 0 1 ... 15 |
r = [ v0 v0 ... v0 ]
static int16x16 simdpp::int16x16::make_const ( int16_t  v0,
int16_t  v1 
)
static

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

| 0 1 2 3 4 ... 15 |
r = [ v0 v1 v0 v1 v0 ... v1 ]
static int16x16 simdpp::int16x16::make_const ( int16_t  v0,
int16_t  v1,
int16_t  v2,
int16_t  v3 
)
static

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

| 0 1 2 3 4 5 ... 15 |
r = [ v0 v1 v2 v3 v0 v1 ... v3 ]
static int16x16 simdpp::int16x16::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 int16x16 vector from eight values known at compile-time.

| 0 ... 7 8 ... 15 |
r = [ v0 ... v7, v0 ... v7 ]
static int16x16 simdpp::int16x16::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,
int16_t  v8,
int16_t  v9,
int16_t  v10,
int16_t  v11,
int16_t  v12,
int16_t  v13,
int16_t  v14,
int16_t  v15 
)
static

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

| 0 1 ... 15 |
r = [ v0 v1 ... v15 ]
int16x16& simdpp::int16x16::operator= ( const int16x16 d)
inline
int16x16& simdpp::int16x16::operator= ( int256  d)
inline

Construct from the underlying vector type Construct from the base type

int16x16& simdpp::int16x16::operator= ( basic_int16x16  d)
inline

Construct from the underlying vector type Construct from the base type

const int16x8& simdpp::int16x16::operator[] ( unsigned  i) const
inline
int16x8& simdpp::int16x16::operator[] ( unsigned  i)
inline
static int16x16 simdpp::int16x16::set_broadcast ( int16_t  v0)
static

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

| 0 1 ... 15 |
r = [ v0 v0 ... v0 ]
  • In SSE2-SSE4.1 and NEON this intrinsic results in at least 2 instructions.
static int16x16 simdpp::int16x16::zero ( )
static

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

| 0 1 ... 15 |
r = [ v0 v0 ... v0 ]

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