Skip to content

Commit 8be68fa

Browse files
authored
move declaration of sca to really keep the compiler from throwing it out (for now)
1 parent f096a33 commit 8be68fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kernel/arm64/dznrm2_thunderx2t99.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,6 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
344344
FLOAT dummy_alpha[2];
345345
#endif
346346
FLOAT ssq, scale;
347-
volatile FLOAT sca;
348347

349348
if (n <= 0 || inc_x <= 0) return 0.0;
350349

@@ -405,7 +404,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
405404
#else
406405
nrm2_compute(n, x, inc_x, &ssq, &scale);
407406
#endif
408-
sca = fabs(scale);
407+
volatile FLOAT sca = fabs(scale);
409408
if (sca < DBL_MIN) return 0.;
410409
ssq = sqrt(ssq) * scale;
411410

0 commit comments

Comments
 (0)