1
0
Wolfgang Rosenauer 2022-10-09 20:45:53 +00:00 committed by Git OBS Bridge
parent c23a3695e5
commit faf5bbda6a
2 changed files with 31 additions and 4 deletions

View File

@ -1,11 +1,11 @@
# HG changeset patch
# User Wolfgang Rosenauer <wr@rosenauer.org>
# Parent bf1b6555518cfc5ea794a63078739cdf0bd8c73d
# 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,17 +25,21 @@
@@ -25,19 +25,24 @@
#include "fdlibm.h"
@ -16,14 +16,18 @@ diff --git a/modules/fdlibm/src/math_private.h b/modules/fdlibm/src/math_private
+#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 __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

View File

@ -1,7 +1,30 @@
# HG changeset patch
# User Wolfgang Rosenauer <wr@rosenauer.org>
# Parent 265eaf654a30dd08d5d35428fde308ccdb6142ec
# Parent 63af48397aee6985bb8d711bd918a201e5c8c282
# References: bmo#1792159 - Add missing includes to AtomicOperationsGenerated.h
diff --git a/js/src/jit/GenerateAtomicOperations.py b/js/src/jit/GenerateAtomicOperations.py
--- a/js/src/jit/GenerateAtomicOperations.py
+++ b/js/src/jit/GenerateAtomicOperations.py
@@ -702,16 +702,18 @@ HEADER_TEMPLATE = """\
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef jit_AtomicOperationsGenerated_h
#define jit_AtomicOperationsGenerated_h
/* This file is generated by jit/GenerateAtomicOperations.py. Do not edit! */
+#include "mozilla/Attributes.h"
+
namespace js {
namespace jit {
%(contents)s
} // namespace jit
} // namespace js
diff --git a/mozglue/misc/SIMD_avx2.cpp b/mozglue/misc/SIMD_avx2.cpp
--- a/mozglue/misc/SIMD_avx2.cpp
+++ b/mozglue/misc/SIMD_avx2.cpp