ports/math/openblas/files/patch-common__arm.h
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

24 lines
533 B
C

--- common_arm.h.orig 2016-09-01 03:58:42 UTC
+++ common_arm.h
@@ -93,6 +93,13 @@ static inline int blas_quickdivide(blasi
#endif
+/* Translate pre-UAL asm to UAL equivalents */
+#if defined(__clang__)
+#define fnmacs vmls.f32
+#define fnmacd vmls.f64
+#define fnmuls vnmul.f32
+#define fnmuld vnmul.f64
+#endif
#ifndef F_INTERFACE
#define REALNAME ASMNAME
@@ -105,7 +112,6 @@ static inline int blas_quickdivide(blasi
#define PROLOGUE \
.arm ;\
.global REALNAME ;\
- .func REALNAME ;\
REALNAME:
#define EPILOGUE