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

Inline always #30

Merged
merged 2 commits into from
Oct 25, 2023
Merged

Inline always #30

merged 2 commits into from
Oct 25, 2023

Conversation

NCGThompson
Copy link
Contributor

Using the corresponding functions in the core library as a guide, I conservatively turned several #[inline]s into #[inline(always)]s. I also added #[inline] to some functions that didn't have it but should.

@@ -170,89 +170,104 @@ impl I256 {
}

/// Cast to a primitive `i8`.
#[inline]
Copy link
Owner

Choose a reason for hiding this comment

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

Any reason why these ones weren't also marked as #[inline(always)]?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope. You can change it if you think that's best.

@nlordell nlordell merged commit c943fa7 into nlordell:main Oct 25, 2023
1 check passed
@NCGThompson NCGThompson deleted the inline-always branch October 25, 2023 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.

2 participants