Fix zgemv.c compilation when stack allocation is disabled

This commit is contained in:
Jerome Robert 2016-02-08 12:05:02 +01:00
parent 0ad02ef2d6
commit 16ec5323c9
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ void CNAME(enum CBLAS_ORDER order,
buffer_size = (buffer_size + 3) & ~3;
STACK_ALLOC(buffer_size, FLOAT, buffer);
#ifdef ARCH_X86_64
#if defined(ARCH_X86_64) && defined(MAX_STACK_ALLOC) && MAX_STACK_ALLOC > 0
// cgemv_t.S return NaN if there are NaN or Inf in the buffer (see bug #746)
if(trans && stack_alloc_size)
memset(buffer, 0, MIN(BUFFER_SIZE, sizeof(FLOAT) * buffer_size));