Compute Library
 21.11
setlane.h File Reference
#include <arm_neon.h>

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2021 Arm Limited.
 
 arm_compute::wrapper
 

Macros

#define VSETLANE_IMPL_8(stype, atype, vtype, postfix)
 
#define VSETLANE_IMPL_4(stype, atype, vtype, postfix)
 
#define VSETLANE_IMPL_2(stype, atype, vtype, postfix)
 
#define VSETQLANE_IMPL_16(stype, atype, vtype, postfix)
 
#define VSETQLANE_IMPL_8(stype, atype, vtype, postfix)
 
#define VSETQLANE_IMPL_4(stype, atype, vtype, postfix)
 

Functions

uint8x8_t vsetlane (const uint8_t value, const uint8x8_t vector, const unsigned int lane)
 
int8x8_t vsetlane (const int8_t value, const int8x8_t vector, const unsigned int lane)
 
uint16x4_t vsetlane (const uint16_t value, const uint16x4_t vector, const unsigned int lane)
 
int16x4_t vsetlane (const int16_t value, const int16x4_t vector, const unsigned int lane)
 
uint32x2_t vsetlane (const uint32_t value, const uint32x2_t vector, const unsigned int lane)
 
int32x2_t vsetlane (const int32_t value, const int32x2_t vector, const unsigned int lane)
 
float32x2_t vsetlane (const float value, const float32x2_t vector, const unsigned int lane)
 
uint8x16_t vsetlane (const uint8_t value, const uint8x16_t vector, const unsigned int lane)
 
int8x16_t vsetlane (const int8_t value, const int8x16_t vector, const unsigned int lane)
 
uint16x8_t vsetlane (const uint16_t value, const uint16x8_t vector, const unsigned int lane)
 
int16x8_t vsetlane (const int16_t value, const int16x8_t vector, const unsigned int lane)
 
uint32x4_t vsetlane (const uint32_t value, const uint32x4_t vector, const unsigned int lane)
 
int32x4_t vsetlane (const int32_t value, const int32x4_t vector, const unsigned int lane)
 
float32x4_t vsetlane (const float value, const float32x4_t vector, const unsigned int lane)
 

Macro Definition Documentation

◆ VSETLANE_IMPL_2

#define VSETLANE_IMPL_2 (   stype,
  atype,
  vtype,
  postfix 
)
Value:
inline stype vsetlane(const atype value, const vtype vector, const unsigned int lane) \
{ \
switch(lane) \
{ \
case 0: \
return vset_lane_##postfix(value, vector, 0); \
case 1: \
return vset_lane_##postfix(value, vector, 1); \
default: \
ARM_COMPUTE_ERROR("Invalid lane"); \
} \
}
float32x4_t vsetlane(const float value, const float32x4_t vector, const unsigned int lane)
Definition: setlane.h:194

Definition at line 77 of file setlane.h.

◆ VSETLANE_IMPL_4

#define VSETLANE_IMPL_4 (   stype,
  atype,
  vtype,
  postfix 
)
Value:
inline stype vsetlane(const atype value, const vtype vector, const unsigned int lane) \
{ \
switch(lane) \
{ \
case 0: \
return vset_lane_##postfix(value, vector, 0); \
case 1: \
return vset_lane_##postfix(value, vector, 1); \
case 2: \
return vset_lane_##postfix(value, vector, 2); \
case 3: \
return vset_lane_##postfix(value, vector, 3); \
default: \
ARM_COMPUTE_ERROR("Invalid lane"); \
} \
}
float32x4_t vsetlane(const float value, const float32x4_t vector, const unsigned int lane)
Definition: setlane.h:194

Definition at line 59 of file setlane.h.

◆ VSETLANE_IMPL_8

#define VSETLANE_IMPL_8 (   stype,
  atype,
  vtype,
  postfix 
)
Value:
inline stype vsetlane(const atype value, const vtype vector, const unsigned int lane) \
{ \
switch(lane) \
{ \
case 0: \
return vset_lane_##postfix(value, vector, 0); \
case 1: \
return vset_lane_##postfix(value, vector, 1); \
case 2: \
return vset_lane_##postfix(value, vector, 2); \
case 3: \
return vset_lane_##postfix(value, vector, 3); \
case 4: \
return vset_lane_##postfix(value, vector, 4); \
case 5: \
return vset_lane_##postfix(value, vector, 5); \
case 6: \
return vset_lane_##postfix(value, vector, 6); \
case 7: \
return vset_lane_##postfix(value, vector, 7); \
default: \
ARM_COMPUTE_ERROR("Invalid lane"); \
} \
}
float32x4_t vsetlane(const float value, const float32x4_t vector, const unsigned int lane)
Definition: setlane.h:194

Definition at line 33 of file setlane.h.

◆ VSETQLANE_IMPL_16

#define VSETQLANE_IMPL_16 (   stype,
  atype,
  vtype,
  postfix 
)

Definition at line 102 of file setlane.h.

◆ VSETQLANE_IMPL_4

#define VSETQLANE_IMPL_4 (   stype,
  atype,
  vtype,
  postfix 
)
Value:
inline stype vsetlane(const atype value, const vtype vector, const unsigned int lane) \
{ \
switch(lane) \
{ \
case 0: \
return vsetq_lane_##postfix(value, vector, 0); \
case 1: \
return vsetq_lane_##postfix(value, vector, 1); \
case 2: \
return vsetq_lane_##postfix(value, vector, 2); \
case 3: \
return vsetq_lane_##postfix(value, vector, 3); \
default: \
ARM_COMPUTE_ERROR("Invalid lane"); \
} \
}
float32x4_t vsetlane(const float value, const float32x4_t vector, const unsigned int lane)
Definition: setlane.h:194

Definition at line 170 of file setlane.h.

◆ VSETQLANE_IMPL_8

#define VSETQLANE_IMPL_8 (   stype,
  atype,
  vtype,
  postfix 
)
Value:
inline stype vsetlane(const atype value, const vtype vector, const unsigned int lane) \
{ \
switch(lane) \
{ \
case 0: \
return vsetq_lane_##postfix(value, vector, 0); \
case 1: \
return vsetq_lane_##postfix(value, vector, 1); \
case 2: \
return vsetq_lane_##postfix(value, vector, 2); \
case 3: \
return vsetq_lane_##postfix(value, vector, 3); \
case 4: \
return vsetq_lane_##postfix(value, vector, 4); \
case 5: \
return vsetq_lane_##postfix(value, vector, 5); \
case 6: \
return vsetq_lane_##postfix(value, vector, 6); \
case 7: \
return vsetq_lane_##postfix(value, vector, 7); \
default: \
ARM_COMPUTE_ERROR("Invalid lane"); \
} \
}
float32x4_t vsetlane(const float value, const float32x4_t vector, const unsigned int lane)
Definition: setlane.h:194

Definition at line 144 of file setlane.h.