memkind/0003-memkind-add-sw64-support.patch
2025-02-27 17:41:03 +08:00

27 lines
717 B
Diff

From 9d68f6afce39f03e5301383193ee6d46a1cad584 Mon Sep 17 00:00:00 2001
From: maqi <maqi@uniontech.com>
Date: Fri, 15 Nov 2024 16:35:15 +0800
Subject: [PATCH] add sw64 support
---
jemalloc/include/jemalloc/internal/quantum.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/jemalloc/include/jemalloc/internal/quantum.h b/jemalloc/include/jemalloc/internal/quantum.h
index c22d753..3fbef00 100644
--- a/jemalloc/include/jemalloc/internal/quantum.h
+++ b/jemalloc/include/jemalloc/internal/quantum.h
@@ -62,6 +62,9 @@
defined(__SH4_SINGLE_ONLY__))
# define LG_QUANTUM 4
# endif
+# ifdef __sw_64__
+# define LG_QUANTUM 4
+# endif
# ifdef __tile__
# define LG_QUANTUM 4
# endif
--
2.33.0