summaryrefslogtreecommitdiff
path: root/math/libpgmath/files/patch-lib_common_dispatch.c
diff options
context:
space:
mode:
authorJohannes M Dieterich <jmd@FreeBSD.org>2018-09-06 20:06:40 +0000
committerJohannes M Dieterich <jmd@FreeBSD.org>2018-09-06 20:06:40 +0000
commit790b4d631d6f5056c66386f717fea8ac7b8b5b74 (patch)
tree4f1f6272109beb297c4443c67306f19e43924fa8 /math/libpgmath/files/patch-lib_common_dispatch.c
parentdevel/awscli: Update 1.16.7 -> 1.16.8 (diff)
new port: math/libpgmath
This adds the compiler-callable math intrinsics library libpgmath. It is the math library of the flang compiler with support for vector operations. Patches were in large part adapted from the OpenBSD port. Reviewed by: zeising (mentor), mat Approved by: zeising (mentor) Obtained from: Brian Callahan (bcallah@openbsd.org) with adaptations Differential Revision: https://reviews.freebsd.org/D17034
Notes
Notes: svn path=/head/; revision=479158
Diffstat (limited to 'math/libpgmath/files/patch-lib_common_dispatch.c')
-rw-r--r--math/libpgmath/files/patch-lib_common_dispatch.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/math/libpgmath/files/patch-lib_common_dispatch.c b/math/libpgmath/files/patch-lib_common_dispatch.c
new file mode 100644
index 000000000000..fc8034e12865
--- /dev/null
+++ b/math/libpgmath/files/patch-lib_common_dispatch.c
@@ -0,0 +1,14 @@
+--- lib/common/dispatch.c.orig 2018-09-04 21:58:51 UTC
++++ lib/common/dispatch.c
+@@ -62,11 +62,7 @@
+ #include <time.h>
+ #include <unistd.h>
+ #include <inttypes.h>
+-#ifdef TARGET_LINUX_X8664
+-#include <malloc.h>
+-#else
+ #include <sched.h>
+-#endif
+ #include "mth_tbldefs.h"
+ #if defined(TARGET_LINUX_X8664) || defined(TARGET_OSX_X8664)
+ #include "cpuid8664.h"