diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
| commit | 2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch) | |
| tree | 25f0138e1af8902b92dacc8cce09b267447c17db /lang/spidermonkey91/files/patch-modules_fdlibm_src_math__private.h | |
| parent | f85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff) | |
| parent | 1a30da80670973368b399f2b01fe9c04b91a1273 (diff) | |
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'lang/spidermonkey91/files/patch-modules_fdlibm_src_math__private.h')
| -rw-r--r-- | lang/spidermonkey91/files/patch-modules_fdlibm_src_math__private.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/lang/spidermonkey91/files/patch-modules_fdlibm_src_math__private.h b/lang/spidermonkey91/files/patch-modules_fdlibm_src_math__private.h deleted file mode 100644 index 8be5854b5160..000000000000 --- a/lang/spidermonkey91/files/patch-modules_fdlibm_src_math__private.h +++ /dev/null @@ -1,46 +0,0 @@ ---- modules/fdlibm/src/math_private.h.orig 2022-04-16 03:20:29 UTC -+++ modules/fdlibm/src/math_private.h -@@ -30,7 +30,9 @@ - * Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t - */ - -+#ifndef __FreeBSD__ - typedef double __double_t; -+#endif - typedef __double_t double_t; - - /* -@@ -636,6 +638,33 @@ rnint(__double_t x) - * sometimes be more efficient because no rounding is required. - */ - #if (defined(amd64) || defined(__i386__)) && defined(__GNUCLIKE_ASM) -+ -+#if defined(__i386__) -+static __inline int -+irintf(float x) -+{ -+ int n; -+ __asm("fistl %0" : "=m" (n) : "t" (x)); -+ return (n); -+} -+ -+static __inline int -+irintd(double x) -+{ -+ int n; -+ __asm("fistl %0" : "=m" (n) : "t" (x)); -+ return (n); -+} -+ -+static __inline int -+irintl(long x) -+{ -+ int n; -+ __asm("fistl %0" : "=m" (n) : "t" (x)); -+ return (n); -+} -+#endif -+ - #define irint(x) \ - (sizeof(x) == sizeof(float) && \ - sizeof(__float_t) == sizeof(long double) ? irintf(x) : \ |
