Compute Library
 21.11
getlane.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 VGETLANE_IMPL_8(stype, vtype, postfix)
 
#define VGETLANE_IMPL_4(stype, vtype, postfix)
 
#define VGETLANE_IMPL_2(stype, vtype, postfix)
 
#define VGETQLANE_IMPL_16(stype, vtype, postfix)
 
#define VGETQLANE_IMPL_8(stype, vtype, postfix)
 
#define VGETQLANE_IMPL_4(stype, vtype, postfix)
 
#define VGETQLANE_IMPL_2(stype, vtype, postfix)
 

Functions

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

Macro Definition Documentation

◆ VGETLANE_IMPL_2

#define VGETLANE_IMPL_2 (   stype,
  vtype,
  postfix 
)
Value:
inline stype vgetlane(const vtype vector, const unsigned int lane) \
{ \
switch(lane) \
{ \
case 0: \
return vget_lane_##postfix(vector, 0); \
case 1: \
return vget_lane_##postfix(vector, 1); \
default: \
ARM_COMPUTE_ERROR("Invalid lane"); \
} \
}
int64_t vgetlane(const int64x2_t vector, const unsigned int lane)
Definition: getlane.h:209

Definition at line 77 of file getlane.h.

◆ VGETLANE_IMPL_4

#define VGETLANE_IMPL_4 (   stype,
  vtype,
  postfix 
)
Value:
inline stype vgetlane(const vtype vector, const unsigned int lane) \
{ \
switch(lane) \
{ \
case 0: \
return vget_lane_##postfix(vector, 0); \
case 1: \
return vget_lane_##postfix(vector, 1); \
case 2: \
return vget_lane_##postfix(vector, 2); \
case 3: \
return vget_lane_##postfix(vector, 3); \
default: \
ARM_COMPUTE_ERROR("Invalid lane"); \
} \
}
int64_t vgetlane(const int64x2_t vector, const unsigned int lane)
Definition: getlane.h:209

Definition at line 59 of file getlane.h.

◆ VGETLANE_IMPL_8

#define VGETLANE_IMPL_8 (   stype,
  vtype,
  postfix 
)
Value:
inline stype vgetlane(const vtype vector, const unsigned int lane) \
{ \
switch(lane) \
{ \
case 0: \
return vget_lane_##postfix(vector, 0); \
case 1: \
return vget_lane_##postfix(vector, 1); \
case 2: \
return vget_lane_##postfix(vector, 2); \
case 3: \
return vget_lane_##postfix(vector, 3); \
case 4: \
return vget_lane_##postfix(vector, 4); \
case 5: \
return vget_lane_##postfix(vector, 5); \
case 6: \
return vget_lane_##postfix(vector, 6); \
case 7: \
return vget_lane_##postfix(vector, 7); \
default: \
ARM_COMPUTE_ERROR("Invalid lane"); \
} \
}
int64_t vgetlane(const int64x2_t vector, const unsigned int lane)
Definition: getlane.h:209

Definition at line 33 of file getlane.h.

◆ VGETQLANE_IMPL_16

#define VGETQLANE_IMPL_16 (   stype,
  vtype,
  postfix 
)

Definition at line 102 of file getlane.h.

◆ VGETQLANE_IMPL_2

#define VGETQLANE_IMPL_2 (   stype,
  vtype,
  postfix 
)
Value:
inline stype vgetlane(const vtype vector, const unsigned int lane) \
{ \
switch(lane) \
{ \
case 0: \
return vgetq_lane_##postfix(vector, 0); \
case 1: \
return vgetq_lane_##postfix(vector, 1); \
default: \
ARM_COMPUTE_ERROR("Invalid lane"); \
} \
}
int64_t vgetlane(const int64x2_t vector, const unsigned int lane)
Definition: getlane.h:209

Definition at line 188 of file getlane.h.

◆ VGETQLANE_IMPL_4

#define VGETQLANE_IMPL_4 (   stype,
  vtype,
  postfix 
)
Value:
inline stype vgetlane(const vtype vector, const unsigned int lane) \
{ \
switch(lane) \
{ \
case 0: \
return vgetq_lane_##postfix(vector, 0); \
case 1: \
return vgetq_lane_##postfix(vector, 1); \
case 2: \
return vgetq_lane_##postfix(vector, 2); \
case 3: \
return vgetq_lane_##postfix(vector, 3); \
default: \
ARM_COMPUTE_ERROR("Invalid lane"); \
} \
}
int64_t vgetlane(const int64x2_t vector, const unsigned int lane)
Definition: getlane.h:209

Definition at line 170 of file getlane.h.

◆ VGETQLANE_IMPL_8

#define VGETQLANE_IMPL_8 (   stype,
  vtype,
  postfix 
)
Value:
inline stype vgetlane(const vtype vector, const unsigned int lane) \
{ \
switch(lane) \
{ \
case 0: \
return vgetq_lane_##postfix(vector, 0); \
case 1: \
return vgetq_lane_##postfix(vector, 1); \
case 2: \
return vgetq_lane_##postfix(vector, 2); \
case 3: \
return vgetq_lane_##postfix(vector, 3); \
case 4: \
return vgetq_lane_##postfix(vector, 4); \
case 5: \
return vgetq_lane_##postfix(vector, 5); \
case 6: \
return vgetq_lane_##postfix(vector, 6); \
case 7: \
return vgetq_lane_##postfix(vector, 7); \
default: \
ARM_COMPUTE_ERROR("Invalid lane"); \
} \
}
int64_t vgetlane(const int64x2_t vector, const unsigned int lane)
Definition: getlane.h:209

Definition at line 144 of file getlane.h.