Browse Source

Multiply by two instead of left-shifting one place

fixes GCC ubsan report of "left shift of negative value -2" in the BLAS tests
tags/v0.3.11^2
Martin Kroeker GitHub 5 years ago
parent
commit
aa53a8a5cb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      kernel/x86_64/zdot.c

+ 2
- 2
kernel/x86_64/zdot.c View File

@@ -140,8 +140,8 @@ static void zdot_compute (BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLO
i=0;
ix=0;
iy=0;
inc_x <<= 1;
inc_y <<= 1;
inc_x *= 2;
inc_y *= 2;
while(i < n)
{



Loading…
Cancel
Save