Skip to content

Commit 5bc0a75

Browse files
committed
only FMA3 and vector larger than 128 have positive effects.
1 parent 8c0b206 commit 5bc0a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/x86_64/srot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ static void srot_kernel(BLASLONG n, FLOAT *x, FLOAT *y, FLOAT c, FLOAT s)
1313
{
1414
BLASLONG i = 0;
1515

16-
#if V_SIMD
16+
#if V_SIMD && (HAVE_FMA3 || V_SIMD > 128)
1717
const int vstep = v_nlanes_f32;
1818
const int unrollx4 = n & (-vstep * 4);
1919
const int unrollx = n & -vstep;

0 commit comments

Comments
 (0)