only FMA3 and vector larger than 128 have positive effects.

This commit is contained in:
Qiyu8 2020-11-11 15:18:01 +08:00
parent 8c0b206d4c
commit 5bc0a7583f
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ static void srot_kernel(BLASLONG n, FLOAT *x, FLOAT *y, FLOAT c, FLOAT s)
{ {
BLASLONG i = 0; BLASLONG i = 0;
#if V_SIMD #if V_SIMD && (HAVE_FMA3 || V_SIMD > 128)
const int vstep = v_nlanes_f32; const int vstep = v_nlanes_f32;
const int unrollx4 = n & (-vstep * 4); const int unrollx4 = n & (-vstep * 4);
const int unrollx = n & -vstep; const int unrollx = n & -vstep;