summaryrefslogtreecommitdiff
path: root/math/openblas64/files/patch-interface__ztrmv.c
blob: 854a83bf42ea7a1448178fda7be3d33964096bee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- interface/ztrmv.c.orig	2019-04-29 17:22:19 UTC
+++ interface/ztrmv.c
@@ -245,7 +245,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Upl
   else
 #endif
   {
-    buffer_size = ((n - 1) / DTB_ENTRIES) * 2 * DTB_ENTRIES + 32 / sizeof(FLOAT);
+    buffer_size = (((n - 1) / DTB_ENTRIES) * 2 * DTB_ENTRIES + 32 / sizeof(FLOAT)) + 8;
     // It seems to be required for some K8 or Barcelona CPU
     buffer_size += 8;
     if(incx != 1)