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

Dynamic gamma table #665

Merged
merged 3 commits into from
Mar 16, 2023
Merged

Dynamic gamma table #665

merged 3 commits into from
Mar 16, 2023

Conversation

Makuna
Copy link
Owner

@Makuna Makuna commented Mar 16, 2023

No description provided.

@Makuna Makuna merged commit 18aadb6 into master Mar 16, 2023
@Makuna Makuna deleted the DynamicGammaTable branch March 16, 2023 20:10
}
// create static hint table and copy temp table to it
_hintsCount = entryLastTriplet; // only need to last triplet
_hints = new NeoGamma16LowHint[_hintsCount];

Choose a reason for hiding this comment

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

I would add:

if (_hints) delete[] _hints;

prior to allocation to allow multiple calls to Initialize().

if (!optimize16Bit)
{
// no optimization, so no 16 bit
_hints = nullptr;

Choose a reason for hiding this comment

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

Make sure any existing array is deleted before you remove pointer.

@Makuna
Copy link
Owner Author

Makuna commented Mar 17, 2023

#667

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.

2 participants