mirror of https://github.com/PentHertz/srsLTE.git
simd: fix compilation error under NEON
This commit is contained in:
parent
b1a127a546
commit
8f72d4c55e
|
@ -1333,21 +1333,21 @@ static inline simd_sel_t srslte_simd_f_min(simd_f_t a, simd_f_t b)
|
||||||
#endif /* LV_HAVE_AVX512 */
|
#endif /* LV_HAVE_AVX512 */
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline simd_f_t srslte_simd_f_select(simd_f_t a, simd_f_t b, simd_sel_t sel)
|
static inline simd_f_t srslte_simd_f_select(simd_f_t a, simd_f_t b, simd_sel_t selector)
|
||||||
{
|
{
|
||||||
#ifdef LV_HAVE_AVX512
|
#ifdef LV_HAVE_AVX512
|
||||||
return _mm512_mask_blend_ps(sel, (__m512)a, (__m512)b);
|
return _mm512_mask_blend_ps(selector, (__m512)a, (__m512)b);
|
||||||
#else /* LV_HAVE_AVX512 */
|
#else /* LV_HAVE_AVX512 */
|
||||||
#ifdef LV_HAVE_AVX2
|
#ifdef LV_HAVE_AVX2
|
||||||
return _mm256_blendv_ps(a, b, sel);
|
return _mm256_blendv_ps(a, b, selector);
|
||||||
#else
|
#else
|
||||||
#ifdef LV_HAVE_SSE
|
#ifdef LV_HAVE_SSE
|
||||||
return _mm_blendv_ps(a, b, sel);
|
return _mm_blendv_ps(a, b, selector);
|
||||||
#else /* LV_HAVE_SSE */
|
#else /* LV_HAVE_SSE */
|
||||||
#ifdef HAVE_NEON // CURRENTLY USES GENERIC IMPLEMENTATION FOR NEON
|
#ifdef HAVE_NEON // CURRENTLY USES GENERIC IMPLEMENTATION FOR NEON
|
||||||
float* a_ptr = (float*)&a;
|
float* a_ptr = (float*)&a;
|
||||||
float* b_ptr = (float*)&b;
|
float* b_ptr = (float*)&b;
|
||||||
simd_i_t ret;
|
simd_f_t ret;
|
||||||
int* sel = (int*)&selector;
|
int* sel = (int*)&selector;
|
||||||
float* c_ptr = (float*)&ret;
|
float* c_ptr = (float*)&ret;
|
||||||
for (int i = 0; i < 4; i++) {
|
for (int i = 0; i < 4; i++) {
|
||||||
|
|
Loading…
Reference in New Issue