libsimdpp  0.9.3
simdpp::int32x4 Class Reference

Class representing 4x 32-bit signed integer vector. More...

Inheritance diagram for simdpp::int32x4:

Public Types

typedef int32_t element_type
 
- Public Types inherited from simdpp::basic_int32x4
typedef uint32_t element_type
 
typedef uint32_t uint_element_type
 
typedef basic_int32x4 int_vector_type
 
typedef uint32x4 uint_vector_type
 
typedef mask_int32x4 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

 int32x4 ()
 
 int32x4 (const int32x4 &d)
 
int32x4operator= (const int32x4 &d)
 
 int32x4 (const int128 &d)
 
 int32x4 (const basic_int32x4 &d)
 
int32x4operator= (int128 d)
 
int32x4operator= (basic_int32x4 d)
 
 int32x4 (const float32x4 &d)
 
int32x4operator= (const float32x4 &d)
 
- Public Member Functions inherited from simdpp::basic_int32x4
 basic_int32x4 ()
 
 basic_int32x4 (const basic_int32x4 &d)
 
basic_int32x4operator= (const basic_int32x4 &d)
 
 basic_int32x4 (const int128 &d)
 
basic_int32x4operator= (int128 d)
 
 basic_int32x4 (const float32x4 &d)
 
basic_int32x4operator= (const float32x4 &d)
 
- Public Member Functions inherited from simdpp::int128
 int128 ()
 
 int128 (const int128 &d)
 
int128operator= (const int128 &d)
 

Static Public Member Functions

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

Additional Inherited Members

- Static Public Attributes inherited from simdpp::basic_int32x4
static const unsigned length = 4
 
static const unsigned num_bits = 32
 
static const uint_element_type all_bits = 0xffffffff
 

Detailed Description

Class representing 4x 32-bit signed integer vector.

Member Typedef Documentation

Constructor & Destructor Documentation

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

Construct from the underlying vector type Construct from the base type

simdpp::int32x4::int32x4 ( const basic_int32x4 d)
inline

Construct from the underlying vector type Construct from the base type

simdpp::int32x4::int32x4 ( const float32x4 d)
inlineexplicit

Construct from compatible float32x4 integer vector type

Member Function Documentation

static int32x4 simdpp::int32x4::load_broadcast ( const int32_t *  v0)
static

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

| 0 1 2 3 |
r = [ v0 v0 v0 v0 ]
  • In SSE2-SSE4.1 this intrinsic results in at least 2 instructions.
  • In NEON this intrinsic results in at least 1 instructions.
static int32x4 simdpp::int32x4::make_const ( int32_t  v0)
static

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

| 0 1 2 3 |
r = [ v0 v0 v0 v0 ]
static int32x4 simdpp::int32x4::make_const ( int32_t  v0,
int32_t  v1 
)
static

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

| 0 1 2 3 |
r = [ v0 v1 v0 v1 ]
static int32x4 simdpp::int32x4::make_const ( int32_t  v0,
int32_t  v1,
int32_t  v2,
int32_t  v3 
)
static

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

| 0 1 2 3 |
r = [ v0 v1 v2 v3 ]
int32x4& simdpp::int32x4::operator= ( const int32x4 d)
inline
int32x4& simdpp::int32x4::operator= ( int128  d)
inline

Construct from the underlying vector type Construct from the base type

int32x4& simdpp::int32x4::operator= ( basic_int32x4  d)
inline

Construct from the underlying vector type Construct from the base type

int32x4& simdpp::int32x4::operator= ( const float32x4 d)
inline

Construct from compatible float32x4 integer vector type

static int32x4 simdpp::int32x4::set_broadcast ( int32_t  v0)
static

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

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

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

r0 = 0
r1 = 0
r2 = 0
r3 = 0

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