Fix thinko in skylake beta handling
casting ints is cheaper but it has a rounding, not memory casing effect, resulting in invalid outcome
This commit is contained in:
parent
e1eab96502
commit
795285c587
|
@ -50,7 +50,7 @@ int CNAME(BLASLONG m, BLASLONG n, BLASLONG dummy1, FLOAT beta,
|
||||||
FLOAT ctemp5, ctemp6, ctemp7, ctemp8;
|
FLOAT ctemp5, ctemp6, ctemp7, ctemp8;
|
||||||
|
|
||||||
/* fast path.. just zero the whole matrix */
|
/* fast path.. just zero the whole matrix */
|
||||||
if (m == ldc && (unsigned long)beta == (unsigned long)ZERO) {
|
if (m == ldc && beta == ZERO) {
|
||||||
memset(c, 0, m * n * sizeof(FLOAT));
|
memset(c, 0, m * n * sizeof(FLOAT));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ int CNAME(BLASLONG m, BLASLONG n, BLASLONG dummy1, FLOAT beta,
|
||||||
FLOAT ctemp5, ctemp6, ctemp7, ctemp8;
|
FLOAT ctemp5, ctemp6, ctemp7, ctemp8;
|
||||||
|
|
||||||
/* fast path.. just zero the whole matrix */
|
/* fast path.. just zero the whole matrix */
|
||||||
if (m == ldc && (unsigned long)beta == (unsigned long)ZERO) {
|
if (m == ldc && beta == ZERO) {
|
||||||
memset(c, 0, m * n * sizeof(FLOAT));
|
memset(c, 0, m * n * sizeof(FLOAT));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue