Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port to gcc 14 #191

Merged
merged 3 commits into from Apr 25, 2024
Merged

port to gcc 14 #191

merged 3 commits into from Apr 25, 2024

Conversation

theAeon
Copy link
Contributor

@theAeon theAeon commented Apr 22, 2024

fixes #184 for the subtree library, submodules still do not build. Unsure if JDSP4Linux frontend has further issues.

@theAeon
Copy link
Contributor Author

theAeon commented Apr 23, 2024

Actually, I lied. Bear with.

@theAeon
Copy link
Contributor Author

theAeon commented Apr 23, 2024

it builds now

@theAeon theAeon closed this Apr 23, 2024
@theAeon theAeon deleted the dspsys_typedef branch April 23, 2024 04:28
@theAeon theAeon restored the dspsys_typedef branch April 23, 2024 04:28
@theAeon theAeon reopened this Apr 23, 2024
@theAeon theAeon changed the title define struct dspsys before usage port to gcc 14 Apr 23, 2024
Comment on lines +255 to +274
void jds_reverse(float *arr, int32_t start, int32_t end) {
while (start < end)
{
float tmp = arr[start];
arr[start] = arr[end];
arr[end] = tmp;
start++;
end--;
}
}
void jds_shift(float *arr, int32_t k, int32_t n)
{
k = k % n;
jds_reverse(arr, 0, n - 1);
jds_reverse(arr, 0, n - k - 1);
jds_reverse(arr, n - k, n - 1);
}
void circshift(float *x, int n, int k)
{
k < 0 ? shift(x, -k, n) : shift(x, n - k, n);
k < 0 ? jds_shift(x, -k, n) : jds_shift(x, n - k, n);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is messy but i'm bad at c and couldn't get it to stop having multiple-defined symbols w/o naming it differently

@timschneeb timschneeb merged commit 6b35b75 into Audio4Linux:master Apr 25, 2024
@theAeon theAeon deleted the dspsys_typedef branch April 25, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails to compile on GCC 14
2 participants