File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 9
9
#endif
10
10
11
11
#ifndef HAVE_CASUM_KERNEL
12
- static FLOAT casum_kernel (BLASLONG n , FLOAT * x1 )
12
+ static FLOAT casum_kernel (BLASLONG n , FLOAT * x )
13
13
{
14
14
15
15
BLASLONG i = 0 ;
16
16
BLASLONG n_8 = n & -8 ;
17
- FLOAT * x = x1 ;
17
+ FLOAT * x1 = x ;
18
18
FLOAT temp0 , temp1 , temp2 , temp3 ;
19
19
FLOAT temp4 , temp5 , temp6 , temp7 ;
20
20
FLOAT sum0 = 0.0 ;
@@ -24,14 +24,14 @@ static FLOAT casum_kernel(BLASLONG n, FLOAT *x1)
24
24
FLOAT sum4 = 0.0 ;
25
25
26
26
while (i < n_8 ) {
27
- temp0 = ABS_K (x [0 ]);
28
- temp1 = ABS_K (x [1 ]);
29
- temp2 = ABS_K (x [2 ]);
30
- temp3 = ABS_K (x [3 ]);
31
- temp4 = ABS_K (x [4 ]);
32
- temp5 = ABS_K (x [5 ]);
33
- temp6 = ABS_K (x [6 ]);
34
- temp7 = ABS_K (x [7 ]);
27
+ temp0 = ABS_K (x1 [0 ]);
28
+ temp1 = ABS_K (x1 [1 ]);
29
+ temp2 = ABS_K (x1 [2 ]);
30
+ temp3 = ABS_K (x1 [3 ]);
31
+ temp4 = ABS_K (x1 [4 ]);
32
+ temp5 = ABS_K (x1 [5 ]);
33
+ temp6 = ABS_K (x1 [6 ]);
34
+ temp7 = ABS_K (x1 [7 ]);
35
35
36
36
sum0 += temp0 ;
37
37
sum1 += temp1 ;
@@ -43,12 +43,12 @@ static FLOAT casum_kernel(BLASLONG n, FLOAT *x1)
43
43
sum2 += temp6 ;
44
44
sum3 += temp7 ;
45
45
46
- x += 8 ;
46
+ x1 += 8 ;
47
47
i += 4 ;
48
48
}
49
49
50
50
while (i < n ) {
51
- sum4 += ( ABS_K (x1 [0 ]) + ABS_K (x1 [1 ]) );
51
+ sum4 += ABS_K (x1 [0 ]) + ABS_K (x1 [1 ]);
52
52
x1 += 2 ;
53
53
i ++ ;
54
54
}
You can’t perform that action at this time.
0 commit comments