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

Replace custom vector to C++ std bitset class #105

Merged
merged 3 commits into from
Mar 15, 2024

Conversation

RadWolfie
Copy link
Member

Closes #101, #66

Per @PatrickvL suggestion to improve the loop process by using C++ standard library's bitset class which is supported by nxdk's C++ library. Doing so will require main.c rename to main.cpp and update makefile to use C++ compiler.

And updated the code to limit less than kernel_api_test_size can be set from input. Which then no longer needs a safety check inside for statement(s).

I have personally tested this with Cxbx-Reloaded to verify the exclusion(s) are working correctly and that all tests (except 0x77 test) are working as intended.

@RadWolfie RadWolfie linked an issue Feb 27, 2024 that may be closed by this pull request
src/main.cpp Outdated Show resolved Hide resolved
src/main.cpp Outdated Show resolved Hide resolved
@ergo720 ergo720 merged commit b4f297c into Cxbx-Reloaded:master Mar 15, 2024
1 check passed
@RadWolfie RadWolfie deleted the use-std-bitset branch March 15, 2024 20:17
Copy link
Member

@PatrickvL PatrickvL left a comment

Choose a reason for hiding this comment

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

One small remark

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.

Optimize tests loop with std::bitset Consider switching to std::vector
3 participants