View | Details | Raw Unified | Return to bug 266470 | Differences between
and this patch

Collapse All | Expand All

(-)b/www/firefox/files/patch-modules_fdlibm_src_math__private.h (+26 lines)
Added Link Here
1
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266470
2
https://bugzilla.mozilla.org/show_bug.cgi?id=1729459
3
4
--- modules/fdlibm/src/math_private.h.orig	2022-11-10 18:21:54 UTC
5
+++ modules/fdlibm/src/math_private.h
6
@@ -30,9 +30,18 @@
7
  * Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t
8
  */
9
 
10
-typedef double      __double_t;
11
+#ifdef __LP64__
12
+typedef double __double_t;
13
+#else
14
+typedef long double __double_t;
15
+#endif
16
 typedef __double_t  double_t;
17
-typedef float       __float_t;
18
+
19
+#ifdef __LP64__
20
+typedef float __double_t;
21
+#else
22
+typedef long double __float_t;
23
+#endif
24
 
25
 /*
26
  * The original fdlibm code used statements like:

Return to bug 266470