diff --git a/interface/gemv.c b/interface/gemv.c index 405fad51f..d298d79f6 100644 --- a/interface/gemv.c +++ b/interface/gemv.c @@ -38,6 +38,7 @@ #include #include "common.h" +#include "l1param.h" #ifdef FUNCTION_PROFILE #include "functable.h" #endif @@ -214,6 +215,9 @@ void CNAME(enum CBLAS_ORDER order, volatile int stack_alloc_size = 0; //for gemv_n and gemv_t, try to allocate on stack stack_alloc_size = m + n; +#ifdef ALIGNED_ACCESS + stack_alloc_size += 3; +#endif if(stack_alloc_size < 128) //dgemv_n.S require a 128 bytes buffer stack_alloc_size = 128;