Skip to content

Commit

Permalink
Merge pull request #1225 from martin-frbg/stolen_from_wernsaar_fork
Browse files Browse the repository at this point in the history
fixed syrk_thread.c taken from wernsaar
  • Loading branch information
xianyi authored Jul 7, 2017
2 parents fa6a920 + 49e62c0 commit bfe1656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/level3/syrk_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ int CNAME(int mode, blas_arg_t *arg, BLASLONG *range_m, BLASLONG *range_n, int (
if (nthreads - num_cpu > 1) {

di = (double)i;
width = ((BLASLONG)( sqrt(di * di + dnum) - di) + mask) & ~mask;
width = (BLASLONG)(( sqrt(di * di + dnum) - di + mask)/(mask+1)) * (mask+1);

if ((width <= 0) || (width > n_to - i)) width = n_to - i;

Expand Down Expand Up @@ -149,7 +149,7 @@ int CNAME(int mode, blas_arg_t *arg, BLASLONG *range_m, BLASLONG *range_n, int (
if (nthreads - num_cpu > 1) {

di = (double)(arg -> n - i);
width = ((BLASLONG)(-sqrt(di * di + dnum) + di) + mask) & ~mask;
width = ((BLASLONG)((-sqrt(di * di + dnum) + di) + mask)/(mask+1)) * (mask+1);

if ((width <= 0) || (width > n_to - i)) width = n_to - i;

Expand Down

0 comments on commit bfe1656

Please sign in to comment.