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

Simplify boolean expressions with an simpler and equivalent. #103

Merged
merged 1 commit into from Aug 12, 2021
Merged

Simplify boolean expressions with an simpler and equivalent. #103

merged 1 commit into from Aug 12, 2021

Conversation

arturobernalg
Copy link
Member

No description provided.

@coveralls
Copy link

coveralls commented Aug 7, 2021

Coverage Status

Coverage remained the same at 99.658% when pulling 651997b on arturobernalg:feature/simplifyOperation into 84c7090 on apache:master.

@@ -182,7 +182,7 @@ public static boolean equalsIncludingNaN(float x, float y) {
final boolean yIsNan = Float.isNaN(y);
// Combine the booleans with bitwise OR
return (xIsNan | yIsNan) ?
!(xIsNan ^ yIsNan) :
xIsNan == yIsNan :
Copy link
Contributor

Choose a reason for hiding this comment

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

The formatting looks wrong here as you have 8 character indent and then a 4 character indent on the line underneath. It should be:

        return (xIsNan | yIsNan) ?
            xIsNan == yIsNan :
            equals(x, y, maxUlps);

Copy link
Member Author

Choose a reason for hiding this comment

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

True. Changed
TY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants