mozilla-bmo531915.patch
author Wolfgang Rosenauer <wr@rosenauer.org>
Mon, 17 Oct 2022 21:08:02 +0200
branchfirefox105
changeset 1179 c19c9e7820ef
parent 1162 af5e283c2e5d
child 1181 ba646dddffef
permissions -rw-r--r--
Firefox 105.0.3

# HG changeset patch
# User Wolfgang Rosenauer <wr@rosenauer.org>
# Parent  5573047016750e02413781dac0ac4c2361946ed2

diff --git a/modules/fdlibm/src/math_private.h b/modules/fdlibm/src/math_private.h
--- a/modules/fdlibm/src/math_private.h
+++ b/modules/fdlibm/src/math_private.h
@@ -25,19 +25,24 @@
 
 #include "fdlibm.h"
 
 /*
  * Emulate FreeBSD internal double types.
  * Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t
  */
 
+#ifdef __i386__
+typedef long double __double_t;
+typedef long double __float_t;
+#else
 typedef double      __double_t;
+typedef float       __float_t;
+#endif
 typedef __double_t  double_t;
-typedef float       __float_t;
 typedef __float_t   float_t;
 
 /*
  * The original fdlibm code used statements like:
  *	n0 = ((*(int*)&one)>>29)^1;		* index of high word *
  *	ix0 = *(n0+(int*)&x);			* high word of x *
  *	ix1 = *((1-n0)+(int*)&x);		* low word of x *
  * to dig two 32 bit words out of the 64 bit IEEE floating point