ports/math/libpgmath/files/patch-lib_common_dispatch.c
Johannes M Dieterich 790b4d631d 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
2018-09-06 20:06:40 +00:00

15 lines
358 B
C

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