Skip to content

Commit

Permalink
Fix zgemv.c compilation when stack allocation is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromerobert committed Feb 8, 2016
1 parent 0ad02ef commit 16ec532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interface/zgemv.c
Expand Up @@ -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));
Expand Down

0 comments on commit 16ec532

Please sign in to comment.