Remove patch
This commit is contained in:
parent
26835b84e9
commit
7b558e7314
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# cln
|
||||
|
||||
#### Description
|
||||
CLN - Class Library for Numbers
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
||||
# cln
|
||||
|
||||
#### 介绍
|
||||
CLN - Class Library for Numbers
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
||||
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
@ -1,62 +0,0 @@
|
||||
Author: misaka00251 <misaka00251@misakanet.cn>
|
||||
Date: Fri Jul 15 16:13:26 2022 +0800
|
||||
|
||||
Add riscv64 support.
|
||||
|
||||
diff --git a/include/cln/object.h b/include/cln/object.h
|
||||
index 56f6f07..e26e079 100644
|
||||
--- a/include/cln/object.h
|
||||
+++ b/include/cln/object.h
|
||||
@@ -22,10 +22,10 @@ namespace cln {
|
||||
#if defined(__m68k__)
|
||||
#define cl_word_alignment 2
|
||||
#endif
|
||||
-#if defined(__i386__) || (defined(__mips__) && !defined(__LP64__)) || (defined(__sparc__) && !defined(__arch64__)) || defined(__hppa__) || defined(__arm__) || defined(__rs6000__) || defined(__m88k__) || defined(__convex__) || (defined(__s390__) && !defined(__s390x__)) || defined(__sh__) || (defined(__x86_64__) && defined(__ILP32__))
|
||||
+#if defined(__i386__) || (defined(__mips__) && !defined(__LP64__)) || (defined(__sparc__) && !defined(__arch64__)) || defined(__hppa__) || defined(__arm__) || defined(__rs6000__) || defined(__m88k__) || defined(__convex__) || (defined(__s390__) && !defined(__s390x__)) || defined(__sh__) || (defined(__x86_64__) && defined(__ILP32__)) || (defined(__riscv) && __riscv_xlen == 32)
|
||||
#define cl_word_alignment 4
|
||||
#endif
|
||||
-#if defined(__alpha__) || defined(__ia64__) || defined(__mips64__) || defined(__powerpc64__) || (defined(__sparc__) && defined(__arch64__)) || (defined(__x86_64__) && !defined(__ILP32__)) || defined(__s390x__) || defined(__aarch64__)
|
||||
+#if defined(__alpha__) || defined(__ia64__) || defined(__mips64__) || defined(__powerpc64__) || (defined(__sparc__) && defined(__arch64__)) || (defined(__x86_64__) && !defined(__ILP32__)) || defined(__s390x__) || defined(__aarch64__) || (defined(__riscv) && __riscv_xlen == 64)
|
||||
#define cl_word_alignment 8
|
||||
#endif
|
||||
#if !defined(cl_word_alignment)
|
||||
diff --git a/include/cln/types.h b/include/cln/types.h
|
||||
index 159e8bc..fd3c9a2 100644
|
||||
--- a/include/cln/types.h
|
||||
+++ b/include/cln/types.h
|
||||
@@ -48,7 +48,7 @@
|
||||
#undef HAVE_LONGLONG
|
||||
#endif
|
||||
#endif
|
||||
- #if defined(HAVE_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__mips64__) || defined(__powerpc64__) || defined(__s390x__) || (defined(__sparc__) && defined(__arch64__)) || defined(__x86_64__) || defined(__aarch64__))
|
||||
+ #if defined(HAVE_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__mips64__) || defined(__powerpc64__) || defined(__s390x__) || (defined(__sparc__) && defined(__arch64__)) || defined(__x86_64__) || defined(__aarch64__)) || (defined(__riscv) && __riscv_xlen == 64)
|
||||
// 64 bit registers in hardware
|
||||
#define HAVE_FAST_LONGLONG
|
||||
#endif
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
// Integer type used for counters.
|
||||
// Constraint: sizeof(uintC) >= sizeof(uintL)
|
||||
- #if (defined(HAVE_FAST_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__powerpc64__) || defined(__s390x__) || (defined(__sparc__) && defined(__arch64__)) || defined(__x86_64__) || defined(__aarch64__) || defined(__mips64__)))
|
||||
+ #if (defined(HAVE_FAST_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__powerpc64__) || defined(__s390x__) || (defined(__sparc__) && defined(__arch64__)) || defined(__x86_64__) || defined(__aarch64__) || defined(__mips64__))) || (defined(__riscv) && __riscv_xlen == 64)
|
||||
#define intCsize long_bitsize
|
||||
typedef long sintC;
|
||||
typedef unsigned long uintC;
|
||||
@@ -88,7 +88,7 @@
|
||||
|
||||
// Integer type used for lfloat exponents.
|
||||
// Constraint: sizeof(uintE) >= sizeof(uintC)
|
||||
- #if (defined(HAVE_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__powerpc64__) || defined(__s390x__) || (defined(__sparc__) && defined(__arch64__)) || defined(__x86_64__) || defined(__i386__) || defined(__mips__) || defined(__rs6000__) || defined(__aarch64__)))
|
||||
+ #if (defined(HAVE_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__powerpc64__) || defined(__s390x__) || (defined(__sparc__) && defined(__arch64__)) || defined(__x86_64__) || defined(__i386__) || defined(__mips__) || defined(__rs6000__) || defined(__aarch64__))) || (defined(__riscv) && __riscv_xlen == 64)
|
||||
#define intEsize 64
|
||||
typedef sint64 sintE;
|
||||
typedef uint64 uintE;
|
||||
@@ -127,7 +127,7 @@
|
||||
typedef int sintD;
|
||||
typedef unsigned int uintD;
|
||||
#else // we are not using GMP, so just guess something reasonable
|
||||
- #if (defined(HAVE_FAST_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__powerpc64__) || (defined(__sparc__) && defined(__arch64__)) || defined(__s390x__) || defined(__x86_64__) || defined(__aarch64__) || defined(__mips64__)))
|
||||
+ #if (defined(HAVE_FAST_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__powerpc64__) || (defined(__sparc__) && defined(__arch64__)) || defined(__s390x__) || defined(__x86_64__) || defined(__aarch64__) || defined(__mips64__))) || (defined(__riscv) && __riscv_xlen == 64)
|
||||
#define intDsize 64
|
||||
typedef sint64 sintD;
|
||||
typedef uint64 uintD;
|
||||
10
cln.spec
10
cln.spec
@ -1,17 +1,16 @@
|
||||
Name: cln
|
||||
Version: 1.3.6
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Class Library for Numbers
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://www.ginac.de/CLN/
|
||||
Source0: https://www.ginac.de/CLN/%{name}-%{version}.tar.bz2
|
||||
Patch01: add-riscv-support.patch
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gmp-devel
|
||||
BuildRequires: texi2html
|
||||
BuildRequires: texinfo-tex
|
||||
BuildRequires: make
|
||||
BuildRequires: make
|
||||
|
||||
%description
|
||||
A collection of C++ math classes and functions, which are designed for
|
||||
@ -73,8 +72,11 @@ make %{_smp_mflags} check
|
||||
%doc doc/cln.pdf doc/cln.html
|
||||
|
||||
%changelog
|
||||
* Mon May 08 2023 misaka00251 <liuxin@iscas.ac.cn> - 1.3.6-2
|
||||
- Remove patch, it's merged upstream
|
||||
|
||||
* Tue Nov 15 2022 hkgy <kaguyahatu@outlook.com> - 1.3.6-1
|
||||
- Upgrade to v1.3.6
|
||||
|
||||
* Fri Jul 15 2022 misaka00251 <misaka00251@misakanet.cn> - 1.3.4-1
|
||||
* Fri Jul 15 2022 misaka00251 <liuxin@iscas.ac.cn> - 1.3.4-1
|
||||
- Init package
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user