From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/calf/files/, media-plugins/calf/
Date: Fri, 22 Sep 2023 15:44:04 +0000 (UTC) [thread overview]
Message-ID: <1695397367.371ef91dcf5a57d241fa130c3c9bdf9b17768b31.sam@gentoo> (raw)
commit: 371ef91dcf5a57d241fa130c3c9bdf9b17768b31
Author: Violet Purcell <vimproved <AT> inventati <DOT> org>
AuthorDate: Fri Sep 22 00:25:50 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Sep 22 15:42:47 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=371ef91d
media-plugins/calf: Backport clang fix
Upstream: https://github.com/calf-studio-gear/calf/commit/bfb857445e72230659493d3491970e3cb3c7eb9a
Closes: https://bugs.gentoo.org/831023
Signed-off-by: Violet Purcell <vimproved <AT> inventati.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>
media-plugins/calf/calf-0.90.3-r2.ebuild | 1 +
...0.90.3-clang-lerp_table_lookup_float_mask.patch | 45 ++++++++++++++++++++++
2 files changed, 46 insertions(+)
diff --git a/media-plugins/calf/calf-0.90.3-r2.ebuild b/media-plugins/calf/calf-0.90.3-r2.ebuild
index 45506cd79a76..854f4789523c 100644
--- a/media-plugins/calf/calf-0.90.3-r2.ebuild
+++ b/media-plugins/calf/calf-0.90.3-r2.ebuild
@@ -48,6 +48,7 @@ PATCHES=(
"${FILESDIR}/${PN}-0.90.1-desktop.patch"
"${FILESDIR}/${PN}-0.90.3-fix-build-with-lld.patch"
"${FILESDIR}/${PN}-0.90.3-replace-std-bind2nd.patch"
+ "${FILESDIR}/${PN}-0.90.3-clang-lerp_table_lookup_float_mask.patch"
)
src_prepare() {
diff --git a/media-plugins/calf/files/calf-0.90.3-clang-lerp_table_lookup_float_mask.patch b/media-plugins/calf/files/calf-0.90.3-clang-lerp_table_lookup_float_mask.patch
new file mode 100644
index 000000000000..d868fb8e1f33
--- /dev/null
+++ b/media-plugins/calf/files/calf-0.90.3-clang-lerp_table_lookup_float_mask.patch
@@ -0,0 +1,45 @@
+From bfb857445e72230659493d3491970e3cb3c7eb9a Mon Sep 17 00:00:00 2001
+From: Krzysztof Foltman <wdev@foltman.com>
+Date: Fri, 2 Aug 2019 20:55:50 +0100
+Subject: [PATCH] Compatibility: A possible fix for the clang++-8 issue.
+
+---
+ src/calf/fixed_point.h | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/calf/fixed_point.h b/src/calf/fixed_point.h
+index 7dbf5c9bc..63bfce167 100644
+--- a/src/calf/fixed_point.h
++++ b/src/calf/fixed_point.h
+@@ -215,7 +215,7 @@ template<class T, int FracBits> class fixed_point {
+ }
+
+ template<class U, int UseBits>
+- inline U lerp_table_lookup_int(U data[(1U<<IntBits)+1]) const {
++ inline U lerp_table_lookup_int(U *data) const {
+ unsigned int pos = uipart();
+ return lerp_by_fract_int<U, UseBits>(data[pos], data[pos+1]);
+ }
+@@ -223,19 +223,19 @@ template<class T, int FracBits> class fixed_point {
+ /// Untested... I've started it to get a sin/cos readout for rotaryorgan, but decided to use table-less solution instead
+ /// Do not assume it works, because it most probably doesn't
+ template<class U, int UseBits>
+- inline U lerp_table_lookup_int_shift(U data[(1U<<IntBits)+1], unsigned int shift) {
++ inline U lerp_table_lookup_int_shift(U *data, unsigned int shift) {
+ unsigned int pos = (uipart() + shift) & ((1ULL << IntBits) - 1);
+ return lerp_by_fract_int<U, UseBits>(data[pos], data[pos+1]);
+ }
+
+ template<class U>
+- inline U lerp_table_lookup_float(U data[(1U<<IntBits)+1]) const {
++ inline U lerp_table_lookup_float(U *data) const {
+ unsigned int pos = uipart();
+ return data[pos] + (data[pos+1]-data[pos]) * fpart_as_double();
+ }
+
+ template<class U>
+- inline U lerp_table_lookup_float_mask(U data[(1U<<IntBits)+1], unsigned int mask) const {
++ inline U lerp_table_lookup_float_mask(U *data, unsigned int mask) const {
+ unsigned int pos = ui64part() & mask;
+ // printf("full = %lld pos = %d + %f\n", value, pos, fpart_as_double());
+ return data[pos] + (data[pos+1]-data[pos]) * fpart_as_double();
next reply other threads:[~2023-09-22 15:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-22 15:44 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-07-10 7:44 [gentoo-commits] repo/gentoo:master commit in: media-plugins/calf/files/, media-plugins/calf/ Miroslav Šulc
2025-06-02 15:19 Andreas Sturmlechner
2025-04-11 8:29 Miroslav Šulc
2024-06-23 10:23 Miroslav Šulc
2024-03-16 10:41 Miroslav Šulc
2023-10-20 7:50 Miroslav Šulc
2020-01-17 11:00 Miroslav Šulc
2019-03-11 15:29 Andreas Sturmlechner
2019-03-10 22:46 Andreas Sturmlechner
2016-09-18 13:29 David Seifert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1695397367.371ef91dcf5a57d241fa130c3c9bdf9b17768b31.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox