freebsd-ports/math/openblas/files/patch-interface__ztrmv.c
Steve Wills 033b9daecd math/openblas: Update to 0.3.7
While here, improve formatting and fix build of dependant ports.

PR:		231371
Submitted by:	yuri (initial version), pkubaj (ppc fixes)
Approved by:	Eijiro Shibusawa <phd_kimberlite@yahoo.co.jp> (maintainer)
2020-01-21 22:03:19 +00:00

11 lines
444 B
C

--- 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)