diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-01-17 06:41:55 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-01-17 06:41:55 +0000 |
commit | 6d730aa8064fbab6cc54447b6ed0e60b99c13256 (patch) | |
tree | 8c303cb48dc49dd218b79708ca71904653c5f831 /dev-lang | |
parent | cb2f73d10494730ba590096a1f24ebc6d0d61a9f (diff) |
gentoo auto-resync : 17:01:2025 - 06:41:55
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/Manifest.gz | bin | 22129 -> 22125 bytes | |||
-rw-r--r-- | dev-lang/orc/Manifest | 2 | ||||
-rw-r--r-- | dev-lang/orc/files/orc-0.4.40-avx.patch | 77 | ||||
-rw-r--r-- | dev-lang/orc/orc-0.4.40-r1.ebuild | 45 |
4 files changed, 124 insertions, 0 deletions
diff --git a/dev-lang/Manifest.gz b/dev-lang/Manifest.gz Binary files differindex 647aff297b7a..8c421dfc5152 100644 --- a/dev-lang/Manifest.gz +++ b/dev-lang/Manifest.gz diff --git a/dev-lang/orc/Manifest b/dev-lang/orc/Manifest index d200828b5e11..307e84293689 100644 --- a/dev-lang/orc/Manifest +++ b/dev-lang/orc/Manifest @@ -1,5 +1,7 @@ +AUX orc-0.4.40-avx.patch 3280 BLAKE2B 875193f2368c6cf668be470359ff6eea09ca4b2144fee18cf914c5ee104f9d75f0513bef140a979a4a8efb0549b813218960874d8cdae079192ee7ef8a71b8f8 SHA512 65c3bd8674f496d1fa2b4d12deb1f77cfd53bd33750f082f046f40af681c1f96a584b06d008d0fef88eac0a2d26e7d6123c8c483fa07b55b3af27b4dbd2dcaff DIST orc-0.4.38.tar.xz 227152 BLAKE2B f7babfec5f4d792fb52eb0ca23743b6c06a12625edcf0cecbf8e3cb88c13171a760c6874061a3e55a43df5389346b3c3d0ba3463d6e1ef32f685162f7478e631 SHA512 49f34be85f6980e4b5e94f848016f5788b658323f3a120110bc237722ac99938c02976efbe96022d148054330432899533305d4dd21be8fab76fd1995179339a DIST orc-0.4.40.tar.xz 233276 BLAKE2B 2f2be5b7eaf5ea8c2fc55ff3938b5a9e9ef25a1ff3c5de4c02f9847b2df9039c8f412b9d780a172e78838c22f5006544a8181d7aaa22c47be98e6f050c04435e SHA512 2cbc0b8b9f5f429e0c4b24b7b9a8bc5d249c013470d8a595fdb3969a68a90c95c3b1e79063851f2d0ca7f7888d33901f227d2e04f919df00caf37eca6270c0e3 EBUILD orc-0.4.38.ebuild 1114 BLAKE2B 1f74ad54afbd80418527e9db0ba3f92c188464ac733df92e748c263f45f37dc9e9093ac590a9ff7a86af5337333d5aa173b59ca23ab20b804324971d52d9e451 SHA512 a2a392126cd203248a393ae95653aa7f32cda77261a037322189cfb5db7f2b3ba470b8d592791588ecd4f23140313db8d8de181d2756fe4e1320692ecbf447d3 +EBUILD orc-0.4.40-r1.ebuild 1163 BLAKE2B 4f03262078954537ec917ae7001dfb96369ccf473d491a14739ea254347ed2ddb4e60f8f4d3a33ab2a854aadc78da91403a036a6d1f22f675f7ee1ab4d5d6ac4 SHA512 75e668e840dd9dc3b9c858af9369bfd1dd253a5f945e4360ad79034d1cca26997918582c806ab43a343d29967e98540af6274b269e8e54632158fda9e2625666 EBUILD orc-0.4.40.ebuild 1120 BLAKE2B 2e116fcd9cf8311193229f3a3e79ee398f4d2b33746bfcaf0f06d709699fd3d6e98f0a44aa3a024851b59aeaceeb672c6378186d3ccb46cc2237800351c6c4f6 SHA512 4c98d9f60cbde772c563e73fcb76122d7e5e60dda195b1c80b7094dbb428de408ead6d7de48049fcfa797811a623c4256041db56eb811fc2593ff54c5b539f6b MISC metadata.xml 265 BLAKE2B 15de31a2337fe8b9175ffe3fd29cb1eb24148d7463f772b18a7fe8b38bd4edb05005df1ce6996cf23dad21db879c18b95d245fa9d096a002b95155c01088f516 SHA512 78a0c7a2a820f7032f384cf68d2affdd92d6f1466778f879909d0acfcc1cdc3bd64eee700ba06979f561583981033aae59b5d61eb4cfd01fc71fc13e4433305f diff --git a/dev-lang/orc/files/orc-0.4.40-avx.patch b/dev-lang/orc/files/orc-0.4.40-avx.patch new file mode 100644 index 000000000000..41dddd0c7248 --- /dev/null +++ b/dev-lang/orc/files/orc-0.4.40-avx.patch @@ -0,0 +1,77 @@ +https://bugs.gentoo.org/948164 +https://gitlab.freedesktop.org/gstreamer/orc/-/issues/82 +https://gitlab.freedesktop.org/gstreamer/orc/-/commit/8e48a61e27f4d3e60bf2e3e7873fd61363db6ff8 + +From 8e48a61e27f4d3e60bf2e3e7873fd61363db6ff8 Mon Sep 17 00:00:00 2001 +From: "L. E. Segovia" <amy@centricular.com> +Date: Wed, 15 Jan 2025 22:20:14 +0000 +Subject: [PATCH] avx: Fix sqrtps encoding, it's an unary operator + +Fixes #82 + +Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/213> +--- + orc/orcavx.h | 4 ++-- + orc/orcprogram-c.c | 1 + + orc/orcrules-avx.c | 2 +- + testsuite/test.orc | 8 ++++++++ + 4 files changed, 12 insertions(+), 3 deletions(-) + +diff --git a/orc/orcavx.h b/orc/orcavx.h +index f564b63f..ca95bd02 100644 +--- a/orc/orcavx.h ++++ b/orc/orcavx.h +@@ -224,8 +224,8 @@ ORC_API void orc_avx_restore_mxcsr (OrcCompiler *compiler); + #define orc_avx_emit_mulps(p,s1,s2,d) orc_vex_emit_cpuinsn_size(p, ORC_X86_mulps, 32, s1, s2, d, ORC_X86_AVX_VEX256_PREFIX) + #define orc_avx_sse_emit_divps(p,s1,s2,d) orc_vex_emit_cpuinsn_size(p, ORC_X86_divps, 32, s1, s2, d, ORC_X86_AVX_VEX128_PREFIX) + #define orc_avx_emit_divps(p,s1,s2,d) orc_vex_emit_cpuinsn_size(p, ORC_X86_divps, 32, s1, s2, d, ORC_X86_AVX_VEX256_PREFIX) +-#define orc_avx_sse_emit_sqrtps(p,s1,s2,d) orc_vex_emit_cpuinsn_size(p, ORC_X86_sqrtps, 32, s1, s2, d, ORC_X86_AVX_VEX128_PREFIX) +-#define orc_avx_emit_sqrtps(p,s1,s2,d) orc_vex_emit_cpuinsn_size(p, ORC_X86_sqrtps, 32, s1, s2, d, ORC_X86_AVX_VEX256_PREFIX) ++#define orc_avx_sse_emit_sqrtps(p,s1,d) orc_vex_emit_cpuinsn_size(p, ORC_X86_sqrtps, 32, s1, 0, d, ORC_X86_AVX_VEX128_PREFIX) ++#define orc_avx_emit_sqrtps(p,s1,d) orc_vex_emit_cpuinsn_size(p, ORC_X86_sqrtps, 32, s1, 0, d, ORC_X86_AVX_VEX256_PREFIX) + #define orc_avx_sse_emit_andps(p,s1,s2,d) orc_vex_emit_cpuinsn_size(p, ORC_X86_andps, 32, s1, s2, d, ORC_X86_AVX_VEX128_PREFIX) + #define orc_avx_emit_andps(p,s1,s2,d) orc_vex_emit_cpuinsn_size(p, ORC_X86_andps, 32, s1, s2, d, ORC_X86_AVX_VEX256_PREFIX) + #define orc_avx_sse_emit_orps(p,s1,s2,d) orc_vex_emit_cpuinsn_size(p, ORC_X86_orps, 32, s1, s2, d, ORC_X86_AVX_VEX128_PREFIX) +diff --git a/orc/orcprogram-c.c b/orc/orcprogram-c.c +index 49e0b73b..1c9ff7cf 100644 +--- a/orc/orcprogram-c.c ++++ b/orc/orcprogram-c.c +@@ -106,6 +106,7 @@ orc_target_c_get_asm_preamble (void) + { + return "\n" + "/* begin Orc C target preamble */\n" ++ "#include <math.h>\n" + "#define ORC_CLAMP(x,a,b) ((x)<(a) ? (a) : ((x)>(b) ? (b) : (x)))\n" + "#define ORC_ABS(a) ((a)<0 ? -(a) : (a))\n" + "#define ORC_MIN(a,b) ((a)<(b) ? (a) : (b))\n" +diff --git a/orc/orcrules-avx.c b/orc/orcrules-avx.c +index 66925982..5cffe145 100644 +--- a/orc/orcrules-avx.c ++++ b/orc/orcrules-avx.c +@@ -2678,7 +2678,7 @@ BINARY (addf, addps) + BINARY (subf, subps) + BINARY (mulf, mulps) + BINARY (divf, divps) +-BINARY (sqrtf, sqrtps) ++UNARY (sqrtf, sqrtps) + BINARY (orf, orps) + BINARY (andf, andps) + +diff --git a/testsuite/test.orc b/testsuite/test.orc +index 3e9c5790..9ff53236 100644 +--- a/testsuite/test.orc ++++ b/testsuite/test.orc +@@ -2806,3 +2806,11 @@ x4 addb argb, x, c128 + mulslq t1, d1, p1 + shrsq t1, t1, 27 + convql d1, t1 ++ ++.function sqrt_nx ++.dest 4 dst float ++.source 4 src float ++.floatparam 4 k ++.temp 4 tmp ++sqrtf tmp, src ++mulf dst, tmp, k +-- +GitLab diff --git a/dev-lang/orc/orc-0.4.40-r1.ebuild b/dev-lang/orc/orc-0.4.40-r1.ebuild new file mode 100644 index 000000000000..2a32020e4637 --- /dev/null +++ b/dev-lang/orc/orc-0.4.40-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson-multilib + +DESCRIPTION="The Oil Runtime Compiler, a just-in-time compiler for array operations" +HOMEPAGE="https://gstreamer.freedesktop.org/" +SRC_URI="https://gstreamer.freedesktop.org/src/${PN}/${P}.tar.xz" + +LICENSE="BSD BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +RESTRICT="!test? ( test )" +IUSE="gtk-doc static-libs test" + +BDEPEND=" + gtk-doc? ( + dev-util/gtk-doc + app-text/docbook-xml-dtd:4.1.2 + app-text/docbook-xml-dtd:4.3 + ) +" + +DOCS=( CONTRIBUTING.md README RELEASE ) + +PATCHES=( + "${FILESDIR}"/${P}-avx.patch +) + +multilib_src_configure() { + # FIXME: handle backends per arch? What about cross-compiling for the other arches? + local emesonargs=( + -Ddefault_library=$(usex static-libs both shared) + -Dorc-backend=all + -Dorc-test=enabled + -Dbenchmarks=disabled + -Dexamples=disabled + $(meson_native_use_feature gtk-doc gtk_doc) + $(meson_feature test tests) + -Dtools=enabled # requires orc-test + ) + meson_src_configure +} |