[packages/mozjs140] - one more x32 fix

qboosh qboosh at pld-linux.org
Wed Sep 17 20:53:50 CEST 2025


commit 5ff8b83d0bb4631833f94a11da1b1f809b54474a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Sep 17 20:56:46 2025 +0200

    - one more x32 fix

 x32.patch | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/x32.patch b/x32.patch
index 13f573a..b1b432f 100644
--- a/x32.patch
+++ b/x32.patch
@@ -110,6 +110,15 @@
          # The `add` operation can be optimized with XADD.
          if op == "add":
              insns = ""
+@@ -629,7 +629,7 @@ def gen_fetchop(fun_name, cpp_type, size
+ 
+ 
+ def gen_pause(fun_name):
+-    if cpu_arch in ("x86", "x86_64"):
++    if cpu_arch in ("x86", "x86_64", "x32"):
+         return r"""
+             INLINE_ATTR void %(fun_name)s() {
+                 asm volatile ("pause" :::);
 @@ -635,7 +635,7 @@ def gen_copy(fun_name, cpp_type, size, u
          offset = unroll - 1
      insns = ""
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mozjs140.git/commitdiff/5ff8b83d0bb4631833f94a11da1b1f809b54474a



More information about the pld-cvs-commit mailing list