ports/math/openblas/files/patch-interface__ztrmv.c
Joseph Mingrone d6a774a4d4 math/openblas: Fix build on 12-CURRENT armv6.
The build still fails on 11 armv6, however MFC of r313873 will hopefully
fix the build there as well.

While here also add LICENSE_FILE and fix portlint warnings.

PR:		217279
Submitted by:	mikael.urankar@gmail.com
Approved by:	phd_kimberlite@yahoo.co.jp (maintainer), swills (mentor, implicit)
Differential Revision:	https://reviews.freebsd.org/D9801
2017-02-25 18:19:50 +00:00

11 lines
430 B
C

--- interface/ztrmv.c.orig 2016-09-01 03:58:42 UTC
+++ interface/ztrmv.c
@@ -242,7 +242,7 @@ void CNAME(enum CBLAS_ORDER order, enum
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)