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

Fix FNEQ: x and y were interchanged. #3973

Merged
merged 3 commits into from
Nov 20, 2023
Merged

Fix FNEQ: x and y were interchanged. #3973

merged 3 commits into from
Nov 20, 2023

Conversation

Rot127
Copy link
Member

@Rot127 Rot127 commented Nov 13, 2023

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've documented or updated the documentation of every function and struct this PR changes. If not so I've explained why.
  • I've added tests that prove my fix is effective or that my feature works (if possible)
  • I've updated the rizin book with the relevant information (if needed)

Detailed description

Fixes the FEQ macro by changing the x and y operand positions and checking for NaN.
It also adds common compare operations as macros.

Test plan

...

Closing issues

...

@Rot127 Rot127 requested a review from Heersin November 13, 2023 13:37
@Rot127
Copy link
Member Author

Rot127 commented Nov 13, 2023

I'll fix the tests after @Heersin took a look.

@Rot127
Copy link
Member Author

Rot127 commented Nov 13, 2023

The compare of floats is not really well tested. These macros would be tested with the Hexagon code though.

@Rot127 Rot127 mentioned this pull request Nov 13, 2023
13 tasks
@Rot127
Copy link
Member Author

Rot127 commented Nov 17, 2023

@Heersin Will you find time to look at it in the next days? I need it for the Hexagon uplifting and would just proceed if you can't find the time.

@Heersin
Copy link
Member

Heersin commented Nov 18, 2023

@Heersin Will you find time to look at it in the next days? I need it for the Hexagon uplifting and would just proceed if you can't find the time.

sure, reviewing it now.

@wargio wargio merged commit 41e700b into rizinorg:dev Nov 20, 2023
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants