Skip to content

Commit

Permalink
fixed syrk_thread.c
Browse files Browse the repository at this point in the history
  • Loading branch information
wernsaar committed Jan 20, 2017
1 parent ab56468 commit 88900e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/level3/syrk_thread.c
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 88900e1

Please sign in to comment.