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

Fix JitterSpectrumFilter.cpp crash issue with MSYS2 mingw64 Release b… #378

Merged
merged 1 commit into from Dec 7, 2020

Conversation

bvernoux
Copy link
Contributor

@bvernoux bvernoux commented Dec 7, 2020

…uild

Compute next highest power of 2 to fix issues when using code:
const size_t npoints = next_pow2(npoints_raw);
The original code (pow(2, ceil(log2())) has some border effects when built with MSYS2 mingw64 "Release" mode as it does not compute correctly the highest power of 2 for example with parameter 100000 it was returning 131071 (instead of 131072) which crashed ffts.
This implementation fix issue ngscopeclient/scopehal-apps#295

…uild

Compute next highest power of 2 to fix issues when using code:
const size_t npoints = next_pow2(npoints_raw);
The original code (pow(2, ceil(log2())) has some border effects when built with MSYS2 mingw64 "Release" mode as it does not compute correctly the highest power of 2 for example with parameter 100000 it was returning 131071 (instead of 131072) which crashed ffts.
This implementation fix issue ngscopeclient/scopehal-apps#295
@azonenberg azonenberg merged commit 200e775 into ngscopeclient:master Dec 7, 2020
@bvernoux bvernoux deleted the patch-6 branch December 7, 2020 16:15
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.

None yet

2 participants