Skip to content

Commit d947116

Browse files
authored
Merge pull request #3311 from martin-frbg/issue3309
Revert PR #3250 (shortcut without buffer allocation) as it is unsafe …
2 parents 54ffe28 + 1dea57a commit d947116

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

interface/gemv.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,14 @@ void CNAME(enum CBLAS_ORDER order,
201201
if (beta != ONE) SCAL_K(leny, 0, 0, beta, y, blasabs(incy), NULL, 0, NULL, 0);
202202

203203
if (alpha == ZERO) return;
204-
204+
205+
#if 0
206+
/* this optimization causes stack corruption on x86_64 under OSX, Windows and FreeBSD */
205207
if (trans == 0 && incx == 1 && incy == 1 && m*n < 2304 *GEMM_MULTITHREAD_THRESHOLD) {
206208
GEMV_N(m, n, 0, alpha, a, lda, x, incx, y, incy, NULL);
207209
return;
208210
}
209-
211+
#endif
210212
IDEBUG_START;
211213

212214
FUNCTION_PROFILE_START();

0 commit comments

Comments
 (0)