ports/math/libpgmath/files/patch-lib_x86__64_libm__amd.h
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

23 lines
486 B
C

--- lib/x86_64/libm_amd.h.orig 2018-09-03 06:03:48 UTC
+++ lib/x86_64/libm_amd.h
@@ -68,7 +68,7 @@ regulations applicable in licensee's jurisdiction.
#include <math.h>
-#if !defined(TARGET_WIN)
+#if !defined(TARGET_LINUX)
typedef long __INT8_T;
typedef unsigned long __UINT8_T;
@@ -79,6 +79,11 @@ typedef unsigned long long __UINT8_T;
/* Open Tools #defines ldexpf */
#undef ldexpf
+
+#define DOMAIN 1
+#define SING 2
+#define OVERFLOW 3
+#define UNDERFLOW 4
#endif