Skip to content

Commit

Permalink
arm: enable more intrinsic function for armv7
Browse files Browse the repository at this point in the history
Signed-off-by: Zhijin Zeng <[email protected]>
  • Loading branch information
zengdage authored and mr-c committed Apr 12, 2024
1 parent fee149a commit 416091e
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 20 deletions.
12 changes: 6 additions & 6 deletions simde/arm/neon/ld2_lane.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,10 @@ simde_int16x8x2_t simde_vld2q_lane_s16(int16_t const ptr[HEDLEY_ARRAY_PARAM(2)],
}
return r;
}
#if defined(SIMDE_ARM_NEON_A64V8_NATIVE)
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
#define simde_vld2q_lane_s16(ptr, src, lane) vld2q_lane_s16(ptr, src, lane)
#endif
#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
#undef vld2q_lane_s16
#define vld2q_lane_s16(ptr, src, lane) simde_vld2q_lane_s16((ptr), (src), (lane))
#endif
Expand Down Expand Up @@ -365,10 +365,10 @@ simde_uint16x8x2_t simde_vld2q_lane_u16(uint16_t const ptr[HEDLEY_ARRAY_PARAM(2)
}
return r;
}
#if defined(SIMDE_ARM_NEON_A64V8_NATIVE)
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
#define simde_vld2q_lane_u16(ptr, src, lane) vld2q_lane_u16(ptr, src, lane)
#endif
#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
#undef vld2q_lane_u16
#define vld2q_lane_u16(ptr, src, lane) simde_vld2q_lane_u16((ptr), (src), (lane))
#endif
Expand Down Expand Up @@ -564,10 +564,10 @@ simde_poly16x8x2_t simde_vld2q_lane_p16(simde_poly16_t const ptr[HEDLEY_ARRAY_PA
}
return r;
}
#if defined(SIMDE_ARM_NEON_A64V8_NATIVE)
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
#define simde_vld2q_lane_p16(ptr, src, lane) vld2q_lane_p16(ptr, src, lane)
#endif
#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
#undef vld2q_lane_p16
#define vld2q_lane_p16(ptr, src, lane) simde_vld2q_lane_p16((ptr), (src), (lane))
#endif
Expand Down
4 changes: 2 additions & 2 deletions simde/arm/neon/ld3.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ simde_vld3_s64(int64_t const *ptr) {
return r;
#endif
}
#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
#undef vld3_s64
#define vld3_s64(a) simde_vld3_s64((a))
#endif
Expand Down Expand Up @@ -400,7 +400,7 @@ simde_vld3_u64(uint64_t const *ptr) {
return r;
#endif
}
#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
#undef vld3_u64
#define vld3_u64(a) simde_vld3_u64((a))
#endif
Expand Down
12 changes: 6 additions & 6 deletions simde/arm/neon/ld3_lane.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,10 @@ simde_int16x8x3_t simde_vld3q_lane_s16(int16_t const ptr[HEDLEY_ARRAY_PARAM(3)],
}
return r;
}
#if defined(SIMDE_ARM_NEON_A64V8_NATIVE)
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
#define simde_vld3q_lane_s16(ptr, src, lane) vld3q_lane_s16(ptr, src, lane)
#endif
#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
#undef vld3q_lane_s16
#define vld3q_lane_s16(ptr, src, lane) simde_vld3q_lane_s16((ptr), (src), (lane))
#endif
Expand Down Expand Up @@ -365,10 +365,10 @@ simde_uint16x8x3_t simde_vld3q_lane_u16(uint16_t const ptr[HEDLEY_ARRAY_PARAM(3)
}
return r;
}
#if defined(SIMDE_ARM_NEON_A64V8_NATIVE)
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
#define simde_vld3q_lane_u16(ptr, src, lane) vld3q_lane_u16(ptr, src, lane)
#endif
#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
#undef vld3q_lane_u16
#define vld3q_lane_u16(ptr, src, lane) simde_vld3q_lane_u16((ptr), (src), (lane))
#endif
Expand Down Expand Up @@ -564,10 +564,10 @@ simde_poly16x8x3_t simde_vld3q_lane_p16(simde_poly16_t const ptr[HEDLEY_ARRAY_PA
}
return r;
}
#if defined(SIMDE_ARM_NEON_A64V8_NATIVE)
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
#define simde_vld3q_lane_p16(ptr, src, lane) vld3q_lane_p16(ptr, src, lane)
#endif
#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
#undef vld3q_lane_p16
#define vld3q_lane_p16(ptr, src, lane) simde_vld3q_lane_p16((ptr), (src), (lane))
#endif
Expand Down
4 changes: 2 additions & 2 deletions simde/arm/neon/ld4.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ simde_vld4_s64(int64_t const ptr[HEDLEY_ARRAY_PARAM(4)]) {
return s_;
#endif
}
#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
#undef vld4_s64
#define vld4_s64(a) simde_vld4_s64((a))
#endif
Expand Down Expand Up @@ -344,7 +344,7 @@ simde_vld4_u64(uint64_t const ptr[HEDLEY_ARRAY_PARAM(4)]) {
return s_;
#endif
}
#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
#undef vld4_u64
#define vld4_u64(a) simde_vld4_u64((a))
#endif
Expand Down
4 changes: 2 additions & 2 deletions simde/arm/neon/st3.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ simde_vst3_s64(int64_t ptr[HEDLEY_ARRAY_PARAM(3)], simde_int64x1x3_t val) {
#endif
#endif
}
#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
#undef vst3_s64
#define vst3_s64(a, b) simde_vst3_s64((a), (b))
#endif
Expand Down Expand Up @@ -440,7 +440,7 @@ simde_vst3_u64(uint64_t ptr[HEDLEY_ARRAY_PARAM(3)], simde_uint64x1x3_t val) {
#endif
#endif
}
#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
#undef vst3_u64
#define vst3_u64(a, b) simde_vst3_u64((a), (b))
#endif
Expand Down
4 changes: 2 additions & 2 deletions simde/arm/neon/st4.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ simde_vst4_s64(int64_t *ptr, simde_int64x1x4_t val) {
#endif
#endif
}
#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
#undef vst4_s64
#define vst4_s64(a, b) simde_vst4_s64((a), (b))
#endif
Expand Down Expand Up @@ -352,7 +352,7 @@ simde_vst4_u64(uint64_t *ptr, simde_uint64x1x4_t val) {
#endif
#endif
}
#if defined(SIMDE_ARM_NEON_A64V8_ENABLE_NATIVE_ALIASES)
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
#undef vst4_u64
#define vst4_u64(a, b) simde_vst4_u64((a), (b))
#endif
Expand Down
2 changes: 2 additions & 0 deletions simde/arm/neon/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -1291,6 +1291,8 @@ typedef union {
#endif
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
typedef simde_float32_t float32_t;
typedef simde_poly8_t poly8_t;
typedef simde_poly16_t poly16_t;

typedef simde_int8x8_t int8x8_t;
typedef simde_int16x4_t int16x4_t;
Expand Down

0 comments on commit 416091e

Please sign in to comment.