diff options
Diffstat (limited to 'dev-libs/sleef')
-rw-r--r-- | dev-libs/sleef/files/sleef-3.5.1-riscv.patch | 11 | ||||
-rw-r--r-- | dev-libs/sleef/sleef-3.5.1.ebuild | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/dev-libs/sleef/files/sleef-3.5.1-riscv.patch b/dev-libs/sleef/files/sleef-3.5.1-riscv.patch new file mode 100644 index 000000000000..bb5ad68416f3 --- /dev/null +++ b/dev-libs/sleef/files/sleef-3.5.1-riscv.patch @@ -0,0 +1,11 @@ +--- a/src/arch/helperpurec_scalar.h 2023-04-07 19:54:14.823254936 +0200 ++++ b/src/arch/helperpurec_scalar.h 2023-04-07 19:54:29.684024763 +0200 +@@ -54,7 +54,7 @@ + #define ENABLE_FMA_SP + //@#define ENABLE_FMA_SP + +-#if defined(__AVX2__) || defined(__aarch64__) || defined(__arm__) || defined(__powerpc64__) || defined(__zarch__) ++#if defined(__AVX2__) || defined(__aarch64__) || defined(__arm__) || defined(__powerpc64__) || defined(__zarch__) || defined(__riscv) + #ifndef FP_FAST_FMA + #define FP_FAST_FMA + //@#define FP_FAST_FMA diff --git a/dev-libs/sleef/sleef-3.5.1.ebuild b/dev-libs/sleef/sleef-3.5.1.ebuild index c35fcc270ed5..b25e3d68bb1b 100644 --- a/dev-libs/sleef/sleef-3.5.1.ebuild +++ b/dev-libs/sleef/sleef-3.5.1.ebuild @@ -22,6 +22,7 @@ BDEPEND="" PATCHES=( "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-riscv.patch ) src_configure() { |