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

Rewrite Position methods in constexpr #4648

Merged
merged 2 commits into from Apr 17, 2024

Conversation

ranisalt
Copy link
Member

Pull Request Prelude

Changes Proposed

  • Refactor static template functions to constexpr member functions for Position
  • Drop unnecessary fast integer variants
  • Remove redundant template parameter to std::max/std::min where applicable

Performance should be identical or slightly better due to less accidental size conversion, but the readability improves (IMO significantly)

Issues addressed:

- Refactor static functions to member functions
- Drop unnecessary fast integer variants
- Remove redundant template parameter to std::max/min
EPuncker
EPuncker previously approved these changes Apr 11, 2024
Copy link
Contributor

@MillhioreBT MillhioreBT left a comment

Choose a reason for hiding this comment

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

LGTM

@MillhioreBT MillhioreBT merged commit 45dc6f9 into otland:master Apr 17, 2024
19 checks passed
@ranisalt ranisalt deleted the constexpr-position branch April 18, 2024 01:50
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

3 participants