1 Star 0 Fork 27

xiexing/redis6

forked from src-openEuler/redis6 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Add-loongarch64-support.patch 855 Bytes
一键复制 编辑 原始数据 按行查看 历史
huajingyun 提交于 2022-11-15 12:26 . Add loongarch64 support
From a1f23456adfaec27df27bba511bcf7fae59708f0 Mon Sep 17 00:00:00 2001
From: WangQiang <wangqiang1@kylinos.cn>
Date: Tue, 28 Jun 2022 10:10:21 +0800
Subject: [PATCH] Add LoongArch64 Support
---
.../include/jemalloc/internal/jemalloc_internal_types.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h b/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h
index 1b750b1..780627d 100644
--- a/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h
+++ b/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h
@@ -107,6 +107,9 @@ typedef int malloc_cpuid_t;
# ifdef __tile__
# define LG_QUANTUM 4
# endif
+# ifdef __loongarch__
+# define LG_QUANTUM 4
+# endif
# ifdef __le32__
# define LG_QUANTUM 4
# endif
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiexing01/redis6.git
git@gitee.com:xiexing01/redis6.git
xiexing01
redis6
redis6
master

搜索帮助